Skip to content

Commit 033fef6

Browse files
authored
Small fixes and adding to Summary file listing for docs site. Fixes #2080. (#2113)
* Removing a readme file this is not standardized in classic-mode directory. Signed-off-by: Eric D. Schabell <[email protected]> * Updated to not use readme file in classic-config directory, but the correct description file. Signed-off-by: Eric D. Schabell <[email protected]> * Updated to better sort some sections and update for missing entries. Fixes #2108. Signed-off-by: Eric D. Schabell <[email protected]> * Updated configuration variables for opentelemetry output plugin, many new ones added. Signed-off-by: Eric D. Schabell <[email protected]> * Updated configuration variables for opentelemetry output plugin, many new ones added. Fixes #2083 Signed-off-by: Eric D. Schabell <[email protected]> * Fixes reqeusted by reviewers for options table for opentelemetry output plugin. Signed-off-by: Eric D. Schabell <[email protected]> * Fixed gpu metrics input plugin to use standardized code block example formats (shell, text). Signed-off-by: Eric D. Schabell <[email protected]> * Added gpu metrics input plugin to Summary listing for inclusion in website. Fixes #2080. Signed-off-by: Eric D. Schabell <[email protected]> --------- Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 608fd69 commit 033fef6

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
* [Exec WASI](pipeline/inputs/exec-wasi.md)
9797
* [Fluent Bit metrics](pipeline/inputs/fluentbit-metrics.md)
9898
* [Forward](pipeline/inputs/forward.md)
99+
* [GPU metrics](pipeline/inputs/gpu-metrics.md)
99100
* [Head](pipeline/inputs/head.md)
100101
* [Health](pipeline/inputs/health.md)
101102
* [HTTP](pipeline/inputs/http.md)

pipeline/inputs/gpu-metrics.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ The GPU metrics plugin will automatically scan for supported **AMD GPUs** that a
4848

4949
To check if your AMD GPU will be detected run:
5050

51-
```bash
51+
```shell
5252
lspci | grep -i vga | grep -i amd
5353
```
5454

5555
Example output:
5656

57-
```bash
57+
```text
5858
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)
5959
73:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Granite Ridge [Radeon Graphics] (rev c5)
6060
```
@@ -65,13 +65,13 @@ In systems with multiple GPUs, the GPU metrics plugin will detect all AMD cards
6565

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

68-
```bash
68+
```shell
6969
ls /sys/class/drm/card*/device/vendor
7070
```
7171

7272
Example output:
7373

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

8585
Run the following command from the command line:
8686

87-
```bash
87+
```shell
8888
fluent-bit -i gpu_metrics -o stdout
8989
```
9090

9191
Example output:
9292

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

120120
```yaml
121121
pipeline:
122-
inputs:
123-
- name: gpu_metrics
124-
scrape_interval: 2
125-
path_sysfs: /sys
126-
cards_include: "1"
127-
cards_exclude: "0"
128-
enable_power: true
129-
enable_temperature: true
130-
131-
outputs:
132-
- name: stdout
133-
match: '*'
122+
inputs:
123+
- name: gpu_metrics
124+
scrape_interval: 2
125+
path_sysfs: /sys
126+
cards_include: "1"
127+
cards_exclude: "0"
128+
enable_power: true
129+
enable_temperature: true
130+
131+
outputs:
132+
- name: stdout
133+
match: '*'
134134
```
135135
136136
{% endtab %}
137137
{% tab title="fluent-bit.conf" %}
138138
139139
```text
140140
[INPUT]
141-
Name gpu_metrics
142-
scrape_interval 2
143-
path_sysfs /sys
144-
cards_include 1
145-
cards_exclude 0
146-
enable_power true
147-
enable_temperature true
141+
Name gpu_metrics
142+
scrape_interval 2
143+
path_sysfs /sys
144+
cards_include 1
145+
cards_exclude 0
146+
enable_power true
147+
enable_temperature true
148148

149149
[OUTPUT]
150-
Name stdout
151-
Match *
150+
Name stdout
151+
Match *
152152
```
153153

154154
{% endtab %}

0 commit comments

Comments
 (0)