mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
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.
This commit is contained in:
parent
98967aa09f
commit
7ec6f4412c
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue