Is it possible to have one side of a query limit the results of another 
part of the same query?

For example; I want an alert query for when the count of all instances in a 
clustered service are not equal to what the instance is reporting based on 
a label's value being equal in both sides of the query (in this case; there 
are many nodes that run the same service but are part of different 
clusters:)


*redis_cluster_known_nodes != scalar(count(up{service=~"redis-exporter"}))*

The shared label value would be something like, *group="cluster-a" *and 
should not evaluate metrics where *group="cluster-b"*

Thanks in advance!

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/12403656-6f2a-4383-ae72-8a073ab993c2n%40googlegroups.com.

Reply via email to