-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove unit from alerts #239
Conversation
abea962
to
567730e
Compare
@dstathis It would help in review and for posterity if your commit message included
|
fb29ca9
to
1a28ed4
Compare
This commit adds unit tests to check the following - If Juju unit topology information is not present in alert rules expressions or labels then it is not injected by MetricsEndpointProvider. - If Juju unit topology information is present in alert rule expressions or labels then it is not removed by MetricsEndpointProvider.
1a28ed4
to
674ffe5
Compare
For whatever it is worth. Here is my analysis of the impacts of the changes introduced by this commit. I am still going through to double check these so take it with a pinch of salt.
|
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.
once tests pass and the conversations have been properly resolved, I'm happy to approve.
fbb03f3
to
d6946d1
Compare
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.
Just quibbling about the alert name. Is the change to tox.ini
intentional?
3485d1a
This PR adds an itest that addresses canonical/prometheus-k8s-operator#239: Now that juju_unit is no longer added to rule files, this test confirms that alerts still fire per unit (not only from the leader unit), and are correctly labeled as such.
No description provided.