mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00
api: add /metrics endpoint for prometheus
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
@ -300,6 +300,7 @@ func serveHTTPApi(req cmds.Request) (error, <-chan error) {
|
||||
defaultMux("/debug/vars"),
|
||||
defaultMux("/debug/pprof/"),
|
||||
corehttp.LogOption(),
|
||||
corehttp.PrometheusOption("/debug/metrics/prometheus"),
|
||||
}
|
||||
|
||||
if len(cfg.Gateway.RootRedirect) > 0 {
|
||||
|
Reference in New Issue
Block a user