Fluent Bit provides storage layer metrics under api/v1/storage
, but unfortunately these are only available as JSON and therefore can't be scraped by Prometheus.
This exporter runs as own web server, parses the storage layer metrics and provides them in a Prometheus compatible format.
This exporter was written to run with Python 2.7.
In order to install the exporter run pip install .
To start the exporter run python -m fb_storage_metric_exporter <EXPORTER-PORT> <FB-HOST> <FB-PORT>
python -m fb_storage_metric_exporter 8080 127.0.0.1 2020
will start the exporter on port 8080
and the original storage metrics are requested from 127.0.0.1:2020/api/v1/storage
.
All metrics are provided as gauge.
- fluentbit_storage_chunks
- fluentbit_storage_chunks_mem
- fluentbit_storage_chunks_fs
- fluentbit_storage_chunks_fs_up
- fluentbit_storage_chunks_fs_down
These metrics are provided for each running input plugin. You have to configure an alias in your Fluent Bit settings to set proper names for the plugins.
- fluentbit_storage_input_overlimit
- fluentbit_storage_input_mem_bytes
- fluentbit_storage_input_limit_bytes
- fluentbit_storage_input_chunks
- fluentbit_storage_input_chunks_fs_up
- fluentbit_storage_input_chunks_fs_down
- fluentbit_storage_input_chunks_busy
- fluentbit_storage_input_busy_bytes