fluent-plugin-prometheus icon indicating copy to clipboard operation
fluent-plugin-prometheus copied to clipboard

fluentd_output_status_num_errors sould be counter

Open Aref-Riant opened this issue 6 months ago • 1 comments

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

Aref-Riant avatar May 24 '25 12:05 Aref-Riant

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...

daipom avatar May 26 '25 01:05 daipom