PromQL query to find metric for which label values are different

11 views
Skip to first unread message

grze...@gmail.com

unread,
Jul 13, 2021, 9:39:01 AM7/13/21
to Prometheus Users
Hi all,

let's say I have metric
  • some_metric{secret="aaa", some="ccc"}
  • other_metric{secret="aaa", some="ccc"}
and I want to have a query which will tell me that for those metrics, for `secret="aaa"` values for `some` label are different.

To give some context, I have some k8s metrics in prom which exposes labels on kubernetes objects, and I want to detect case when labels ("some") for two different object matched by `secret` labels is different.


Any advice will be appreciated,


Regards,


Grzegorz
Reply all
Reply to author
Forward
0 new messages