Skip to content

Commit f6822f1

Browse files
authored
Merge pull request #1724 from fluent/lynettemiles/sc-136177/update-fluent-bit-docs-pipeline-inputs-fluentbit
2 parents b7baebd + 66867c2 commit f6822f1

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

pipeline/inputs/fluentbit-metrics.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
2-
description: >-
3-
A plugin to collect Fluent Bit's own metrics
2+
description: A plugin to collect Fluent Bit metrics
43
---
54

6-
# Fluent Bit Metrics
5+
# Fluent Bit metrics
76

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.
98
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)..
1310

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.
13+
{ % endhint % }
1414

1515
## Configuration
1616

17-
| Key | Description | Default |
18-
| --------------- | --------------------------------------------------------------------------------------------------------- | --------- |
19-
| scrape_interval | The rate at which metrics are collected from the host operating system | 2 seconds |
20-
| scrape_on_start | Scrape metrics upon start, useful 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` |
22-
17+
| Key | Description | Default |
18+
| --------------- | --------------------------------------------------------------------------| --------- |
19+
| `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` |
2322

24-
## Getting Started
23+
## Get started
2524

26-
### Simple Configuration File
25+
### Configuration file
2726

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`.
2928

3029
{% tabs %}
3130
{% tab title="fluent-bit.conf" %}
32-
```
31+
32+
```python
3333
# Fluent Bit Metrics + Prometheus Exporter
3434
# -------------------------------------------
3535
# 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
5555
port 2021
5656

5757
```
58+
5859
{% endtab %}
5960

6061
{% tab title="fluent-bit.yaml" %}
62+
6163
```yaml
6264
service:
6365
flush: 1
@@ -74,10 +76,11 @@ pipeline:
7476
host: 0.0.0.0
7577
port: 2021
7678
```
79+
7780
{% endtab %}
7881
{% endtabs %}
7982
80-
You can test the expose of the metrics by using _curl:_
83+
You can test the expose of the metrics by using `curl`:
8184

8285
```bash
8386
curl http://127.0.0.1:2021/metrics

0 commit comments

Comments
 (0)