-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Do not enforce labels vs agg metric stream #16696
Conversation
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.
Looks good!
pkg/distributor/validator.go
Outdated
@@ -143,7 +143,11 @@ func (v Validator) ValidateEntry(ctx context.Context, vCtx validationContext, la | |||
return nil | |||
} | |||
|
|||
// Validate labels returns an error if the labels are invalid | |||
func (v Validator) isAggregatedMetricStream(ls labels.Labels) bool { |
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.
should this be public at this point? I can see either way since this is all in the distributor package, but it feels public to me now :)
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.
the aggregated metric itself is public already, so +1 on making this public.
Hello @DylanGuedes!
Please, if the current pull request addresses a bug fix, label it with the |
**What this PR does / why we need it**: Modify our push logic to not enforce labels if the current stream is the especial aggregated metric stream (cherry picked from commit 25c0620)
What this PR does / why we need it:
Modify our push logic to not enforce labels if the current stream is the especial aggregated metric stream
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
deprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR