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/prometheus-textfile.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# Prometheus Textfile
1
+
# Prometheus textfile
2
2
3
-
The **prometheus_textfile**input plugin allows Fluent Bit to read metrics from Prometheus text format files (.prom files) on the local filesystem. This plugin is particularly useful for collecting custom metrics that are written to files by external applications or scripts, similar to the Prometheus Node Exporter textfile collector.
3
+
The _Prometheus textfile_input plugin allows Fluent Bit to read metrics from Prometheus text format files (`.prom` files) on the local filesystem. Use this plugin to collect custom metrics that are written to files by external applications or scripts, similar to the Prometheus Node Exporter `textfile` collector.
4
4
5
-
## Configuration Parameters
5
+
## Configuration parameters
6
6
7
7
| Key | Description | Default |
8
8
|-----|-------------|---------|
9
-
| path | File or directory path pattern. Supports glob patterns with `*` wildcard (e.g., `/var/lib/prometheus/*.prom`) ||
10
-
| scrape_interval | Interval in seconds between file scans | 10s |
9
+
|`path`| File or directory path pattern. Supports glob patterns with `*` wildcard (For example, `/var/lib/prometheus/*.prom`) |_none_|
10
+
|`scrape_interval`| Interval in seconds between file scans |`10s`|
11
11
12
-
## Getting Started
12
+
## Get started
13
13
14
-
### Simple Configuration
14
+
### Basic configuration
15
15
16
16
The following configuration will monitor `/var/lib/prometheus/textfile` directory for `.prom` files every 15 seconds:
17
17
@@ -29,11 +29,11 @@ pipeline:
29
29
port: 2021
30
30
```
31
31
32
-
## Prometheus Text Format
32
+
## Prometheus text format
33
33
34
34
The plugin expects files to be in the standard Prometheus text exposition format. Here's an example of a valid `.prom` file:
35
35
36
-
```
36
+
```text
37
37
# HELP custom_counter_total A custom counter metric
0 commit comments