Fix HTTP content length metric name (#287)
authorJulius Volz <julius.volz@gmail.com>
Sat, 20 Jan 2018 13:44:31 +0000 (14:44 +0100)
committerBrian Brazil <brian.brazil@robustperception.io>
Sat, 20 Jan 2018 13:44:30 +0000 (13:44 +0000)
This got broken as part of introducing the Prometheus client library for
metrics exposure in 7abdf0570d44cc8dbd258987e9d3353af1d6126e.

prober/http.go

index 0d938f8f530658b0997bf64288ef67cc576ec78b..5f2af6932d958f4896e52b6c6187c3ac818b2832 100644 (file)
@@ -140,7 +140,7 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr
                        Help: "Duration of http request by phase, summed over all redirects",
                }, []string{"phase"})
                contentLengthGauge = prometheus.NewGauge(prometheus.GaugeOpts{
-                       Name: "content_length",
+                       Name: "probe_http_content_length",
                        Help: "Length of http content response",
                })