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 upChange in selector behaviour for != #3575
Comments
brian-brazil
added
component/local storage
kind/bug
priority/P0
labels
Dec 11, 2017
This comment has been minimized.
This comment has been minimized.
|
Yep, this is confirmed and doesn't look like a trivial change. Will work on this whenever I get time, but cannot commit to anything. So, essentially this here is not selecting stuff which doesn't have a label set: https://github.com/prometheus/tsdb/blob/master/querier.go#L257-L306 One of the proposals is that we could materialise a view which has the postings for all series where We could also not bleed this into tsdb and rather make Prometheus make 2 queries, one with "absent" matcher, one with "!=" and then merge the results of the two. /cc @krasi-georgiev |
This comment has been minimized.
This comment has been minimized.
I don't think this should leak, and there could be multiple such selectors. |
gouthamve
added a commit
to gouthamve/prometheus
that referenced
this issue
Dec 13, 2017
This was referenced Dec 13, 2017
gouthamve
added a commit
to gouthamve/tsdb
that referenced
this issue
Dec 17, 2017
gouthamve
referenced this issue
Dec 17, 2017
Merged
Select series with label unset for != and !~ #228
gouthamve
added a commit
to gouthamve/tsdb
that referenced
this issue
Dec 19, 2017
ZeeShen
referenced this issue
Dec 20, 2017
Closed
Logical operation query return null when comes two empty vectors in prometheus 2.0 #3603
gouthamve
closed this
in
prometheus/tsdb#228
Dec 21, 2017
brian-brazil
added a commit
that referenced
this issue
Dec 23, 2017
brian-brazil
added a commit
that referenced
this issue
Dec 23, 2017
krasi-georgiev
added a commit
to krasi-georgiev/prometheus
that referenced
this issue
Jan 10, 2018
gouthamve
pushed a commit
to gouthamve/promql
that referenced
this issue
Mar 28, 2018
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. |
tcolgate commentedDec 11, 2017
What did you do?
query:
metrics{label != "thing"}where label is not set.
What did you expect to see?
In prometheus 1.6.3 this will return all the items where label != "thing", including items where label is not set at all.
What did you see instead? Under which circumstances?
In prometheus 2.0 items without label set are not returned.