Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 3763735

Browse files
committed
Use same name for idle percent metric as upstream
The official HAProxy exporter plugin uses `haproxy_process_idle_time_percent`, let's be consistent with that. Follow-up for #236. Signed-off-by: Matthias Rampke <[email protected]>
1 parent 4b99f0f commit 3763735

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

haproxy_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ var (
234234

235235
haproxyInfo = prometheus.NewDesc(prometheus.BuildFQName(namespace, "version", "info"), "HAProxy version info.", []string{"release_date", "version"}, nil)
236236
haproxyUp = prometheus.NewDesc(prometheus.BuildFQName(namespace, "", "up"), "Was the last scrape of HAProxy successful.", nil, nil)
237-
haproxyIdlePct = prometheus.NewDesc(prometheus.BuildFQName(namespace, "idle", "percent"), "Time spent waiting for events instead of processing them.", nil, nil)
237+
haproxyIdlePct = prometheus.NewDesc(prometheus.BuildFQName(namespace, "process_idle_time", "percent"), "Time spent waiting for events instead of processing them.", nil, nil)
238238
)
239239

240240
// Exporter collects HAProxy stats from the given URI and exports them using

test/unix_domain.metrics

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ haproxy_up 1
8181
# HELP haproxy_version_info HAProxy version info.
8282
# TYPE haproxy_version_info gauge
8383
haproxy_version_info{release_date="test date",version="test version"} 1
84-
# HELP haproxy_idle_percent Time spent waiting for events instead of processing them.
85-
# TYPE haproxy_idle_percent gauge
86-
haproxy_idle_percent 100
84+
# HELP haproxy_process_idle_time_percent Time spent waiting for events instead of processing them.
85+
# TYPE haproxy_process_idle_time_percent gauge
86+
haproxy_process_idle_time_percent 100

0 commit comments

Comments
 (0)