MINOR: promex: Export active/backup metrics per-server
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Dec 2023 09:49:52 +0000 (10:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Dec 2023 09:24:41 +0000 (10:24 +0100)
commit428ceb9c8771a597513923b1cc4dea03603cb970
treee2ef9cc4132dd10bbc04a29ba639fe2a53d14770
parent3b8b9b81797718e9b0b4b5305339d5026c0575dd
MINOR: promex: Export active/backup metrics per-server

numbers of active and backup servers per backend were exported but the info
was not exported per-server. The main issue to do so was we were unable to
have a different name for the same metric in a different scope. Thanks to
the previous patch ("MINOR: promex: Add support for specialized
front/back/li/srv metric names") it is now possible. So the info is now
exported per-server.

This patch should fix the issue #2271.
addons/promex/README
addons/promex/service-prometheus.c