projects
/
blackbox_exporter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7230e
)
Fix HTTP content length metric name (#287)
author
Julius Volz
<julius.volz@gmail.com>
Sat, 20 Jan 2018 13:44:31 +0000
(14:44 +0100)
committer
Brian 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
patch
|
blob
|
blame
|
history
diff --git
a/prober/http.go
b/prober/http.go
index 0d938f8f530658b0997bf64288ef67cc576ec78b..5f2af6932d958f4896e52b6c6187c3ac818b2832 100644
(file)
--- 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",
})