Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer size metrics showing negative values #174

Open
pranavmarla opened this issue Sep 24, 2020 · 1 comment
Open

Buffer size metrics showing negative values #174

pranavmarla opened this issue Sep 24, 2020 · 1 comment

Comments

@pranavmarla
Copy link

pranavmarla commented Sep 24, 2020

Details

I have Fluentd set up to forward logs to Kafka. In some of the Prometheus metrics for the buffers of those Kafka output plugins, I'm seeing negative values. Specifically, I'm seeing negative values for the following metrics:

  • fluentd_output_status_buffer_total_bytes
  • fluentd_output_status_buffer_stage_byte_size

Eg.

fluentd_output_status_buffer_total_bytes{worker_id="3",plugin_id="kafka_output",type="kafka2"} -7897834.0
fluentd_output_status_buffer_stage_byte_size{worker_id="3",plugin_id="kafka_output",type="kafka2"} -7897834.0

This appears to be the same issue as #55, open since 2018.

Prometheus Config

<source>
  @type prometheus
  port 24240
  metrics_path /metrics
  aggregated_metrics_path /aggregated_metrics
</source>

<source>
  @type prometheus_output_monitor
</source>

Env Info

  • Fluentd: 1.11.2
  • fluent-plugin-prometheus: 1.8.2
  • fluent-plugin-prometheus_pushgateway: 0.0.2
  • fluent-plugin-kafka: 0.14.1
  • Note that Fluentd has multi-process workers enabled
@cristianpetrula
Copy link

I am experiencing the same issue with fluentd 1.14.6 and fluent-plugin-prometheus 2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants