]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: promex: backend aggregated server check status
authorWilliam Dauchy <wdauchy@gmail.com>
Sun, 7 Nov 2021 09:18:47 +0000 (10:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Nov 2021 09:51:08 +0000 (10:51 +0100)
commit42d7c402d50f2b2cf3695ac58c17302c38a64db7
treec3e81a84fb05d5157eba876665b33cb7f8a1100a
parentdb8a1f391dbbf1072f76bdb01d86d4032b84e6ac
MINOR: promex: backend aggregated server check status

- add new metric: `haproxy_backend_agg_server_check_status`
  it counts the number of servers matching a specific check status
  this permits to exclude per server check status as the usage is often
  to rely on the total. Indeed in large setup having thousands of
  servers per backend the memory impact is not neglible to store the per
  server metric.
- realign promex_str_metrics array

quite simple implementation - we could improve it later by adding an
internal state to the prometheus exporter, thus to avoid counting at
every dump.

this patch is an attempt to close github issue #1312. It may bebackported
to 2.4 if requested.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
addons/promex/service-prometheus.c
include/haproxy/stats-t.h
src/stats.c