]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: promex: get rid of promex_st_metrics array
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Mar 2025 13:01:45 +0000 (14:01 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Mar 2025 16:05:31 +0000 (17:05 +0100)
commit83074bf69051177aa0d767d76385b7f67c9e535d
treea72659dc2503c2f3358a2ba25a8d20d6e9a7c490
parent276491dc226f9c483f5d6a467f0e1d445a5de934
MINOR: promex: get rid of promex_st_metrics array

In this patch we pursue the work started in a5aadbd ("MEDIUM: promex:
switch to using stat_cols_px for front/back/server 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
stat_cols_px 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