@@ -22,6 +22,41 @@ Metrics collected with Fluent Bit Metrics flow through a separate pipeline from
2222
2323## Get started
2424
25+ You can run the plugin from the command line or through the configuration file:
26+
27+ ### Command line
28+
29+ Run the plugin from the command line using the following command:
30+
31+ ``` shell
32+ fluent-bit -i fluentbit_metrics -o stdout
33+ ```
34+
35+ which returns results like the following:
36+
37+ ``` text
38+ ...
39+ [2025/12/02 08:33:54.689265000] [ info] [input:fluentbit_metrics:fluentbit_metrics.0] initializing
40+ [2025/12/02 08:33:54.689272000] [ info] [input:fluentbit_metrics:fluentbit_metrics.0] storage_strategy='memory' (memory only)
41+ [2025/12/02 08:33:54.689917000] [ info] [output:stdout:stdout.0] worker #0 started
42+ [2025/12/02 08:33:54.690115000] [ info] [sp] stream processor started
43+ [2025/12/02 08:33:54.690204000] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
44+ 2025-12-02T07:33:56.692855536Z fluentbit_uptime{hostname="XXXXX.local"} = 2
45+ 2025-12-02T07:33:54.687838528Z fluentbit_logger_logs_total{message_type="error"} = 0
46+ 2025-12-02T07:33:54.687838528Z fluentbit_logger_logs_total{message_type="warn"} = 0
47+ 2025-12-02T07:33:54.690212675Z fluentbit_logger_logs_total{message_type="info"} = 10
48+ 2025-12-02T07:33:54.687838528Z fluentbit_logger_logs_total{message_type="debug"} = 0
49+ 2025-12-02T07:33:54.687838528Z fluentbit_logger_logs_total{message_type="trace"} = 0
50+ 2025-12-02T07:33:54.689222850Z fluentbit_input_bytes_total{name="fluentbit_metrics.0"} = 0
51+ 2025-12-02T07:33:54.689222850Z fluentbit_input_records_total{name="fluentbit_metrics.0"} = 0
52+ 2025-12-02T07:33:54.689222850Z fluentbit_input_ring_buffer_writes_total{name="fluentbit_metrics.0"} = 0
53+ 2025-12-02T07:33:54.689222850Z fluentbit_input_ring_buffer_retries_total{name="fluentbit_metrics.0"} = 0
54+ 2025-12-02T07:33:54.689222850Z fluentbit_input_ring_buffer_retry_failures_total{name="fluentbit_metrics.0"} = 0
55+ 2025-12-02T07:33:56.692846827Z fluentbit_input_metrics_scrapes_total{name="fluentbit_metrics.0"} = 1
56+ 2025-12-02T07:33:54.689563930Z fluentbit_output_proc_records_total{name="stdout.0"} = 0
57+ ...
58+ ```
59+
2560### Configuration file
2661
2762In the following configuration file, the input plugin ` fluentbit_metrics ` collects metrics every ` 2 ` seconds and exposes them through the [ Prometheus Exporter] ( ../outputs/prometheus-exporter.md ) output plugin on HTTP/TCP port ` 2021 ` .
0 commit comments