From 272801ec308c71adb2f566e55afbf615fce0f5e3 Mon Sep 17 00:00:00 2001 From: "yufeng.huang" Date: Tue, 12 May 2026 11:15:44 +0800 Subject: [PATCH] support pod label collection on MIG (cherry picked from commit 1c7178849aabb069cc3b0b3608b8464a17980dcd) --- internal/pkg/transformation/kubernetes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pkg/transformation/kubernetes.go b/internal/pkg/transformation/kubernetes.go index 1fe44e42..62bba7cd 100644 --- a/internal/pkg/transformation/kubernetes.go +++ b/internal/pkg/transformation/kubernetes.go @@ -388,6 +388,7 @@ func (p *PodMapper) Process(metrics collector.MetricsByCounter, deviceInfo devic if pi.VGPU != "" { metric.Attributes[vgpuAttribute] = pi.VGPU } + maps.Copy(metric.Labels, pi.Labels) // Robustness: ensure no overlap between Labels and Attributes for k := range metric.Attributes {