'How to display all metrics that don't have a specific label

I want to select all metrics that don't have label "container". Is there any possibility to do that with prometheus query?



Solution 1:[1]

In recent versions of Prometheus it's enought to query for something like this:

node_load1{not_existent_label=""}

Solution 2:[2]

You can also try checking if the label is or isn’t equal to the empty string.

metric_name{label_name=""} 

Or, try label data integrity checks form deepchecks

All the best!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jean-François Fabre
Solution 2 CodyMonto89