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

aggregated_metrics gives incomplete output

Open pranavmarla opened this issue 5 years ago • 1 comments

Details

I have Fluentd set up with multiple workers and multiple plugins. Because of that, there are many Prometheus metrics. When I hit the /metrics endpoint for individual workers, there are no issues. However, when I hit the /aggregated_metrics endpoint, I only get partial output -- the output seems to abruptly cut off after a certain point. Does /aggregated_metrics have a size limit??

Eg. If I hit the /aggregated_metrics endpoint (curl http://localhost:24240/aggregated_metrics), here are the last 3 lines of the resulting output:

fluentd_output_status_slow_flush_count{worker_id="0",plugin_id="object:be0",type="null"} 0.0
fluentd_output_status_slow_flush_count{worker_id="0",plugin_id="object:463c",type="relabel"} 0.0
fluentd_output_status_slow_flush_count{worker_id="0",plugin_id="object:465

Notice that the last line is abruptly cut off mid-way!

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
  • Note that Fluentd has multi-process workers enabled -- specifically, 6 workers

pranavmarla avatar Sep 28 '20 22:09 pranavmarla

I'm also facing similar issue. Is this working fine for you now?

raviepgithub avatar Nov 26 '21 11:11 raviepgithub