Interview Prep/Monitoring & Observability/PromQL and recording rules

`absent(up{job="payments"})` alert never fires even though the job is gone

IntermediateTroubleshootingPromQL and recording rules
Answer

Likely causes → Another series still matches (e.g. a second Prometheus federates it, or a stale instance still returns up=0 which is not "absent").

Diagnose → Run up{job="payments"} and check what is returned.

Fix → Alert on both conditions:

absent(up{job="payments"} == 1)

This fires when no healthy target exists.

Prevent → Pair up == 0 alerts with absent-style alerts for critical jobs.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on PromQL and recording rules