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/podman-metrics.md
+43-35Lines changed: 43 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,37 @@
1
-
---
2
-
description: The Podman Metrics input plugin allows you to collect metrics from podman containers, so they can be exposed later as, for example, Prometheus counters and gauges.
3
-
---
1
+
# Podman metrics
4
2
5
-
#Podman Metrics
3
+
The Podman metrics input plugin allows Fluent Bit to gather Podman container metrics. The procedure for collecting container list and gathering data associated with them is based on filesystem data.
6
4
7
-
## Configuration Parameters
5
+
The metrics can be exposed later as, for example, Prometheus counters and gauges.
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
7
+
## Configuration parameters
17
8
18
-
## Getting Started
9
+
| Key | Description | Default |
10
+
| --- | ------------| ------- |
11
+
|`scrape_interval`| Interval between each scrape of Podman data (in seconds). |`30`|
12
+
|`scrape_on_start`| Sets whether this plugin scrapes Podman data on startup. |`false`|
13
+
|`path.config`| Custom path to the Podman containers configuration file. |`/var/lib/containers/storage/overlay-containers/containers.json`|
14
+
|`path.sysfs`| Custom path to the `sysfs` subsystem directory. |`/sys/fs/cgroup`|
15
+
|`path.procfs`| Custom path to the `proc` subsystem directory. |`/proc`|
16
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
19
17
20
-
The podman metrics input plugin allows Fluent Bit to gather podman container metrics. The entire procedure of collecting container list and gathering data associated with them bases on filesystem data.This plugin does not execute podman commands or send http requests to podman api - instead it reads podman configuration file and metrics exposed by */sys* and */proc* filesystems.
18
+
## Get started
21
19
22
-
This plugin supports and automatically detects both cgroups v1 and v2.
20
+
This plugin doesn't execute `podman` commands or send HTTP requests to Podman API. It reads a Podman configuration file and metrics exposed by the `/sys` and `/proc` filesystems.
23
21
24
-
**Example Curl message for one running container**
22
+
This plugin supports and automatically detects both `cgroups v1` and `v2`.
25
23
24
+
### Example `curl` message for one running container
25
+
26
+
You can run the following `curl` command:
27
+
28
+
```bash
29
+
curl 0.0.0.0:2021/metrics
26
30
```
27
-
$> curl 0.0.0.0:2021/metrics
31
+
32
+
Which returns information like:
33
+
34
+
```text
28
35
# HELP fluentbit_input_bytes_total Number of input bytes.
0 commit comments