You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/inputs/fluentbit-metrics.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ description: A plugin to collect Fluent Bit metrics
4
4
5
5
# Fluent Bit metrics
6
6
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).
10
8
11
9
{% hint style="info" %}
10
+
12
11
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 %}
14
14
15
15
## Configuration
16
16
@@ -27,9 +27,30 @@ Metrics collected with Node Exporter Metrics flow through a separate pipeline fr
27
27
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`.
28
28
29
29
{% 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 %}
30
51
{% tab title="fluent-bit.conf" %}
31
52
32
-
```python
53
+
```text
33
54
# Fluent Bit Metrics + Prometheus Exporter
34
55
# -------------------------------------------
35
56
# 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
56
77
57
78
```
58
79
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
-
80
80
{% endtab %}
81
81
{% endtabs %}
82
82
83
83
You can test the expose of the metrics by using `curl`:
0 commit comments