Skip to content

fluentd_output_status_num_errors sould be counter #234

@Aref-Riant

Description

@Aref-Riant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions