Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
* [Exec WASI](pipeline/inputs/exec-wasi.md)
* [Fluent Bit metrics](pipeline/inputs/fluentbit-metrics.md)
* [Forward](pipeline/inputs/forward.md)
* [GPU metrics](pipeline/inputs/gpu-metrics.md)
* [Head](pipeline/inputs/head.md)
* [Health](pipeline/inputs/health.md)
* [HTTP](pipeline/inputs/http.md)
Expand Down
54 changes: 27 additions & 27 deletions pipeline/inputs/gpu-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ The GPU metrics plugin will automatically scan for supported **AMD GPUs** that a

To check if your AMD GPU will be detected run:

```bash
```shell
lspci | grep -i vga | grep -i amd
```

Example output:

```bash
```text
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900 GRE/7900M] (rev ce)
73:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Granite Ridge [Radeon Graphics] (rev c5)
```
Expand All @@ -65,13 +65,13 @@ In systems with multiple GPUs, the GPU metrics plugin will detect all AMD cards

To list the GPUs running in your system run the following command:

```bash
```shell
ls /sys/class/drm/card*/device/vendor
```

Example output:

```bash
```text
/sys/class/drm/card0/device/vendor
/sys/class/drm/card1/device/vendor
```
Expand All @@ -84,13 +84,13 @@ To get GPU metrics from your system, you can run the plugin from either the comm

Run the following command from the command line:

```bash
```shell
fluent-bit -i gpu_metrics -o stdout
```

Example output:

```json
```text
2025-10-25T20:36:55.236905093Z gpu_utilization_percent{card="1",vendor="amd"} = 2
2025-10-25T20:36:55.237853918Z gpu_utilization_percent{card="0",vendor="amd"} = 0
2025-10-25T20:36:55.236905093Z gpu_memory_used_bytes{card="1",vendor="amd"} = 1580118016
Expand Down Expand Up @@ -119,36 +119,36 @@ In your main configuration file append the following:

```yaml
pipeline:
inputs:
- name: gpu_metrics
scrape_interval: 2
path_sysfs: /sys
cards_include: "1"
cards_exclude: "0"
enable_power: true
enable_temperature: true

outputs:
- name: stdout
match: '*'
inputs:
- name: gpu_metrics
scrape_interval: 2
path_sysfs: /sys
cards_include: "1"
cards_exclude: "0"
enable_power: true
enable_temperature: true

outputs:
- name: stdout
match: '*'
```

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

```text
[INPUT]
Name gpu_metrics
scrape_interval 2
path_sysfs /sys
cards_include 1
cards_exclude 0
enable_power true
enable_temperature true
Name gpu_metrics
scrape_interval 2
path_sysfs /sys
cards_include 1
cards_exclude 0
enable_power true
enable_temperature true

[OUTPUT]
Name stdout
Match *
Name stdout
Match *
```

{% endtab %}
Expand Down