`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.
More on PromQL and recording rules
A PromQL query in the UI returns `Empty query result` for a metric you can see on `/metrics`Beginner`rate(http_requests_total[1m])` returns nothing but `http_requests_total` has dataBeginner`rate()` applied to a gauge shows huge spikesBeginnerBinary operation fails: `many-to-many matching not allowed: matching labels must be unique on one side`Advanced`found duplicate series for the match group {pod="api-1"} on the right hand-side of the operation`IntermediateError ratio query returns no data during quiet hoursIntermediate