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 scrape is not generating any fluentbit metric #10047

Open
Pigueiras opened this issue Mar 5, 2025 · 0 comments
Open

Prometheus scrape is not generating any fluentbit metric #10047

Pigueiras opened this issue Mar 5, 2025 · 0 comments

Comments

@Pigueiras
Copy link

Bug Report

Describe the bug
Prometheus_scrape report (almost) every fluentbit metric with 0.

To Reproduce
If you configure an exporter, configure Fluent Bit to use the prometheus_scrape input to read it, and enable the http server configuration, you cannot see any metrics querying the prometheus endpoint.

curl -s localhost:2020/api/v2/metrics/prometheus | grep input
# HELP fluentbit_input_bytes_total Number of input bytes.
# TYPE fluentbit_input_bytes_total counter
fluentbit_input_bytes_total{name="http.0"} 619
fluentbit_input_bytes_total{name="syslog.1"} 4603299
fluentbit_input_bytes_total{name="syslog.2"} 3955500
fluentbit_input_bytes_total{name="http.3"} 106697067
fluentbit_input_bytes_total{name="prometheus_scrape.4"} 0  <---- Everything is 0, while it shouldn't be 0
fluentbit_input_bytes_total{name="prometheus_scrape.5"} 0
fluentbit_input_bytes_total{name="prometheus_scrape.6"} 0
fluentbit_input_bytes_total{name="prometheus_scrape.7"} 0

Expected behavior
It would be nice to report these metrics. Apart having these metrics, it would be nice to have a separate metric to track errors in the input (to track misbehaving exporters).

Your Environment

  • Version used: 3.2.6
  • Operating System and version: Almalinux 9
  • Filters and plugins: prometheus_scrape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant