Fluent Bit Metrics
A plugin to collect Fluent Bit metrics
Fluent Bit exposes metrics to let you monitor the internals of your pipeline. The collected metrics can be processed similarly to those from the Prometheus Node Exporter input plugin. They can be sent to output plugins including Prometheus Exporter, Prometheus Remote Write or OpenTelemetry.
Configuration
scrape_interval
The rate at which metrics are collected from the host operating system.
2
seconds
scrape_on_start
Scrape metrics upon start, use to avoid waiting for scrape_interval
for the first round of metrics.
false
Get started
Configuration file
In the following configuration file, the input plugin node_exporter_metrics
collects metrics every 2
seconds and exposes them through the Prometheus Exporter output plugin on HTTP/TCP port 2021
.
service:
flush: 1
log_level: info
pipeline:
inputs:
- name: fluentbit_metrics
tag: internal_metrics
scrape_interval: 2
outputs:
- name: prometheus_exporter
match: internal_metrics
host: 0.0.0.0
port: 2021
You can test the expose of the metrics by using curl
:
$ curl http://127.0.0.1:2021/metrics
Last updated
Was this helpful?