-
Notifications
You must be signed in to change notification settings - Fork 812
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
Add support for rule group labels #6665
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,10 @@ message RuleGroupDesc { | |
int64 limit =10; | ||
google.protobuf.Duration queryOffset = 11 | ||
[(gogoproto.nullable) = true, (gogoproto.stdduration) = true]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated, but interesting that queryOffset is using nullable = true while all the rest is not. I was reading through the implications https://pkg.go.dev/github.com/gogo/protobuf/gogoproto#hdr-More_Canonical_Go_Structures |
||
repeated cortexpb.LabelPair labels = 12 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.customtype) = "github.com/cortexproject/cortex/pkg/cortexpb.LabelAdapter" | ||
]; | ||
} | ||
|
||
// RuleDesc is a proto representation of a Prometheus Rule | ||
|
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.
we could also get the rule group using the client
GerRuleGroup
method to assert that theduplicate_label
is really in the rule group level.