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 upTreat empty labels like unset labels #494
Comments
This comment has been minimized.
This comment has been minimized.
|
Probably |
This comment has been minimized.
This comment has been minimized.
|
I'd overall prefer a hackish stuff to retrieve all time series. It's an advanced use case, and a great way to take out a prometheus server.
|
This comment has been minimized.
This comment has been minimized.
|
Mh, at least have a label name that is guaranteed to be always unset? Probably the case for |
This comment has been minimized.
This comment has been minimized.
|
{job~=".*"} will do it. |
This comment has been minimized.
This comment has been minimized.
|
Sure, under the whole "only if you know what you are doing assumption" this seems fair as well. I would give this one a go. As far as I can see one needs to check all archived and in-memory series? Or did I overlook a better way? |
This was referenced Mar 16, 2015
This comment has been minimized.
This comment has been minimized.
|
Recent discussions: Match for unset labels will be very slow to process in a query. Not sure how much effort we should invest into making it faster. But even if we do not allow the querying for unset labels, we should finally implement throwing away labels with empty values before storing and indexing them (but after the whole relabeling shebang that happens during scraping, so that empty label values can be used to prevent auto-attaching labels). |
beorn7
assigned
fabxc
Jun 12, 2015
This comment has been minimized.
This comment has been minimized.
|
Closed via #810 with the limitation of requiring one or more matchers not matching the empty string. |
fabxc
closed this
Jun 23, 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. |
juliusv commentedJan 30, 2015
{x=""}should return any time series which don't have thexlabel set, as well as series where it's empty. Optionally, we may also decide to drop empty labels completely upon ingestion. This makes it possible to find time series that don't have certain labels set at all (useful in rare cases for finding certain metrics), but also is more consistent with the syntax for unsetting labels on the left-hand-side in recording rules (by setting a label to empty, it is unset).