]> git.kaiwu.me - haproxy.git/commit
MINOR: promex: properly use alt_name and val instead of hard-coded values
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2026 11:59:34 +0000 (13:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2026 16:00:51 +0000 (18:00 +0200)
commitd3adda53a784033fef613201dab2f7d98504b862
tree7a47c8eb4bc3a250c362828c9150ed4c107e0e72
parent4bd2c91960e14d3aaaffa8e947f8260103b77d4b
MINOR: promex: properly use alt_name and val instead of hard-coded values

Some string-based info from the "show info" output are returned as gauges
in promex, and the way it's done consists in forcing their label's name
and value to the desired name and values, then faking a value of 1 on the
gauge. Since 3.2 with commit b03e05cd36 ("MINOR: stats: add alt name info
to stat_cols_info where relevant"), this label's name appears in the stats
info's alt_name field. Thus there's no need to hard-code it again in the
promex code. Let's first do this for the "node" label.
addons/promex/service-prometheus.c