Skip to main content

LLM Metrics Glossary

This document is a glossary of the key metrics and concepts used in AI Agent Observability. It contains the definitions and units of indicators commonly used across multiple menus such as the dashboard, token trend, and cost analysis.

LLM Performance Metrics

MetricDescription
LatencyTotal elapsed time from LLM API request to full response completion (ms). Overall user-perceived wait time
TTFTTime To First Token. Time until the first response token arrives after the request (ms). Perceived response start point in streaming environments
TPOTTime Per Output Token. Average time to generate a single output token (ms). Higher values create a choppy response feeling
Output TPSTokens Per Second. Output tokens generated per second. Overall model throughput indicator

Tokens and Cost

MetricDescription
Input TokensTotal input token count in the prompt. Includes Cached Tokens
Output TokensResponse token count generated by the model. Directly affects cost
Cached TokensInput token count retrieved from cache. Subset of Input Tokens. Lower rate than regular input
Cache Hit RateRatio of cached tokens to total input tokens (%). Higher values mean greater cost savings
I/O RatioRatio of output tokens to total tokens (%). Used to identify workload characteristics (input-heavy vs. generation-heavy)

Percentiles

PercentileDescription
p5050% of all data at or below this value. Typical user-perceived performance
p7575% of all data at or below this value. Gap from p50 shows additional latency for upper-tier requests
p9595% of all data at or below this value. Commonly used as SLA threshold
p9999% of all data at or below this value. Slowest 1% performance, used to assess system stability

Quality Evaluation Metrics

MetricDescription
HallucinationHallucination score. Degree of false information or contradiction with context. Lower is better (0.0 ~ 1.0)
Answer RelevanceAnswer relevance score. Whether the question was answered appropriately. Higher is better (0.0 ~ 1.0)
ToxicityToxicity score. Level of hate speech, profanity, violence, or sexual content. Lower is better (0.0 ~ 1.0)
Combined JudgeOverall risk score. max(hallucination, toxicity, 1 − answer_relevance). Maximum risk value among the three metrics. Lower is better (0.0 ~ 1.0)
Prompt InjectionDegree of detected prompt injection attempts. Lower is better (0.0 ~ 1.0)
FactualityFactual accuracy score of the response. Higher is better (0.0 ~ 1.0)
PII LeakDegree of personally identifiable information (PII) exposure
URL ScanRisk level of URLs included in the response
Eval SuccessSuccess of the evaluation itself (1 = normal, 0 = judge call/parsing failure)

Tag-Based Filters

All data in AI Agent Observability can be filtered or grouped by the following tags.

TagDescriptionExample
AgentLLM agent (application instance)llm-app-01, llm-app-02
ModelLLM model usedgpt-4o, claude-sonnet-4-20250514
ProviderLLM API providerapi.openai.com, api.anthropic.com
OperationUser-defined call unit label (chain/prompt/agent name, etc.). Defaults to default if not set. Configured via prompt_metacheckout_chain, rag_query, default
Prompt VersionVersion of the prompt/chainv1, v2, v3