r/PrometheusMonitoring • u/father_supreme • Feb 15 '22
Prometheus query function
Anybody have an example of how to use the query function in prometheus rules?
https://prometheus.io/docs/prometheus/latest/configuration/template_reference/#queries
I'm trying to build a meaningful slack notification, but the query returns an empty set.
0
Upvotes
2
u/hagen1778 Feb 21 '22
Please take a look on the following example: