Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions pipeline/inputs/podman-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ This plugin supports and automatically detects both `cgroups v1` and `v2`.

You can run the following `curl` command:

```bash
curl 0.0.0.0:2021/metrics
```shell
$ curl 0.0.0.0:2021/metrics
```

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

### Configuration file

```python
{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
inputs:
- name: podman_metrics
scrape_interval: 10
scrape_on_start: true

outputs:
- name: prometheus_exporter
```

{% endtab %}
{% tab title="fluent-bit.conf" %}


```text
[INPUT]
name podman_metrics
scrape_interval 10
scrape_on_start true

[OUTPUT]
name prometheus_exporter
```

{% endtab %}
{% endtabs %}

### Command line

```bash
fluent-bit -i podman_metrics -o prometheus_exporter
```shell
$ fluent-bit -i podman_metrics -o prometheus_exporter
```

### Exposed metrics
Expand All @@ -114,4 +136,4 @@ Currently supported counters are:
- `container_network_transmit_bytes_total`
- `container_network_transmit_errors_total`

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