]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: promex: get rid of promex_global_metric array
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Mar 2025 09:56:13 +0000 (10:56 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Mar 2025 16:05:14 +0000 (17:05 +0100)
commit155fb4ec742a9ac296996070d9dbd337fb582b50
treecd84eda7c0a4cf2932add3f4a0ee657098644828
parentb03e05cd3604e9fe6596a12424d50610502a286b
MINOR: promex: get rid of promex_global_metric array

In this patch we pursue the work started in 1adc796 ("MEDIUM: promex:
switch to using stat_cols_info for global metrics"):

Indeed, while having ".promex_name" info in stat_cols_info generic array
was confusing, Willy suggested that we have ".alt_name" which stays
generic and may be considered by alternative exporters for metric naming.
For now, only promex exporter will make use of it.

Thanks to this, it allows us to completely get rid of the
promex_global_metric array. The other main benefit is that it will be
much harder to overlook promex metric definition now because .alt_name
has more visibility in the main metric array rather than in an addon file.
addons/promex/service-prometheus.c