]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: promex: Fix dump of extra counters
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Nov 2024 14:30:56 +0000 (15:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Nov 2024 14:36:41 +0000 (15:36 +0100)
commitd1adfd9fe41b0f9f67944eec07348213a7debbf3
tree5b4d03506fe7cf69b47c3dfad1b8e6df846c55ee
parente75a019fba19f6ac0c5b2b76c9efd29cb0d5a952
BUG/MEDIUM: promex: Fix dump of extra counters

When extra counters are dumped for an entity (frontend, backend, server or
listener), there is a filter on capabilities. Some extra counters are not
available for all entities and must be ignored. However, when this was
performed, the field number, used as an index to dump the metric value, was
still incremented while it should not and leads to an overflow or a stats
mix-up.

This patch must be backported to 3.0.
addons/promex/service-prometheus.c