Theory
Theory: Analysis is a Predicate on Metrics Over a Window
AnalysisTemplate defines queries and success/failure conditions. Inline analysis blocks a step; background analysis can abort later.
Invariants
- Prometheus is an oracle, not the rollout controller.
- Failure conditions should be monotonic enough to trust.
- Automatic abort is the point; otherwise it is a dashboard.
step → AnalysisRun → Prom query → success | fail → next | abort
What can break
- Success condition that is true on no data.
How to read this chapter
Templates, conditions, inline vs background.