-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 alert relabelling for Thanos Rule based on Prometheus' logic #4125
Conversation
All checks have passed. Would someone care for a review? ;) @yeya24 maybe? |
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! Perfect work. Only some nits about import.
Signed-off-by: Christian Schulz <trutty3@gmail.com>
Signed-off-by: Christian Schulz <trutty3@gmail.com>
Signed-off-by: Christian Schulz <trutty3@gmail.com>
Thanks for your review @yeya24. I resolved your comments, rebased again on Unfortunately there seem to be some flaky unit tests and e2e tests, that are unrelated to my changes. Could you restart the build by any chance? |
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 solid. Thank you!
Signed-off-by: Christian Schulz trutty3@gmail.com
Fixes #4122
Changes
Add Prometheus' alert relabelling features to Thanos Rule.
Add command line flag to supply the configuration via YAML or file.
Verification
Tested locally with a unit test.
The relabelling logic itself is also tested within Prometheus.