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 upLogical operation query return null when comes two empty vectors in prometheus 2.0 #3603
Comments
This comment has been minimized.
This comment has been minimized.
|
Dupe of #3515, fix will be in the next release. |
brian-brazil
closed this
Dec 20, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ZeeShen commentedDec 20, 2017
What did you do?
query
What did you expect to see?
return
{"status":"success","data":{"resultType":"vector","result":[]}}What did you see instead? Under which circumstances?
{"status":"success","data":{"resultType":"vector","result":null}}prometheus graph js running into error
Uncaught TypeError: Cannot read property 'length' of nullEnvironment
Actually, my situation is: I had some old alerting rules that allow users to disable some alerts by setting a
NoAlertlabel.Because of #3575, prometheus 2.0 doesn't return metrics that
NoAlertlabel is not set. So I tried and thisnullsituation happened.I will put my NoAlert rules in alertmanager as it persists silences on disk now. But this
nullresult maybe not a supposed return?