If it is just to display you can deal with value as labels just use 

(1,count_values("__values",cool_metic) without(instance)

----- Original Message -----
From: Frozenaa <[email protected]>
To: Prometheus Users <[email protected]>
Sent: Wed, 04 Mar 2020 00:44:33 +0100 (CET)
Subject: Re: [prometheus-users] Get only unique values



среда, 4 марта 2020 г., 2:34:48 UTC+3 пользователь Julien Pivotto написал:

> max without(instance) (cool_metic) + 0*count(topk by(__values) 
> (1,count_values("__values",cool_metic) without(instance)))without(__values) 
>

Oh, thanks, I'll try tomorrow.

I was hoping that there is a simpler solution than described on 
stackoverflow, but this one looks even more complicated) 

-- 
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/e012630c-eb9c-4b1b-95ab-7476b6bf816f%40googlegroups.com.

-- 
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/890913692.44065.1583280234576.JavaMail.zimbra%40inuits.eu.

Reply via email to