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 upOptimize label~=".*" #807
Comments
This comment has been minimized.
This comment has been minimized.
|
@mwitkow-io Yes, using regexes does a full scan+match for all label values for the given label name, and then does a subsequent (indexed) lookup for each label/value pair that matched the regex. For interpreting Related issue about treating empty labels the same as unset labels: #494. Especially if |
This comment has been minimized.
This comment has been minimized.
|
CC @fabxc @brian-brazil for intellectual stimulation :) |
This comment has been minimized.
This comment has been minimized.
|
Currently the way we use analyse selectors isn't very efficient. If we change it to be a bit smarter and do the simple lookups first (particularly on |
This comment has been minimized.
This comment has been minimized.
|
Yeah, when taking into account that empty labels should be treated the same as unset labels as requested in #494, that would make semantic sense and is worth a breaking change. It's still not easy to implement in a performant way though. We don't have a way for looking up all time series for a given empty label in the index, and even if we do the simple lookups (like |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Yes, this is as good as it gets... closing. |
beorn7
closed this
Jul 15, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
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. |
mwitkow commentedJun 15, 2015
We've built our consoles to always have an
instancelabel template, which defaults to.*. It allows us to take the same dashboard and drill-down to a specific host if needed while maintaining dashboard generalism.However, apparently specifying
label~=",*"makes Prometheus skip the indexes and do a full scan. Is this true? If so, can we optimize the case of a "match all" to be taken out of the selector (doing that in Promdash is hard, so maybe in Prometheus query eval)?