Skip to content

LLM Observability Metrics

Definition

LLM Observability Metrics is a measurement system that allows for the real-time tracking of the state of LLM applications. Unlike traditional software metrics, they include quality-of-generation, token, latency, and cost metrics specific to working with language models.

Key Metric Groups

Group Example Metrics
Performance TTFT, TPS, latency percentiles
Quality Faithfulness, relevance, hallucination rate
Cost Cost per request, token usage
Reliability Error rate, timeout rate, retry rate
Security Prompt injection attempts, PII leakage

Collection Tools

  • Tracing platforms: Langfuse, LangSmith, Helicone.
  • Real-time logging and metrics collection.
  • Dashboards for trend visualization.
  • Alerts when threshold values are exceeded.

See Also