summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: