> For the complete documentation index, see [llms.txt](https://blog.htunnthuthu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101.md). Agents can also search and read this documentation through its [MCP server](https://blog.htunnthuthu.com/~gitbook/mcp).

# AI Observability & Monitoring 101

Monitoring traditional software is about CPU, memory, and error rates. Monitoring AI systems requires an entirely different mental model: model performance can degrade silently as data distributions shift, LLM costs can spiral without warning, and a model that's technically "up" can be producing garbage outputs.

This series shares what I learned after discovering — in production — that an AI system I thought was working well had been silently degrading for weeks.

***

## The Problem

**Goal**: Build the observability layer for AI systems — LLMs, ML models, and pipelines — so you know what they're actually doing and catch problems before users do.

**Stack**

| Layer             | Technology             |
| ----------------- | ---------------------- |
| Instrumentation   | Python + OpenTelemetry |
| Metrics           | Prometheus + Grafana   |
| Tracing           | Jaeger / Tempo         |
| LLM observability | Langfuse / custom      |
| Drift detection   | Evidently AI           |
| Alerting          | Alertmanager           |

***

## Series Structure

| Article                                                                                                                          | Topic                                                   |
| -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [Article 1](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-why-different.md)     | Why AI Monitoring is Different from Software Monitoring |
| [Article 2](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-llm-metrics.md)       | Monitoring LLM Latency, Tokens, and Cost                |
| [Article 3](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-data-drift.md)        | Data Drift and Concept Drift Detection                  |
| [Article 4](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-model-performance.md) | Model Performance Monitoring in Production              |
| [Article 5](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-tracing.md)           | Tracing AI Pipelines with OpenTelemetry                 |
| [Article 6](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-alerting.md)          | Alerting on AI System Failures                          |
| [Article 7](https://blog.htunnthuthu.com/ai-and-machine-learning/ai-observability-101/ai-observability-101-stack.md)             | Building an AI Observability Stack                      |

***

## Prerequisites

* Basic Prometheus / Grafana knowledge (see [Prometheus 101](https://blog.htunnthuthu.com/devops-and-sre/site-reliability-engineering/prometheus-101.md))
* Python 3.12
* Familiarity with LLM APIs (see [LLM API Development 101](https://blog.htunnthuthu.com/ai-and-machine-learning/artificial-intelligence/llm-api-development-101.md))
