cmd/geth: allow configuring metrics HTTP server on separate endpoint (#21290)
Exposing /debug/metrics and /debug/metrics/prometheus was dependent on --pprof, which also exposes other HTTP APIs. This change makes it possible to run the metrics server on an independent endpoint without enabling pprof.
Showing
- cmd/geth/chaincmd.go 2 additions, 0 deletionscmd/geth/chaincmd.go
- cmd/geth/main.go 2 additions, 0 deletionscmd/geth/main.go
- cmd/utils/flags.go 23 additions, 0 deletionscmd/utils/flags.go
- internal/debug/flags.go 7 additions, 3 deletionsinternal/debug/flags.go
- metrics/exp/exp.go 15 additions, 0 deletionsmetrics/exp/exp.go
- mobile/geth.go 1 addition, 1 deletionmobile/geth.go
Loading
Please register or sign in to comment