From 6ec883a7fd40a14f2882076bd1a377bbbd0438ad Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 27 Aug 2026 13:06:20 +0200 Subject: Add local Pyroscope server and Go continuous profiling Add a docker-compose service running the Grafana Pyroscope backend on port 4040 with a persistent data volume, and instrument the Go app via github.com/grafana/pyroscope-go. The app pushes CPU, memory, and goroutine profiles every 10s when pyroscope.enabled is set in config.yaml. Config is extended with application_name and server_address (defaults to http://localhost:4040). Document usage in the README. --- docker-compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6605075 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +services: + pyroscope: + image: grafana/pyroscope:latest + container_name: pyroscope + ports: + - "4040:4040" + command: + - server + - --storage-path + - /home/pyroscope + volumes: + - pyroscope-data:/home/pyroscope + restart: unless-stopped + +volumes: + pyroscope-data: -- cgit v1.3