summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-04-10 10:23:49 +0300
committerGitHub <noreply@github.com>2024-04-10 10:23:49 +0300
commit4a6b8af4fd15746c205843bdea54179f5356af50 (patch)
tree046b31d0e0246322d0cea48eedeebd9ef8320bef
parentf7c39652590c1a4549728dc4d8e83027992c252b (diff)
go.d intelgpu: rename label engine to engine_class (#17361)
-rw-r--r--src/go/collectors/go.d.plugin/modules/intelgpu/charts.go4
-rw-r--r--src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/intelgpu/charts.go b/src/go/collectors/go.d.plugin/modules/intelgpu/charts.go
index 752e210c74..93670633c6 100644
--- a/src/go/collectors/go.d.plugin/modules/intelgpu/charts.go
+++ b/src/go/collectors/go.d.plugin/modules/intelgpu/charts.go
@@ -68,7 +68,7 @@ func (ig *IntelGPU) addEngineCharts(engine string) {
chart.ID = fmt.Sprintf(chart.ID, s)
chart.Labels = []module.Label{
- {Key: "engine", Value: engineDisplayName(engine)},
+ {Key: "engine_class", Value: engineClassName(engine)},
{Key: "engine_instance", Value: engine},
}
for _, dim := range chart.Dims {
@@ -80,7 +80,7 @@ func (ig *IntelGPU) addEngineCharts(engine string) {
}
}
-func engineDisplayName(engine string) string {
+func engineClassName(engine string) string {
// https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/tools/intel_gpu_top.c#L431
engines := []string{"Render/3D", "Blitter", "VideoEnhance", "Video", "Compute"}
for _, name := range engines {
diff --git a/src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml b/src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml
index fe2957ada4..8a40215bb6 100644
--- a/src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml
+++ b/src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml
@@ -104,8 +104,8 @@ modules:
- name: engine
description: These metrics refer to the GPU hardware engine.
labels:
- - name: engine
- description: Engine name (Render/3D, Blitter, VideoEnhance, Video, Compute).
+ - name: engine_class
+ description: Engine class (Render/3D, Blitter, VideoEnhance, Video, Compute).
- name: engine_instance
description: Engine instance (e.g. Render/3D/0, Video/0, Video/1).
metrics: