mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-05 00:59:16 -04:00
MINOR: contrib/prometheus-exporter: add recv logs_logs_total field
this field was added by commit 45c457a629
("MINOR: log: adds counters on received syslog messages.")
Signed-off-by: William Dauchy <wdauchy@gmail.com>
This commit is contained in:
parent
e5a26a250d
commit
7741c33779
2 changed files with 3 additions and 0 deletions
|
|
@ -169,6 +169,8 @@ Exported metrics
|
|||
| haproxy_process_bytes_out_total | Total number of bytes emitted. |
|
||||
| haproxy_process_spliced_bytes_out_total | Total number of bytes emitted through a kernel pipe. |
|
||||
| haproxy_process_bytes_out_rate | Number of bytes emitted over the last elapsed second. |
|
||||
| haproxy_process_recv_logs_total | Total number of log messages received by log-forwarding listeners on this |
|
||||
| | worker process since started |
|
||||
+------------------------------------------------+-------------------------------------------------------------------------------+
|
||||
|
||||
* Frontend metrics
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ const struct promex_metric promex_global_metrics[INF_TOTAL_FIELDS] = {
|
|||
[INF_TOTAL_SPLICED_BYTES_OUT] = { .n = IST("spliced_bytes_out_total"), .type = PROMEX_MT_COUNTER, .flags = PROMEX_FL_INFO_METRIC },
|
||||
[INF_BYTES_OUT_RATE] = { .n = IST("bytes_out_rate"), .type = PROMEX_MT_GAUGE, .flags = PROMEX_FL_INFO_METRIC },
|
||||
//[INF_DEBUG_COMMANDS_ISSUED] ignored
|
||||
[INF_CUM_LOG_MSGS] = { .n = IST("recv_logs_total"), .type = PROMEX_MT_COUNTER, .flags = PROMEX_FL_INFO_METRIC },
|
||||
};
|
||||
|
||||
/* frontend/backend/server fields */
|
||||
|
|
|
|||
Loading…
Reference in a new issue