Skip to content

Commit 1a77c13

Browse files
authored
Adding YAML examples and shell standardization to Podman Metrics docs. Fixes #1846. (#1849)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent ae9f7f5 commit 1a77c13

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

pipeline/inputs/podman-metrics.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ This plugin supports and automatically detects both `cgroups v1` and `v2`.
2525

2626
You can run the following `curl` command:
2727

28-
```bash
29-
curl 0.0.0.0:2021/metrics
28+
```shell
29+
$ curl 0.0.0.0:2021/metrics
3030
```
3131

3232
Which returns information like:
@@ -84,19 +84,41 @@ fluentbit_input_storage_chunks_busy_bytes{name="podman_metrics.0"} 0
8484

8585
### Configuration file
8686

87-
```python
87+
{% tabs %}
88+
{% tab title="fluent-bit.yaml" %}
89+
90+
```yaml
91+
pipeline:
92+
inputs:
93+
- name: podman_metrics
94+
scrape_interval: 10
95+
scrape_on_start: true
96+
97+
outputs:
98+
- name: prometheus_exporter
99+
```
100+
101+
{% endtab %}
102+
{% tab title="fluent-bit.conf" %}
103+
104+
105+
```text
88106
[INPUT]
89107
name podman_metrics
90108
scrape_interval 10
91109
scrape_on_start true
110+
92111
[OUTPUT]
93112
name prometheus_exporter
94113
```
95114

115+
{% endtab %}
116+
{% endtabs %}
117+
96118
### Command line
97119

98-
```bash
99-
fluent-bit -i podman_metrics -o prometheus_exporter
120+
```shell
121+
$ fluent-bit -i podman_metrics -o prometheus_exporter
100122
```
101123

102124
### Exposed metrics
@@ -114,4 +136,4 @@ Currently supported counters are:
114136
- `container_network_transmit_bytes_total`
115137
- `container_network_transmit_errors_total`
116138

117-
This plugin mimics the naming convention of Docker metrics exposed by [`cadvisor`](https://github.com/google/cadvisor).
139+
This plugin mimics the naming convention of Docker metrics exposed by [`cadvisor`](https://github.com/google/cadvisor).

0 commit comments

Comments
 (0)