@cryptotaxi247 / netdata-1 / commits / 30d5acdae

go.d intelgpu: uncomment stock config and update meta setup prerequisites (#17370)

Ilya Mashchenko committed Apr 10, 2024 at 20:15 UTC 30d5acdaef786228112ac1b9d9673b1cec6b887b
2 files changed +13 -5
src/go/collectors/go.d.plugin/config/go.d/intelgpu.conf
+3 -3
@@ -1,6 +1,6 @@
1 ## All available configuration options, their descriptions and default values:
2 ## https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/intelgpu#readme
3
4 -#jobs:
5 -# - name: intelgpu
6 -# binary_path: /usr/bin/intel_gpu_top
4 +jobs:
5 + - name: intelgpu
6 + binary_path: /usr/bin/intel_gpu_top
src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml
+10 -2
@@ -44,6 +44,14 @@ modules:
44 list:
45 - title: Install intel-gpu-tools
46 description: Install `intel-gpu-tools` using your distribution's package manager.
47 + - title: Add CAP_PERFMON to `intel_gpu_top`
48 + description: |
49 + When running as a normal user CAP_PERFMON is required to access performance monitoring.
50 + See [capabilities(7)](https://man7.org/linux/man-pages/man7/capabilities.7.html) and [setcap(8)](https://man7.org/linux/man-pages/man8/setcap.8.html).
51 +
52 + ```bash
53 + sudo setcap cap_perfmon=eip /usr/bin/intel_gpu_top
54 + ```
55 configuration:
56 file:
57 name: go.d/intelgpu.conf
@@ -59,9 +67,9 @@ modules:
67 default_value: 1
68 required: false
69 - name: binary_path
62 - description: Path to the intel_gpu_top binary. If an absolute path is provided, the collector will use it directly; otherwise, it will search for the binary in directories specified in the PATH environment variable.
70 + description: Path to the `intel_gpu_top` binary. If an absolute path is provided, the collector will use it directly; otherwise, it will search for the binary in directories specified in the PATH environment variable.
71 default_value: /usr/bin/intel_gpu_top
64 - required: false
72 + required: true
73 examples:
74 folding:
75 title: Config