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 rules with "constans" #1905
Comments
This comment has been minimized.
This comment has been minimized.
|
It's easiest to use hardcoded values when you can, it's simpler to understand. The more general solution is complicated. |
brian-brazil
added
the
kind/question
label
Aug 22, 2016
This comment has been minimized.
This comment has been minimized.
|
We use threshold metrics in a few places where we want to allow users to configure different thresholds. It gets indeed a lot more complicated though. @freeseacher Both sides are vectors. You'll either need to the right hand side to a scalar or specify the labels the vector matching should work on. |
brian-brazil
closed this
Oct 26, 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.
freeseacher commentedAug 22, 2016
Hi i want to separate constants with threshold from rules. and made such configuration.
init.rules
I want to use it in such rule
but when i do t manually
return empty result
but
and
According to https://prometheus.io/docs/querying/operators/#comparison-binary-operators that seems to be "Between two scalars" and should be fine.
Am i'am doing something wrong?