File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ This plugin supports and automatically detects both `cgroups v1` and `v2`.
25
25
26
26
You can run the following ` curl ` command:
27
27
28
- ``` bash
29
- curl 0.0.0.0:2021/metrics
28
+ ``` shell
29
+ $ curl 0.0.0.0:2021/metrics
30
30
```
31
31
32
32
Which returns information like:
@@ -84,19 +84,41 @@ fluentbit_input_storage_chunks_busy_bytes{name="podman_metrics.0"} 0
84
84
85
85
### Configuration file
86
86
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
88
106
[INPUT]
89
107
name podman_metrics
90
108
scrape_interval 10
91
109
scrape_on_start true
110
+
92
111
[OUTPUT]
93
112
name prometheus_exporter
94
113
```
95
114
115
+ {% endtab %}
116
+ {% endtabs %}
117
+
96
118
### Command line
97
119
98
- ``` bash
99
- fluent-bit -i podman_metrics -o prometheus_exporter
120
+ ``` shell
121
+ $ fluent-bit -i podman_metrics -o prometheus_exporter
100
122
```
101
123
102
124
### Exposed metrics
@@ -114,4 +136,4 @@ Currently supported counters are:
114
136
- ` container_network_transmit_bytes_total `
115
137
- ` container_network_transmit_errors_total `
116
138
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 ) .
You can’t perform that action at this time.
0 commit comments