diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-27 13:06:20 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-27 13:06:20 +0200 |
| commit | 6ec883a7fd40a14f2882076bd1a377bbbd0438ad (patch) | |
| tree | 2d199226b29ada6dbe74b2ce278b000c296a1b3a /go.mod | |
| parent | 522512197de372aa9b9c5584711619a76a5546d8 (diff) | |
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.
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -9,7 +9,7 @@ require ( github.com/mattn/go-sqlite3 v1.14.16 github.com/paulmach/osm v0.9.0 github.com/schollz/progressbar/v3 v3.18.0 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.1 github.com/tkrajina/gpxgo v1.4.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -33,9 +33,12 @@ require ( github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/go-sql-driver/mysql v1.7.0 // indirect github.com/gofrs/uuid v4.4.0+incompatible // indirect + github.com/grafana/pyroscope-go v1.4.2 // indirect + github.com/grafana/pyroscope-go/godeltaprof v0.1.11 // indirect github.com/joho/godotenv v1.4.0 // indirect github.com/kataras/i18n v0.0.8 // indirect - github.com/kr/pretty v0.1.0 // indirect + github.com/klauspost/compress v1.18.7 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/lib/pq v1.10.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -66,7 +69,7 @@ require ( golang.org/x/text v0.41.0 // indirect golang.org/x/tools v0.49.0 // indirect google.golang.org/protobuf v1.36.10 // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/ini.v1 v1.67.0 // indirect ) |
