From: Aurelien DARRAGON Date: Mon, 17 Mar 2025 10:45:07 +0000 (+0100) Subject: MINOR: stats: add alt_name field to stat_col struct X-Git-Tag: v3.2-dev8~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ec6f4412ca6c28e49581b56273b8d75e14b73fa;p=thirdparty%2Fhaproxy.git MINOR: stats: add alt_name field to stat_col struct alt_name will be used by metric exporters to know how the metric should be presented to the user. If the alt_name is NULL, the metric should be ignored. For now only promex exporter will make use of this. --- diff --git a/include/haproxy/stats-t.h b/include/haproxy/stats-t.h index 0b60796b6..14a822d92 100644 --- a/include/haproxy/stats-t.h +++ b/include/haproxy/stats-t.h @@ -346,6 +346,7 @@ enum stat_idx_info { struct stat_col { const char *name; /* short name, used notably in CSV headers */ const char *desc; /* user-friendly description */ + const char *alt_name; /* name used by some stats provider such as promex addon, ignored if NULL */ uint32_t type; /* combination of field_nature and field_format */ uint8_t cap; /* mask of stats_domain_px_cap to restrain metrics to an object types subset */