Hello,
the problem is that the node has label with many values:

metric{type="one"},
metric{type="two"},
metric{type="three"}

I just need do query against those nodes, who has no
metric{type="two"}



On Tuesday, August 4, 2020 at 10:30:05 AM UTC+3, Seitan wrote:
>
> Hello,
> I'm trying to do a promql query to select only hosts, that don't have 
> specific label on them.
> For example, selecting metrics from hosts who DO have label (type=value) 
> works:
>
> metrics_name * on (hostname) another_metrics{type="value"}
>
> Problem is when i try to do same select against hosts without that label:
>
>
> metrics_name * on (hostname) (absent(another_metrics{type="value"}))
>
> this query gives no results.
> Is there any way to do such query?
> Thank you
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ebf6bff8-ecd8-47de-8b1e-90d47cefd6aao%40googlegroups.com.

Reply via email to