Skip to content
This repository was archived by the owner on Sep 13, 2021. It is now read-only.

Commit ba2730f

Browse files
wdauchygrobie
authored andcommitted
Export current number of active servers (prometheus#95)
Signed-off-by: William Dauchy <[email protected]>
1 parent 2894f78 commit ba2730f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

haproxy_exporter.go

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ func NewExporter(uri string, sslVerify bool, selectedServerMetrics map[int]*prom
212212
16: newBackendMetric("redispatch_warnings_total", "Total of redispatch warnings.", nil),
213213
17: newBackendMetric("up", "Current health status of the backend (1 = UP, 0 = DOWN).", nil),
214214
18: newBackendMetric("weight", "Total weight of the servers in the backend.", nil),
215+
19: newBackendMetric("current_server", "Current number of active servers", nil),
215216
33: newBackendMetric("current_session_rate", "Current number of sessions per second over last elapsed second.", nil),
216217
35: newBackendMetric("max_session_rate", "Maximum number of sessions per second.", nil),
217218
39: newBackendMetric("http_responses_total", "Total of HTTP responses.", prometheus.Labels{"code": "1xx"}),

0 commit comments

Comments
 (0)