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

Prometheus: Adding Elasticsearch and Fluentbit metrics #52

Closed
ricsanfre opened this issue Jun 22, 2022 · 2 comments · Fixed by #59
Closed

Prometheus: Adding Elasticsearch and Fluentbit metrics #52

ricsanfre opened this issue Jun 22, 2022 · 2 comments · Fixed by #59
Labels
enhancement New feature or request
Milestone

Comments

@ricsanfre
Copy link
Owner

Enhancement Request

Adding Elasticsearch and Fluentbit metrics
.

Implementation details

Fluentbit exports prometheus metrics when enabling its built-in HTTP server. Metrics are available at /api/v1/metrics/prometheus endpoint. See fluentbit documentation

For exporting elasticsearch metrics, a Exporter (elasticsearch-exporter) maintained by Prometheus' community can be used. (https://github.com/prometheus-community/elasticsearch_exporter)

@ricsanfre ricsanfre added the enhancement New feature or request label Jun 22, 2022
@ricsanfre ricsanfre added this to the backlog milestone Jun 22, 2022
@ricsanfre
Copy link
Owner Author

ricsanfre commented Jun 30, 2022

About enabling fluentd Prometheus metrics

Since fluentd is also being included as log aggregator it needs to be configured to export Prometheus metrics. Details about exporting Prometheus metrics in [fluentd monitoring documentation] (https://docs.fluentd.org/monitoring-fluentd/monitoring-prometheus)

@ricsanfre ricsanfre modified the milestones: backlog, release 1.4 Jul 19, 2022
@ricsanfre
Copy link
Owner Author

ricsanfre commented Jul 22, 2022

About Monitoring Fluent-bit storage metrics.

Interesting presentation at FluentCon about monitoring fluentbit in a production environment: https://www.youtube.com/watch?v=OhlyY6glf0A

When enabling file buffering (production usual configuration), Fluentbit storage metrics should be monitored as well. These metrics are not exposed by Fluentbit in prometheus format (metrics endpoint). They are exposed in JSON format at /storage endpoint.

There is a open issue in Fluentbit to export storage metrics with prometheus format (fluent/fluent-bit#5334).

The presentation shows a way to export storage metrics to prometheus deploying a prometheus json exporter as sidecar in fluentbit pod.

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

Successfully merging a pull request may close this issue.

1 participant