From: Julius Volz Date: Sat, 20 Jan 2018 13:44:31 +0000 (+0100) Subject: Fix HTTP content length metric name (#287) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c9490fd4900b46cb756d4f595901c9a5f14970e;p=blackbox_exporter.git Fix HTTP content length metric name (#287) This got broken as part of introducing the Prometheus client library for metrics exposure in 7abdf0570d44cc8dbd258987e9d3353af1d6126e. --- diff --git a/prober/http.go b/prober/http.go index 0d938f8..5f2af69 100644 --- a/prober/http.go +++ b/prober/http.go @@ -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", })