MINOR: promex: Add support for specialized front/back/li/srv metric names
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Dec 2023 08:00:18 +0000 (09:00 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Dec 2023 09:24:41 +0000 (10:24 +0100)
commit3b8b9b81797718e9b0b4b5305339d5026c0575dd
tree64caac6e2e18dc66f02576c8376c62a823249b2d
parentf792a259048d3e0bc8ca7d0a7d1420f17943c2b2
MINOR: promex: Add support for specialized front/back/li/srv metric names

Depending on the scope, metrics can have different names. For instance, the
number of active/backend servers are reported with
"haproxy_backend_active_servers"/"haproxy_backend_backup_servers" metric names
in the backend scope while it should be
"haproxy_server_active"/"haproxy_server_backup" in the server scope.

To be able to support different names depending on the scope for the same
metric, arrays of ISTs were added, one by scope (front, back, listen,
server). These arrays only contain names overriding the default ones.

Note: the exemple above is not supported for now and is the reason for this
commit.
addons/promex/service-prometheus.c