Agent Monitoring¶
Agent Monitoring correlates Agent / LLM requests with the entire application trace, tracks the complete flow of each conversation, and accurately measures the number of Tokens consumed by each generation task.
When using Agent Monitoring, you can:
- View the complete path of a single request: clearly see the entire process from receiving and processing a user question (such as database queries) to calling an LLM model and returning an answer
- Analyze performance bottlenecks: accurately measure the time spent in each stage (such as model calls and data retrieval) to identify latency promptly
- Correlate upstream and downstream services: correlate Agent / LLM requests with related application and infrastructure metrics for comprehensive root cause analysis
Core Capabilities¶
At its core, Agent Monitoring establishes a quantifiable relationship between input (Prompt), output (Completion), and system behavior. Its core capabilities are reflected in three dimensions:
1. End-to-End Tracing
In Agent / LLM invocation frameworks, use Trace and Span to precisely trace the complete request path and identify latency bottlenecks.
Use Prompt Eval and Schema Eval to evaluate model outputs online or in batches, and view scores and rule match results. Prompt Eval supports describing evaluation objectives to generate configurations, and lets you select the context to pass in through custom evaluation input. You can review outputs through manual annotation and add samples to datasets for centralized management.
3. Cost Measurement
Automatically collect and correlate Token consumption (with input/output breakdown), model type, and invocation parameters for each request, and provide cost allocation based on multiple business dimensions.
Get Started¶
Application List¶
Go to the Application List to create and manage monitoring applications. Agent Monitoring includes two integration types: Agent and LLM. The Agent type is divided into Agent Apps and Agent Frameworks. The integration methods for each type are as follows:
- Agent Apps: supports Claude Code, Claude Desktop, CodeBuddy, Codex, Cursor, DCode, DeepSeek Harness, Grok, Hermes, Kiro, MiMo, OMP, OpenClaw, OpenCode, Pi, Qoder, Qwen Work (Desktop), and WorkBuddy. For integration steps, see Create Agent Monitoring Application;
- Agent Frameworks: supports AgentScope, Spring AI Alibaba, and Deep Agents, integrated manually through OpenTelemetry;
- LLM Monitoring Apps: integrated through Langfuse, or integrate LangChain applications through OpenTelemetry. See Create LLM Monitoring Application and its LangChain integration instructions.
After completing the parameter configuration in the on-page guide, you can start collecting data.
On the Overview page, use Display Items to customize which Agent types to display and adjust their display order.
To view usage information for Codex, Claude Code, and WorkBuddy in one place on desktop, or to manage basic collection and enhanced collection through a graphical interface, see AgentMeter Usage Guide. For the usage metrics supported by each Agent, refer to the guide.
Explorer¶
After data is integrated, you can query and analyze Agent data from the User, Session, Trace, or Span perspective in the Explorer:
- User List: aggregates User usage by
user_id, showing Agent type, instance, Session, request volume, Token or credit consumption, and last active time; - Session List: view Session ID, input/output Tokens, number of risk events, and alert severity. Drill down to the details page to view the Trace Waterfall Chart, Model / Skill / Tool call breakdown, call details, and risk events;
- Trace List: view Trace ID, associated Session, duration, Token, status, number of risky operations, and alert severity. Drill down to view Span details, Risky Operations, tool call records, and Skill call records.
- Span List: view execution steps across Traces. Select Root Span to focus on execution entry points, or All Spans to analyze model, tool, and skill calls.
Analysis Dashboard¶
Use the Analysis Dashboard to get a chart-based overview of application health. You can filter the view by application type. The Analysis Dashboard displays different content for different application types:
-
LLM Monitoring Apps: display overview metrics such as request count, Span count, request error rate, total Token consumption, and average response time, as well as a request trend chart, Token consumption trend chart, request share by model, and Token usage ranking by model.
-
Agent Monitoring Apps: display data in four modules: Runtime Overview, Models & Tokens, Tool Module, and Skill Module.
- Runtime Overview: total operations, total Tool, LLM, and Skill calls, total Tokens, and model, Tool, and Skill call distribution
- Models & Tokens: LLM call trends, input/output Token trends, Token trends by model, LLM call duration percentiles, and average time to first Token (TTFT)
- Tool Module: number of active Tools, maximum duration, call trends, average duration, and Top 10 anomalies
- Skill Module: number of active Skills, maximum duration, call trends, average duration, and Top 10 anomalies