fluent-plugin-prometheus
fluent-plugin-prometheus copied to clipboard
fluentd_output_status_num_errors sould be counter
Describe the bug
prometheus metric fluentd_output_status_num_errors is exposed as gauge but its behavior is more like a counter.
To Reproduce
enable prometheus metric in fluentd and read /metrics for
fluentd_output_status_num_errors
Expected behavior
to have this metrics exported as a counter with a proper counter name,
Your Environment
- Fluentd version: v1.18
- Package version: v1.18
- Operating system: debian
- Kernel version: ?
Your Configuration
config:
- source:
$type: prometheus
bind: 0.0.0.0
port: 24231
metrics_path: /metrics
- source:
$type: prometheus_output_monitor
interval: 10
labels:
hostname: ${hostname}
- source:
Your Error Log
no error
Additional context
No response
https://github.com/fluent/fluent-plugin-prometheus?tab=readme-ov-file#configuration-1
Looks like we need to set gauge_all false...
Maybe this specification should be improved...