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
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
1
---
2
-
description: >-
3
-
A plugin to collect Fluent Bit's own metrics
2
+
description: A plugin to collect Fluent Bit metrics
4
3
---
5
4
6
-
# Fluent Bit Metrics
5
+
# Fluent Bit metrics
7
6
8
-
Fluent Bit exposes its [own metrics](../../administration/monitoring.md) to allow you to monitor the internals of your pipeline.
7
+
Fluent Bit exposes [metrics](../../administration/monitoring.md) to let you monitor the internals of your pipeline.
9
8
The collected metrics can be processed similarly to those from the [Prometheus Node Exporter input plugin](node-exporter-metrics.md).
10
-
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)..
11
-
12
-
**Important note:** Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters do not operate on top of metrics.
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)..
13
10
11
+
{% hint style="info" %}
12
+
Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters don't operate on top of metrics.
|`scrape_interval`| The rate at which metrics are collected from the host operating system. |`2` seconds |
20
+
|`scrape_on_start`| Scrape metrics upon start, use to avoid waiting for `scrape_interval` for the first round of metrics. |`false`|
21
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
23
22
24
-
## Getting Started
23
+
## Get started
25
24
26
-
### Simple Configuration File
25
+
### Configuration file
27
26
28
-
In the following configuration file, the input plugin _node_exporter_metrics collects _metrics every 2 seconds and exposes them through our[Prometheus Exporter](../outputs/prometheus-exporter.md) output plugin on HTTP/TCP port 2021.
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`.
29
28
30
29
{% tabs %}
31
30
{% tab title="fluent-bit.conf" %}
32
-
```
31
+
32
+
```python
33
33
# Fluent Bit Metrics + Prometheus Exporter
34
34
# -------------------------------------------
35
35
# The following example collects Fluent Bit metrics and exposes
@@ -55,9 +55,11 @@ In the following configuration file, the input plugin _node_exporter_metrics col
55
55
port 2021
56
56
57
57
```
58
+
58
59
{% endtab %}
59
60
60
61
{% tab title="fluent-bit.yaml" %}
62
+
61
63
```yaml
62
64
service:
63
65
flush: 1
@@ -74,10 +76,11 @@ pipeline:
74
76
host: 0.0.0.0
75
77
port: 2021
76
78
```
79
+
77
80
{% endtab %}
78
81
{% endtabs %}
79
82
80
-
You can test the expose of the metrics by using _curl:_
83
+
You can test the expose of the metrics by using `curl`:
0 commit comments