-
Notifications
You must be signed in to change notification settings - Fork 496
enhancement: add support for extra query matchers in loki.rules.kubernetes #3373
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
enhancement: add support for extra query matchers in loki.rules.kubernetes #3373
Conversation
5fb36c2 to
786a71f
Compare
docs/sources/reference/components/loki/loki.rules.kubernetes.md
Outdated
Show resolved
Hide resolved
docs/sources/reference/components/loki/loki.rules.kubernetes.md
Outdated
Show resolved
Hide resolved
docs/sources/reference/components/loki/loki.rules.kubernetes.md
Outdated
Show resolved
Hide resolved
docs/sources/reference/components/loki/loki.rules.kubernetes.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
|
Thank you for the review @clayton-cornell :) |
|
Over to @grafana/grafana-agent-maintainers fr a code review now :-) |
wildum
left a comment
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.
Thanks for bringing this change to loki.rules.kubernetes. I only have two small comments about the error handling part of the code.
wildum
left a comment
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.
LGTM, thanks!
PR Description
The goal is to allow loki.rules.kubernetes to add extra matchers to queries to align with this PR #1773 that was done for mimir.rules.kubernetes.
Which issue(s) this PR fixes
Notes to the Reviewer
I tried to copy the same structure as the code in the mimir.rules.kubernetes component changing mostly the parsing code (using logql instead) which was quite fun to do.
There might be similarities between the 2 code bases that might require some code sharing in places but with the upcoming PRs that I opened for the
mimir.rules.kubernetescomponent (#3270 and #3175), I feel like it might be better to refactor this later one.PR Checklist