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/node-exporter-metrics.md
+32-24Lines changed: 32 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,12 @@ description: A plugin based on Prometheus Node Exporter to collect system and ho
9
9
The _Node exporter metrics_ plugin contains a subset of collectors and metrics available from Prometheus Node exporter.
10
10
11
11
{% hint style="info" %}
12
-
Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters don't operate on top of metrics.
13
-
{% endhint %}
14
12
13
+
Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters don't operate on top of metrics.
15
14
This plugin is generally supported on Linux-based operating systems, with macOS offering a reduced subset of metrics.
16
15
16
+
{% endhint %}
17
+
17
18
## Configuration
18
19
19
20
`scrape_interval` sets the default for all scrapes. To set granular scrape intervals, set the specific interval. For example, `collector.cpu.scrape_interval`. When using a granular scrape interval, if a value greater than `0` is used, it overrides the global default. Otherwise the global default is used.
@@ -108,11 +109,13 @@ In the following configuration file, the input plugin `node_exporter_metrics` co
108
109
service:
109
110
flush: 1
110
111
log_level: info
112
+
111
113
pipeline:
112
114
inputs:
113
115
- name: node_exporter_metrics
114
116
tag: node_metrics
115
117
scrape_interval: 2
118
+
116
119
outputs:
117
120
- name: prometheus_exporter
118
121
match: node_metrics
@@ -123,7 +126,7 @@ pipeline:
123
126
{% endtab %}
124
127
{% tab title="fluent-bit.conf" %}
125
128
126
-
```python
129
+
```text
127
130
128
131
# Node Exporter Metrics + Prometheus Exporter
129
132
# -------------------------------------------
@@ -157,23 +160,26 @@ pipeline:
157
160
158
161
You can test the expose of the metrics by using `curl`:
159
162
160
-
```bash
161
-
curl http://127.0.0.1:2021/metrics
163
+
```shell
164
+
$ curl http://127.0.0.1:2021/metrics
162
165
```
163
166
164
167
### Container to collect host metrics
165
168
166
169
When deploying Fluent Bit in a container you will need to specify additional settings to ensure that Fluent Bit has access to the host operating system. The following Docker command deploys Fluent Bit with specific mount paths and settings enabled to ensure that Fluent Bit can collect from the host. These are then exposed over port `2021`.
@@ -182,19 +188,21 @@ If you use dashboards for monitoring, Grafana is one option. The Fluent Bit sour
182
188
183
189
1. Download the Fluent Bit source code:
184
190
185
-
```bash
186
-
git clone https://github.com/fluent/fluent-bit
187
-
cd fluent-bit/docker_compose/node-exporter-dashboard/
191
+
```shell
192
+
$ git clone https://github.com/fluent/fluent-bit
193
+
194
+
$ cd fluent-bit/docker_compose/node-exporter-dashboard/
188
195
```
189
196
190
-
1. Start the service and view your dashboard:
197
+
2. Start the service and view your dashboard:
191
198
192
-
```bash
193
-
docker-compose up --force-recreate -d --build
199
+
```shell
200
+
$ docker-compose up --force-recreate -d --build
194
201
```
195
202
196
-
1. Open your browser and use the address `http://127.0.0.1:3000`.
197
-
1. When asked for the credentials to access Grafana, use `admin` for the username and
203
+
3. Open your browser and use the address `http://127.0.0.1:3000`.
204
+
205
+
4. When asked for the credentials to access Grafana, use `admin` for the username and
198
206
password. See [Sign in to Grafana](https://grafana.com/docs/grafana/latest/setup-grafana/sign-in-to-grafana/).
199
207
200
208

@@ -203,12 +211,12 @@ By default, Grafana dashboard plots the data from the last 24 hours. Change it t
203
211
204
212
#### Stop the Service
205
213
206
-
```bash
207
-
docker-compose down
214
+
```shell
215
+
$ docker-compose down
208
216
```
209
217
210
218
## Enhancement requests
211
219
212
220
The plugin implements a subset of the available collectors in the original Prometheus Node exporter. If you would like a specific collector prioritized, open a GitHub issue by using the following template:
0 commit comments