From c0486b17a2a2ece5e3ee4c70f0b3cc40f96e8eaa Mon Sep 17 00:00:00 2001 From: Chris Grindstaff Date: Wed, 25 Sep 2024 03:42:54 -0400 Subject: [PATCH] fix: volume_aggr_labels should not include uuid label (#3171) --- cmd/collectors/volume.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/collectors/volume.go b/cmd/collectors/volume.go index 11f336bde..3831ab37a 100644 --- a/cmd/collectors/volume.go +++ b/cmd/collectors/volume.go @@ -40,6 +40,7 @@ func ProcessFlexGroupData(logger *slog.Logger, data *matrix.Matrix, style string fg.SetLabels(maps.Clone(i.GetLabels())) fg.SetLabel("volume", match[1]) fg.SetLabel("node", "") + fg.SetLabel("uuid", "") fg.SetLabel(style, "flexgroup") fgAggrMap[key] = set.New() } @@ -49,6 +50,7 @@ func ProcessFlexGroupData(logger *slog.Logger, data *matrix.Matrix, style string flexgroupInstance.SetLabels(maps.Clone(i.GetLabels())) flexgroupInstance.SetLabel("volume", match[1]) flexgroupInstance.SetLabel("node", "") + flexgroupInstance.SetLabel("uuid", "") flexgroupInstance.SetLabel(style, "flexgroup") flexgroupAggrsMap[key] = set.New() if err := metric.SetValueFloat64(flexgroupInstance, 1); err != nil {