-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
Skip partition label group by per Dabz#31
cmd/internal/collector/query.go
Outdated
for _, label := range metric.Labels { | ||
groupBy = append(groupBy, "metric.label."+label.Key) | ||
} | ||
groupBy := []string{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation seems off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got the same feeling, go fmt
seems right, but: @cotedm used spaces instead of tab.
Debating about space vs tabs is not really productive, but I will change those to tabs in order to be consistent with the rest of the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation: fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops sorry about the format mismatch!
I tested locally, it seems to have no impact (one day - I will have automatic testing ^^). Let me merge and it should trigger the docker build automatically |
Actually, I noticed that we still return the partition label to Prometheus: |
Late to the party here, but would it be safer to have a whitelist of labels that we include rather than a blacklist (partition being on the "blacklist"). This was the original implementation that @Dabz had prior to this change Ideally this would be configurable. This is how the cloudwatch exporter works (see |
Completely agree with you @sirianni , I merged it as a "quick win" but I am planning to do some refactoring in the near future (aka, once I got a free day). I opened #31 and #32 to trace my plans (and mostly not to forget them 😅 ). The goal is:
|
Skip partition label group by per #31