@cryptotaxi247 / netdata-1 / commits / 4a6b8af4f

go.d intelgpu: rename label engine to engine_class (#17361)

Ilya Mashchenko committed Apr 10, 2024 at 10:23 UTC 4a6b8af4fd15746c205843bdea54179f5356af50
2 files changed +4 -4
src/go/collectors/go.d.plugin/modules/intelgpu/charts.go
+2 -2
@@ -68,7 +68,7 @@ func (ig *IntelGPU) addEngineCharts(engine string) {
68
69 chart.ID = fmt.Sprintf(chart.ID, s)
70 chart.Labels = []module.Label{
71 - {Key: "engine", Value: engineDisplayName(engine)},
71 + {Key: "engine_class", Value: engineClassName(engine)},
72 {Key: "engine_instance", Value: engine},
73 }
74 for _, dim := range chart.Dims {
@@ -80,7 +80,7 @@ func (ig *IntelGPU) addEngineCharts(engine string) {
80 }
81 }
82
83 -func engineDisplayName(engine string) string {
83 +func engineClassName(engine string) string {
84 // https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/tools/intel_gpu_top.c#L431
85 engines := []string{"Render/3D", "Blitter", "VideoEnhance", "Video", "Compute"}
86 for _, name := range engines {
src/go/collectors/go.d.plugin/modules/intelgpu/metadata.yaml
+2 -2
@@ -104,8 +104,8 @@ modules:
104 - name: engine
105 description: These metrics refer to the GPU hardware engine.
106 labels:
107 - - name: engine
108 - description: Engine name (Render/3D, Blitter, VideoEnhance, Video, Compute).
107 + - name: engine_class
108 + description: Engine class (Render/3D, Blitter, VideoEnhance, Video, Compute).
109 - name: engine_instance
110 description: Engine instance (e.g. Render/3D/0, Video/0, Video/1).
111 metrics: