Chapter 5.5 — Dashboards, alerts and SLOs¶
🎯 Objective¶
Define the minimum dashboards and alerts so that AI operations are seen early, before becoming an incident that shows up in a support ticket.
📊 Minimum dashboards¶
- Quality. Task success by intent/tenant/language; groundedness; regressions detected in eval; human agreement on a sample.
- Cost. Cost per task, per success, per tenant, per agent; tokens per step; retry cost; eval cost.
- Latency. p50/p95/p99 per model, per tool, per retriever; TTFT/TPOT in self-host; end-to-end latency per intent.
- RAG. top-k, precision, recall, citation coverage; indexing lag; median and p95 freshness; no-answer rate; truncation rate.
- Tools. Calls per tool, error rate, timeouts, unauthorized attempts, use of deprecated tools.
- Security. Prompt injection detections; policy violations; DLP triggers; secret scanning hits; cross-tenant attempts.
- Operation. Fallback rate, escalation rate, open incidents, error budget, SLO burn.
🚨 Minimum alerts¶
- A sudden increase in cost per task (>X% in a window).
- p95/p99 above the SLO for a defined window.
- An increase in tool errors.
- An increase in policy violations.
- A drop in groundedness or task success per intent.
- An increase in no-answer rate or fallback.
- A high retry rate.
- Use of a
deprecatedtool. - A cross-tenant access attempt.
- Prompt injection detected by a classifier.
- Schema validation errors rising.
- RAG indexing lag > SLA.
🧠 SLOs in AI¶
Traditional SLOs (availability, latency) still hold, but in AI quality SLOs appear:
- p95 task success > X.
- Median groundedness > Y per critical intent.
- Cost per success ≤ Z for task A.
- p95 citation coverage ≥ W in answers with RAG.
Since quality is hard to measure in real time, quality SLOs live in a moving window over continuous eval, not in an instantaneous production metric.