mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
MINOR: promex: expose ST_I_INF_WARNINGS (AKA total_warnings) metric
It has been requested to have the ST_I_INF_WARNINGS metric available from prometheus, let's define it in promex_global_metrics ist array so that prometheus starts advertising it.
This commit is contained in:
parent
1adc796c4b
commit
d31ef6134a
@ -161,6 +161,7 @@ const struct ist promex_global_metrics[ST_I_INF_MAX] = {
|
|||||||
[ST_I_INF_BYTES_OUT_RATE] = IST("bytes_out_rate"),
|
[ST_I_INF_BYTES_OUT_RATE] = IST("bytes_out_rate"),
|
||||||
[ST_I_INF_CUM_LOG_MSGS] = IST("recv_logs_total"),
|
[ST_I_INF_CUM_LOG_MSGS] = IST("recv_logs_total"),
|
||||||
[ST_I_INF_BUILD_INFO] = IST("build_info"),
|
[ST_I_INF_BUILD_INFO] = IST("build_info"),
|
||||||
|
[ST_I_INF_WARNINGS] = IST("total_warnings"),
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline enum promex_mt_type promex_global_gettype(int index, enum field_nature nature)
|
static inline enum promex_mt_type promex_global_gettype(int index, enum field_nature nature)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user