Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAlert conditions referring to different target servers #2205
Comments
This comment has been minimized.
This comment has been minimized.
|
What I am asking is actually possible like this: metric1{instance="SERVER1"} > 10 AND ignoring(instance) metric2{instance="SERVER2"} > 10 |
yan0s
closed this
Nov 24, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
yan0s commentedNov 18, 2016
•
edited
Hello,
is there an easy way to have an ALERT with conditions for 2 (or more) different target servers?
Or is it possible to combine alerts with AND/OR operators?
This doesn't work:
metric1{instance="SERVER1"} > 10 AND metric2{instance="SERVER2"} > 20
My solution so far is something like this:
vector(scalar(metric1{instance="SERVER1"} > BOOL 10) * scalar(metric2{instance="SERVER2"} > BOOL 20)) == 1
Also, is there a thorough documentation for PromQL available somewhere?
Thank you in advance