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 updrop_common_labels reported as unknown function #3320
Comments
This comment has been minimized.
This comment has been minimized.
|
drop_common_labels has been removed and is not longer available, see #3060. @brian-brazil We need a better answer for this then "it's gone". |
This comment has been minimized.
This comment has been minimized.
|
Ok, expected the docs to be updated. Also use it extremely often for very dense labels generated by kubernetes clusters (where there are several layers of labels being added which are mostly the same) |
This comment has been minimized.
This comment has been minimized.
|
You should be using by/without in your aggregations to select exactly which labels you want. drop_common_labels and keep_common are unsafe, as they don't always return the same labels. |
This comment has been minimized.
This comment has been minimized.
|
It's more useful in the cases where I'm zeroing in on the labels I do want, by removing all the ones that don't change and thus cannot be useful in further refining. Not disagreeing it is redundant to other more focused tools, just identifying that it's a regular part of iterative flow of working through large metric sets to refine what I might need to search on, especially in the absence of knowing what the important labels are in an ad-hoc search. |
This comment has been minimized.
This comment has been minimized.
|
That's something that's best done in an exploration tool, it doesn't belong in the core language. If you have lots of labels that are unchanging, it's possible that you have redundant target labels that should be trimmed. |
This comment has been minimized.
This comment has been minimized.
|
We already have bugs tracking 2.0 doc updates, there's nothing to be done here on the Prometheus side. |
brian-brazil
closed this
Oct 23, 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. |
smarterclayton commentedOct 19, 2017
Got an error on query
drop_common_labels(openshift_sdn_pod_setup_errors) > 0on v2.0.0-rc.1. I had just upgraded, but I did force refresh the page (in case something was cached).