Skip to content

Commit 7017d4b

Browse files
authored
Fixing layout and standardizing on YAML configuration for input plugin Fluent Bit Metrics docs. Fixes #1800. (#1801)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 618c280 commit 7017d4b

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

pipeline/inputs/fluentbit-metrics.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: A plugin to collect Fluent Bit metrics
44

55
# Fluent Bit metrics
66

7-
Fluent Bit exposes [metrics](../../administration/monitoring.md) to let you monitor the internals of your pipeline.
8-
The collected metrics can be processed similarly to those from the [Prometheus Node Exporter input plugin](node-exporter-metrics.md).
9-
They can be sent to output plugins including [Prometheus Exporter](../outputs/prometheus-exporter.md), [Prometheus Remote Write](../outputs/prometheus-remote-write.md) or [OpenTelemetry](../outputs/opentelemetry.md)..
7+
Fluent Bit exposes [metrics](../../administration/monitoring.md) 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](node-exporter-metrics.md). They can be sent to output plugins including [Prometheus Exporter](../outputs/prometheus-exporter.md), [Prometheus Remote Write](../outputs/prometheus-remote-write.md) or [OpenTelemetry](../outputs/opentelemetry.md).
108

119
{% hint style="info" %}
10+
1211
Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters don't operate on top of metrics.
13-
{ % endhint % }
12+
13+
{% endhint %}
1414

1515
## Configuration
1616

@@ -27,9 +27,30 @@ Metrics collected with Node Exporter Metrics flow through a separate pipeline fr
2727
In the following configuration file, the input plugin `node_exporter_metrics` collects metrics every `2` seconds and exposes them through the [Prometheus Exporter](../outputs/prometheus-exporter.md) output plugin on HTTP/TCP port `2021`.
2828

2929
{% tabs %}
30+
{% tab title="fluent-bit.yaml" %}
31+
32+
```yaml
33+
service:
34+
flush: 1
35+
log_level: info
36+
37+
pipeline:
38+
inputs:
39+
- name: fluentbit_metrics
40+
tag: internal_metrics
41+
scrape_interval: 2
42+
43+
outputs:
44+
- name: prometheus_exporter
45+
match: internal_metrics
46+
host: 0.0.0.0
47+
port: 2021
48+
```
49+
50+
{% endtab %}
3051
{% tab title="fluent-bit.conf" %}
3152
32-
```python
53+
```text
3354
# Fluent Bit Metrics + Prometheus Exporter
3455
# -------------------------------------------
3556
# The following example collects Fluent Bit metrics and exposes
@@ -56,32 +77,11 @@ In the following configuration file, the input plugin `node_exporter_metrics` co
5677

5778
```
5879

59-
{% endtab %}
60-
61-
{% tab title="fluent-bit.yaml" %}
62-
63-
```yaml
64-
service:
65-
flush: 1
66-
log_level: info
67-
pipeline:
68-
inputs:
69-
- name: fluentbit_metrics
70-
tag: internal_metrics
71-
scrape_interval: 2
72-
73-
outputs:
74-
- name: prometheus_exporter
75-
match: internal_metrics
76-
host: 0.0.0.0
77-
port: 2021
78-
```
79-
8080
{% endtab %}
8181
{% endtabs %}
8282

8383
You can test the expose of the metrics by using `curl`:
8484

85-
```bash
86-
curl http://127.0.0.1:2021/metrics
87-
```
85+
```shell
86+
$ curl http://127.0.0.1:2021/metrics
87+
```

0 commit comments

Comments
 (0)