summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/intelgpu/charts.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/intelgpu/charts.go')
-rw-r--r--src/go/collectors/go.d.plugin/modules/intelgpu/charts.go4
1 files changed, 2 insertions, 2 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 {