From d7c1b28783f480cb0b76d239fb0832459e02811d Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Wed, 18 Mar 2026 17:04:28 +0100 Subject: [PATCH] docs: outputs: prometheus-exporter: fix config params table and classic config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Sort table alphabetically: add_label, add_timestamp, host, port, workers - Add missing add_timestamp param (default: false) - Fix workers default: 1 → 0 - Improve host/port descriptions (remove "This is") - Fix classic config keys to Title_Case Applies to #2412 Signed-off-by: Eric D. Schabell --- pipeline/outputs/prometheus-exporter.md | 29 +++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/pipeline/outputs/prometheus-exporter.md b/pipeline/outputs/prometheus-exporter.md index 40b8361b9..e8b3fe783 100644 --- a/pipeline/outputs/prometheus-exporter.md +++ b/pipeline/outputs/prometheus-exporter.md @@ -15,10 +15,11 @@ This plugin supports the following parameters: | Key | Description | Default | |:----|:------------|:--------| -| `host` | This is address Fluent Bit will bind to when hosting Prometheus metrics. The `listen` parameter is deprecated in 1.9.0 and later. | `0.0.0.0` | -| `port` | This is the port Fluent Bit will bind to when hosting Prometheus metrics. | `2021` | | `add_label` | This lets you add custom labels to all metrics exposed through the Prometheus exporter. You can have multiple of these fields. | _none_ | -| `workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `1` | +| `add_timestamp` | Add timestamp to every metric honoring collection time. | `false` | +| `host` | IP address or hostname Fluent Bit will bind to when hosting Prometheus metrics. The `listen` parameter is deprecated in 1.9.0 and later. | `0.0.0.0` | +| `port` | TCP port Fluent Bit will bind to when hosting Prometheus metrics. | `2021` | +| `workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `0` | ## Get started @@ -72,22 +73,22 @@ pipeline: # $ curl http://127.0.0.1:2021/metrics # [SERVICE] - flush 1 - log_level info + Flush 1 + Log_Level info [INPUT] - name node_exporter_metrics - tag node_metrics - scrape_interval 2 + Name node_exporter_metrics + Tag node_metrics + Scrape_Interval 2 [OUTPUT] - name prometheus_exporter - match node_metrics - host 0.0.0.0 - port 2021 + Name prometheus_exporter + Match node_metrics + Host 0.0.0.0 + Port 2021 # add user-defined labels - add_label app fluent-bit - add_label color blue + Add_Label app fluent-bit + Add_Label color blue ``` {% endtab %}