Open prashant407 opened 2 years ago
I also tried to run http://localhost:24231/aggregated_metrics command for fetching the metrics from all workers as suggested When using multiple workers, each worker binds to port + fluent_worker_id. To scrape metrics from all workers at once, you can access http://localhost:24231/aggregated_metrics on the below link
https://github.com/fluent/fluent-plugin-prometheus.
But it is not giving the expected output. Could someone please help in fetching the metrics from all workers?
Thanks
any updates?
I am also getting the same error, can anyone guide me how we can fix it.
I am having a similiar issue. I have 7 workers, the individual /metrics
works fine.
But, /aggretaed_metrics
responded on the corresponding port but it gives me a timeout.
This is the configuration :
<system>
workers 7
</system>
<source>
@type forward
</source>
<source>
@type monitor_agent
bind 127.0.0.1
port 24220
</source>
<source>
@type prometheus
bind 127.0.0.1
port 24240
aggregated_metrics_path /aggregated_metrics
</source>
<source>
@type prometheus_monitor
</source>
<source>
@type prometheus_output_monitor
</source>
Hi
We are using Multiple workers in our fluentd configuration. Please refer the below configuration
For scraping the metrics we are using prometheus. But when we are checking for the metrics it is only showing for the worker_id='0'. Please refer to the below output.
Could someone please explain why for other workers prometheus is not able to scrape the metrics?