I want to select all metrics that don't have label "container". Is there any possibility to do that with prometheus query?
Try this:
{__name__=~".+",container=""}
There needs to be at least one non-empty matcher (hence the +
in the __name__
regular expression, *
wouldn't cut it). And the way you query for a missing label is by checking for equality with the empty string.