The PromQL absent function detects when a specified metric disappears from queried data. It returns 1 when the metric is absent and 0 when it is present, covering failures where a deployment is deleted or terminated and the up metric no longer exists. section 11.1.4
Detecting a missing BentoML deployment metric
Use absent(up{job="yatai/bento-deployment", yatai_ai_bento_deployment_component_type=~"api-server|runner"}) == 1 to trigger a MissingUpMetric alert. Pair the expression with a five-minute duration and critical severity so brief metric gaps do not immediately page operators.
