Skip to content

Commit

Permalink
fix: volume_aggr_labels should not include uuid label
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds committed Sep 24, 2024
1 parent 1ff7e71 commit a366305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/collectors/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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 {
Expand Down

0 comments on commit a366305

Please sign in to comment.