@cryptotaxi247 / kubo / commits / 03017cb20

ipfs namespace is now being provided to prometheus

Adrian Lanzafame committed Sep 15, 2019 at 11:07 UTC 03017cb2014827bde3807cf97054f64f82e955dc
1 file changed +1 -1
core/corehttp/metrics.go
+1 -1
@@ -24,6 +24,7 @@ func MetricsCollectionOption(handlerName string) ServeOption {
24 // Adapted from github.com/prometheus/client_golang/prometheus/http.go
25 // Work around https://github.com/prometheus/client_golang/pull/311
26 opts := prometheus.SummaryOpts{
27 + Namespace: "ipfs",
28 Subsystem: "http",
29 ConstLabels: prometheus.Labels{"handler": handlerName},
30 Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
@@ -31,7 +32,6 @@ func MetricsCollectionOption(handlerName string) ServeOption {
32
33 reqCnt := prometheus.NewCounterVec(
34 prometheus.CounterOpts{
34 - Namespace: opts.Namespace,
35 Subsystem: opts.Subsystem,
36 Name: "requests_total",
37 Help: "Total number of HTTP requests made.",