-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fire SsaCLIControllerNotOK only if status is not OK and not NOT CONFIGURED #373
Conversation
@@ -27,7 +27,7 @@ groups: | |||
LABELS = {{ $labels }} | |||
|
|||
- alert: SsaCLIControllerNotOK | |||
expr: ssacli_controller_info{status != "OK"} == 1 | |||
expr: ssacli_controller_info{status != "OK", status!="NOT CONFIGURED"} == 1 |
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.
This is not a valid Promql expression.
I will revert this PR.
Please, also add unit tests using the promtool
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.
It is a valid expression, I tested it
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.
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.
See #376
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.
I tested with the same unit test you provided, I just didn't add it to the PR
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.
Incredibly it pass the unit tests if I set the NOT CONFIGURED
. However this is very likely a promtool bug that we should file.
As showed above this kind of query will always return empty in Prometheus so it's useless in a real scenario
Fixes: #354