Hello everyone,
I’m currently working with Prometheus and Grafana for monitoring purposes, and I’ve run into a challenge with setting up alerts for the absence of a specific metric. I hope someone here can provide some guidance or insights.
I have a metric called process_resident_memory_bytes
that represents the memory usage of some type, and I want to create an alert that triggers when this metric stops reporting for any organization and cluster. In Grafana, I’ve tried to use the following Prometheus query, but its work just on specific org and cluster
absent(process_resident_memory_bytes{org_id=“some_org_id”, type=“some_type”, cluster_id=“some_cluster_id”}[30m]).
and it indeed returned me 1 when the metric stopped reporting.
But, I would like to create an alert that sends a notification when this metric is absent for any combination of org_id
and cluster_id
not just specefic example of org id and cluster id.
Can anyone please provide guidance on how to properly set up this alert in Grafana using Prometheus queries? Any advice, suggestions, or examples would be greatly appreciated.
Thank you in advance for your help!