diff --git a/core/corehttp/metrics.go b/core/corehttp/metrics.go index b0aebd3979b..1288484d3ff 100644 --- a/core/corehttp/metrics.go +++ b/core/corehttp/metrics.go @@ -24,6 +24,7 @@ func MetricsCollectionOption(handlerName string) ServeOption { // Adapted from github.com/prometheus/client_golang/prometheus/http.go // Work around https://github.com/prometheus/client_golang/pull/311 opts := prometheus.SummaryOpts{ + Namespace: "ipfs", Subsystem: "http", ConstLabels: prometheus.Labels{"handler": handlerName}, Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},