]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: promex: switch to using stat_cols_px for front/back/server metrics
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 18 Mar 2025 15:00:11 +0000 (16:00 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 20 Mar 2025 10:40:07 +0000 (11:40 +0100)
commita5aadbd5127e62354ccee58c120deb8e894133b3
tree71bf0104ff51c5e1f0d59cc615ec9c4e23b3583e
parentd31ef6134ab40e42dbd7f36006b03ffc4515de30
MEDIUM: promex: switch to using stat_cols_px for front/back/server metrics

Now the stat_cols_px array contains all info that-prometheus requires
stop using the promex_st_metrics array that contains redundant infos.

As for ("MEDIUM: promex: switch to using stat_cols_info for global
metrics"), initial goal was to completely get rid of promex_st_metrics
array, but it turns out it is still required but only for the name
mapping part now. So in this commit we change it from complex structure
array (with redundant info) to a simple ist array with the
metric id:promex name mapping. If a metric name is not defined there, then
promex ignores it.
addons/promex/service-prometheus.c