Scenario-based analysis
Analyze your AI Agent's token usage, model performance, and tool calls across scenarios to optimize costs and identify performance issues.
Prerequisites
-
You have activated CloudMonitor 2.0 and created a workspace.
-
You have configured data ingestion for AI Agent observability.
Procedure
Log on to the CloudMonitor 2.0 console, select the target workspace, choose AI Agent Observability in the left-side navigation pane, and click the Scenario-based Analysis tab.
Token usage analysis
Understand token consumption across models, AI applications, and agents to analyze costs and optimize usage.
Filters
Filter analysis data by the following criteria:
|
Filter |
Description |
|
Model |
Select one or more target models to analyze. |
|
AI Application |
Select one or more target AI applications to analyze. |
|
Agent |
Select one or more target agents to analyze. |
Key metrics
The following metrics are displayed at the top of the page, each with day-over-day comparison:
|
Metric |
Description |
|
Total token usage |
The total number of input and output tokens consumed by all requests within the selected time range. |
|
Input token usage |
The number of input (prompt) tokens consumed by all requests within the selected time range. |
|
Output token usage |
The number of output (completion) tokens consumed by all requests within the selected time range. |
|
Cache hit rate |
The percentage of successful cache hits, which reduces token usage and response latency. |
Analysis dashboard
The dashboard visualizes token usage across multiple dimensions:
-
Token usage distribution by model and its trend over time
-
Trend of average token usage per request
-
Top N rankings for token usage by agent, AI application, and model
Hover over a chart to view specific data values, or click the legend to filter the displayed data series.
Model performance analysis
Monitor call quality and response performance of your AI models to quickly identify bottlenecks and anomalies.
Filters
Filter analysis data by the following criteria:
|
Filter |
Description |
|
Model |
Select one or more target models to analyze. |
|
AI Application |
Select one or more target AI applications to analyze. |
|
Agent |
Select one or more target agents to analyze. |
Key metrics
The following metrics are displayed at the top of the page, each with day-over-day comparison:
|
Metric |
Description |
|
Number of calls |
The total number of model calls within the selected time range. |
|
Success rate |
The percentage of successful model calls. |
|
Average latency |
The average time from sending a request to receiving a complete response. |
|
Average TTFT |
Time To First Token (TTFT). The average time from sending a request to receiving the first token. This metric reflects the model's initial response speed. |
|
Average TPOT |
Time Per Output Token (TPOT). The average time to generate each output token. This metric reflects the model's sustained generation speed. |
Analysis dashboard
The dashboard visualizes model performance across multiple dimensions:
-
Model call distribution and its trend over time
-
Error Type Distribution
-
Trends of average latency and average TTFT over time
If you notice a significant drop in the success rate or a sudden spike in errors, use the error type distribution chart to investigate the root cause.
Tool call analysis
Understand how your agent uses external tools, including call frequency, latency, and error rates, to optimize tool configurations and troubleshoot anomalies.
Overview
The following metrics are displayed at the top of the page, each with day-over-day comparison:
|
Metric |
Description |
|
Number of tools |
The total number of unique tools called within the selected time range. |
|
Number of tool calls |
The total number of tool calls within the selected time range. |
|
Average tool call latency |
The average response time across all tool calls. |
|
Number of tool call errors |
The total number of failed tool calls within the selected time range. |
The overview section is expanded by default. You can click to collapse or expand this section.
Analysis dashboard
The dashboard visualizes tool call data across multiple dimensions:
-
Tool call distribution (the percentage of calls for each tool)
-
Tool call analysis table, including performance metrics such as number of requests, number of errors, average latency, P90 latency, and maximum latency
-
Skill load analysis and skill call analysis