TL;DR
Your APM tool says everything is green. Your AI system is hallucinating answers to production users. Traditional monitoring watches the plumbing — CPU, memory, HTTP status codes — but it’s completely blind to the failure modes that define AI systems: model drift, retrieval quality degradation, hallucination rates, and token cost runaway. You need a purpose-built observability stack that monitors what actually matters. Here’s the architecture, the metrics, the tools, and the organizational model to make it work.
Your Monitoring Is Lying to You
Last year, we audited a production RAG system for a financial services client. Their Datadog dashboards were pristine. Latency was under 200ms. Error rate hovered at 0.1%. Uptime: 99.97%. The infrastructure team was proud. The product team was panicking.
Customer satisfaction had dropped 15% over six weeks. Support tickets about “wrong answers” had tripled. The AI-powered research assistant was confidently generating plausible-sounding analysis backed by documents that were no longer in the retrieval index — a reindexing job had silently failed three weeks prior, and the system was filling gaps with hallucinated context.
The APM dashboard never flinched. HTTP 200. Response time normal. Zero errors.
This is the fundamental problem with applying traditional observability to AI systems. Your monitoring infrastructure was designed for a world where “the service responded” meant “the service worked.” In AI, the service can respond perfectly — fast, no errors, beautiful JSON — while producing output that is confidently, catastrophically wrong, which is exactly the gap covered in our AI observability and safety playbook.
“A 200 OK from an AI endpoint tells you the plumbing works. It tells you nothing about whether the answer is right.”
The Gap: What Traditional APM Measures vs. What AI Systems Need
Traditional APM was built for request-response software where correctness is binary. The database query either returns the right rows or it throws an error. The payment either processes or it fails. You monitor latency, throughput, error rate, and saturation — the RED/USE signals — and you have a reasonably complete picture.
AI systems break this model in four fundamental ways:
- Correctness is probabilistic. There is no schema validation for “this answer is accurate.” A model can return syntactically perfect JSON containing complete fabrications.
- Failure is gradual. Models don’t crash. They drift. Quality degrades over weeks as input distributions shift, and no circuit breaker trips because the system never technically “fails.”
- Cost is per-token, not per-request. A single verbose response can cost 50x more than a concise one. Traditional request-based billing models don’t capture this.
- The data layer is a moving target. In a RAG system, the quality of your answers depends on the quality of your retrieval index, which depends on your embedding model, your chunking strategy, and whether your ingestion pipeline ran successfully last night.
| Dimension | Traditional APM | AI Observability |
|---|---|---|
| Correctness signal | HTTP status code, error rate | Hallucination rate, grounding score, relevance |
| Performance | Latency (p50/p95/p99) | Inference latency + retrieval latency + total pipeline latency |
| Cost | Requests per second, compute utilization | Tokens per request, cost per query, cost per model |
| Degradation pattern | Sudden (crash, timeout, 5xx spike) | Gradual (drift over days/weeks) |
| Data dependency | Schema validation, connection health | Index freshness, embedding quality, retrieval recall |
| Root cause | Stack trace, log correlation | Prompt regression, data drift, retrieval failure, model version change |
If you’re running AI systems with only traditional APM, you’re monitoring the car’s dashboard while ignoring that the GPS is sending you off a cliff; this has been true since the role of observability in modern DevOps became clear long before LLMs.
The AI Observability Stack: Four Layers
After instrumenting dozens of production AI systems across financial services, healthcare, and retail, we’ve converged on a four-layer observability architecture. Each layer answers a different question, and you need all four.
graph TB
subgraph "Layer 4: Business Outcomes"
B1[Task Completion Rate]
B2[User Satisfaction / CSAT]
B3[Escalation Rate]
B4[Revenue Impact]
end
subgraph "Layer 3: Model Quality"
M1[Hallucination Rate]
M2[Grounding Score]
M3[Drift Detection]
M4[Evaluation Benchmarks]
end
subgraph "Layer 2: AI Pipeline"
P1[Retrieval Relevance]
P2[Token Usage / Cost]
P3[Prompt Version Tracking]
P4[Index Freshness]
end
subgraph "Layer 1: Infrastructure"
I1[Compute / GPU Utilization]
I2[Latency Percentiles]
I3[Error Rate / Availability]
I4[Queue Depth / Throughput]
end
B1 --> M1
B2 --> M2
B3 --> M3
M1 --> P1
M2 --> P2
M3 --> P3
M4 --> P4
P1 --> I1
P2 --> I2
P3 --> I3
P4 --> I4
Layer 1: Infrastructure (What You Already Have)
This is your existing APM. Keep it. GPU utilization, memory pressure, network I/O, container health — the standard SRE signals. This layer tells you if the system is running. It doesn’t tell you if it’s working.
Don’t over-invest here for AI specifically. Your existing Datadog, Prometheus, or Grafana stack handles this layer fine. The only AI-specific additions are GPU utilization metrics (if you’re self-hosting) and queue depth for async inference pipelines.
Layer 2: AI Pipeline (Where Most Teams Stop Too Early)
This is the first AI-specific layer, and it’s where you get the most immediate value. Track:
- Token usage per request — broken down by prompt tokens, completion tokens, and cached tokens. This is your unit economics dashboard. A 3x spike in average tokens per request means either your prompts got verbose or your model started rambling. Both cost money.
- Retrieval metrics — for RAG systems, track retrieval latency, the number of chunks retrieved, similarity scores between the query and retrieved context, and index freshness (time since last successful ingestion). When retrieval quality drops, hallucination rates spike — and this is the causal link your APM can’t see.
- Prompt version tracking — treat prompts like code. Version them, deploy them through a pipeline, and track which prompt version is active for each request. When someone edits a system prompt and quality drops, you need to correlate the change to the regression.
- Cost per query by model — if you’re using model routing to optimize costs, track cost at the individual query level. Alert when average cost per query exceeds your target. We’ve seen cases where a routing misconfiguration sent all traffic to GPT-4o instead of GPT-4o mini for a weekend — a $15,000 mistake that nobody caught until the monthly bill arrived.
Layer 3: Model Quality (The Layer That Separates Amateurs from Professionals)
This is the layer traditional APM has zero concept of. It answers: “Is the model producing good output?”
- Hallucination rate — the percentage of responses that contain claims not grounded in the provided context or source data. For RAG systems, this means comparing the response against the retrieved documents. For LLM applications without retrieval, this requires either human evaluation sampling or automated evaluation using a judge model.
- Grounding score — how well the response aligns with the source material. This is a continuous metric (0-1) rather than a binary “hallucinated or not.” Track it as a time series and alert on downward trends.
- Drift detection — monitor input distribution changes (new topics, languages, or query patterns appearing), output distribution changes (shifts in response length, sentiment, or refusal rate), and quality score regression against your golden evaluation dataset.
- Automated evaluation benchmarks — run daily or weekly evaluation suites against curated test sets. This is the AI equivalent of integration tests. If your eval score drops below threshold, you have a regression — even if production metrics look fine.
“If you’re not running automated evaluations against golden datasets at least weekly, you’re hoping your model is still good. Hope is not an observability strategy.”
Layer 4: Business Outcomes (What Your CFO Actually Cares About)
The top layer connects AI performance to business results:
- Task completion rate — what percentage of AI-assisted tasks complete successfully without human intervention?
- Escalation rate — how often do users override, edit, or reject the AI output?
- User satisfaction — CSAT scores, NPS, or thumbs-up/down feedback correlated to AI interactions.
- Cost per successful outcome — the true unit economics. If your AI costs $0.50 per query but only 60% of queries produce useful results, your effective cost is $0.83 per useful outcome. Track this, not raw query cost.
This layer is where you justify the AI investment to the business. Without it, you’re arguing about model benchmarks in a language the board doesn’t speak.
Practical Implementation: What to Instrument First
You can’t instrument everything on day one. Here’s the priority order we use with clients, designed to deliver value within two weeks.
Week 1: The Essentials
-
Trace propagation — extend your existing OTel traces through the AI pipeline. Every inference call should be a span with: model name/version, prompt hash (not the full prompt — privacy matters), token counts, latency, and cost. If you’re using a RAG pipeline, the retrieval step is a separate span with similarity scores and chunk count.
-
Cost tracking — instrument token usage by model and by use case. Build a daily cost dashboard that breaks down spend by: model, use case/feature, team or tenant, and prompt version. Alert at 2x daily average.
-
Basic quality signal — add a feedback mechanism. Even a simple thumbs-up/down on AI responses gives you a quality signal you didn’t have before. Track the ratio over time.
Week 2: The Differentiators
-
Golden dataset evaluation — curate 50-100 representative queries with expected responses. Run your pipeline against this dataset daily. Track scores over time. Alert on regression.
-
Index freshness monitoring — for RAG systems, track the timestamp of the last successful ingestion and the document count. Alert when freshness exceeds your SLO (e.g., “index must be updated within 4 hours”).
-
Retrieval quality metrics — log the top-k similarity scores for every retrieval. When the average similarity score drops, your retrieval quality is degrading — either the queries changed or the index did.
Week 3+: Continuous Improvement
- Automated drift detection — statistical tests on input/output distributions, compared against a baseline window.
- Cost anomaly detection — ML-based anomaly detection on token usage patterns to catch routing misconfigurations and model regressions that inflate costs.
- A/B evaluation framework — compare prompt versions, model versions, or retrieval strategies head-to-head using production traffic.
SLOs for AI Systems: Setting Thresholds That Matter
Traditional SLOs focus on availability and latency. AI systems need SLOs across all four observability layers. Here’s a practical starting point:
| SLO Category | Metric | Example Target | Alerting Threshold |
|---|---|---|---|
| Availability | Inference endpoint uptime | 99.9% | < 99.5% over 1 hour |
| Latency | P95 end-to-end response time | < 2 seconds | P95 > 3 seconds for 15 min |
| Cost | Average cost per query | < $0.05 | > $0.10 for 1 hour |
| Quality | Grounding score (weekly eval) | > 0.85 | < 0.80 on weekly eval |
| Freshness | Index age (RAG systems) | < 4 hours | > 8 hours |
| Relevance | Mean retrieval similarity | > 0.75 | < 0.65 for 30 min |
| User satisfaction | Positive feedback rate | > 80% | < 70% over 1 day |
The key insight is that AI SLOs are multi-dimensional. You can have perfect availability and latency while quality is in free fall. A single “green” dashboard gives you false confidence. You need a composite health score that factors in all four layers, and the composite should turn yellow when any single dimension degrades — not just when infrastructure breaks.
“An SLO that only measures uptime for an AI system is like a restaurant health score that only checks if the door is open.”
The Tool Landscape: An Honest Assessment
The AI observability market is fragmented and immature. No single tool covers all four layers well. Here’s what we’ve actually used in production, with candid assessments.
Open-Source Foundation
- OpenTelemetry — the non-negotiable starting point. Instrument your AI pipeline with OTel traces and custom metrics. This gives you vendor-agnostic telemetry you can route to any backend. If you’re already running OTel for your traditional services, extending it to AI workloads is a natural move.
- Prometheus + Grafana — for custom AI metrics (token usage, quality scores, cost tracking). You probably already have these. Add AI-specific dashboards and alert rules.
Commercial AI Observability Platforms
- Arize AI — strongest on drift detection and model monitoring. Good production debugging workflows. Weaker on the LLM-specific features compared to LangSmith.
- LangSmith (LangChain) — excellent for LLM trace visualization and prompt debugging. Tightly coupled to the LangChain ecosystem, which is a benefit if you use LangChain and a limitation if you don’t.
- Weights & Biases — originated in experiment tracking but has expanded into production monitoring. Strong evaluation and comparison workflows. Less mature on real-time production alerting.
- Helicone — lightweight LLM proxy that captures all API calls with zero code changes. Good for cost tracking and basic usage analytics. Limited on quality and drift monitoring.
The Honest Take
None of these platforms are mature enough to be your only AI observability tool. The category is two years old. Build your instrumentation layer on open standards (OpenTelemetry, custom metrics), pipe data into your existing observability backend for infrastructure signals, and use a specialized AI platform for model-specific monitoring. If you’re running fewer than five models in production, you can get 80% of the value from custom Grafana dashboards and a weekly eval script. Don’t buy a $50,000/year platform to solve a problem that a cron job and a Jupyter notebook can handle.
Building an AI Operations Culture: Who Owns What
The hardest part of AI observability isn’t the tooling. It’s the org chart.
In traditional software, SRE owns observability. Full stop. In AI systems, the failure modes span three distinct skill sets: infrastructure, ML, and product. If you assign AI observability to one team, the other two will be blind.
The Ownership Model That Works
graph LR
subgraph "Platform / SRE Team"
S1[Infrastructure Health]
S2[Pipeline Availability]
S3[Cost Monitoring]
S4[Incident Response]
end
subgraph "ML / AI Team"
A1[Model Quality Metrics]
A2[Drift Detection]
A3[Evaluation Pipelines]
A4[Prompt Management]
end
subgraph "Product Team"
P1[User Feedback Signals]
P2[Task Completion Tracking]
P3[Business Outcome SLOs]
P4[Feature Prioritization]
end
S1 --- A1
S2 --- A2
S3 --- A3
A1 --- P1
A2 --- P2
A3 --- P3
Platform/SRE owns Layers 1-2 (infrastructure and pipeline health). They’re responsible for compute, networking, queue management, cost alerting, and incident response for infrastructure failures.
ML/AI Team owns Layer 3 (model quality). They’re responsible for evaluation pipelines, drift detection, prompt version management, and model performance regression. They define the quality SLOs and build the automated evaluation suites.
Product Team owns Layer 4 (business outcomes). They’re responsible for user feedback collection, task completion tracking, and connecting AI performance to business metrics. They define what “success” looks like in user terms.
The shared artifact is the dashboard. All three teams contribute metrics to a single AI health dashboard. The weekly review meeting includes one representative from each team. When quality drops, you need all three perspectives to diagnose whether it’s an infrastructure issue (data pipeline failed), a model issue (drift), or a product issue (users are asking questions outside the system’s scope).
This model scales. We’ve seen it work at organizations running a single RAG chatbot and at a major financial institution running 20+ AI models across multiple business lines. The layer boundaries stay the same — only the number of dashboards and the size of the on-call rotation changes.
The Anti-Pattern: The AI Center of Excellence That Monitors Nothing
The worst pattern we see is the “AI Center of Excellence” that builds models but has no production monitoring ownership. They throw models over the wall to the platform team, who doesn’t understand model quality, and the product team, who doesn’t understand why answers are getting worse. Nobody owns the full stack. Incidents become blame games. Quality degrades silently.
If your AI team doesn’t have an on-call rotation for model quality — not infrastructure, model quality — you don’t have AI operations. You have AI experiments running in production.
Connecting the Dots: When Things Go Wrong
Here’s a real-world debugging flow that illustrates why you need all four layers.
The symptom (Layer 4): Product team notices task completion rate dropped from 82% to 71% over five days. User feedback scores are declining.
Layer 3 investigation: ML team checks evaluation benchmarks. Weekly eval scores are stable. Hallucination rate hasn’t changed. But grounding scores for one specific document category have dropped 20%.
Layer 2 investigation: Pipeline metrics show that the retrieval similarity scores for that category dropped significantly. Index freshness looks normal — the ingestion pipeline ran on schedule.
Layer 1 investigation: Infrastructure logs reveal that the latest ingestion run processed 30% fewer documents than usual. A schema change in the upstream data source caused the parser to silently skip documents without errors. No HTTP errors. No crashed pods. Just missing data.
Root cause: Upstream schema change → silent parsing failures → incomplete index → poor retrieval → degraded grounding → lower task completion.
Time to root cause with all four layers: 45 minutes. Time to root cause with traditional APM only: Unknown. The APM dashboard showed green the entire time.
This is why AI observability is not optional. It’s not a nice-to-have for mature teams. It’s the minimum requirement for operating AI systems responsibly.
The Bottom Line
Traditional APM monitors whether your car starts. AI observability monitors whether it’s driving to the right destination. You need both.
The playbook:
- Start with OpenTelemetry. Extend your existing traces through the AI pipeline. Custom spans for inference, retrieval, and evaluation; if you need a refresher on fundamentals, revisit observability with OpenTelemetry metrics, logs, and traces.
- Instrument cost first. Token tracking pays for itself immediately. One caught cost anomaly justifies the entire investment.
- Build a golden dataset. Fifty curated test cases run daily. This is your regression safety net.
- Define multi-dimensional SLOs. Availability + latency + quality + freshness + cost. A single green metric is meaningless.
- Assign ownership across three teams. Platform, ML, and Product each own a layer. Shared dashboard. Weekly review.
- Don’t over-buy tooling. Build on open standards. The category is immature. You can always add a commercial platform later when your needs outgrow custom dashboards, especially if you’re evaluating the managed vs DIY observability tradeoffs in cost, retention, and signal quality.
For edge and on-device deployments, fold in edge AI on Kubernetes model serving acceleration and observability patterns early so your telemetry model scales beyond the datacenter.
Your Datadog bill covers the infrastructure. Your AI observability stack covers everything else — the quality, the cost, the drift, and the business outcomes. Without it, you’re flying an AI system on instruments that were built for a different aircraft.
“The companies that succeed with AI in production won’t be the ones with the best models. They’ll be the ones who know, at any given moment, whether their models are still working.”