To reduce the cost of manually drawing charts in text, OAgent automatically renders time-series data, percentage data, and list data returned by tools into line charts, bar charts, pie charts, and tables, and supports downloading.
When to use
- View the trend of CPU/IO/memory usage over time.
- Compare resource consumption percentages between different tenants or SQL statements.
- Visually confirm metrics such as major compaction progress and session activity distribution.
Prerequisites
- Structured metric data has been obtained through a tool call in the current session.
Presentation format
Data type |
Common Charts |
Applicable analysis purposes |
|---|---|---|
| Time Series Metrics | Line chart | Observe trends and identify jitter time points |
| Discrete contrast | Column Chart | Compare the magnitudes of different objects (tenants, servers, and SQL statements) |
| Proportion Composition | Pie chart | View the distribution of event or SQL execution percentages |
| Detail Data | Table | Verify Original Values and Fields |
Procedure
Initiate a query that generates structured data in the session, for example:
Check the CPU trend of tenant xxx in the last hour. The memory usage percentage of each tenant in this cluster. Show the top 10 SQL statements by DB Time percentage in the last hour.Press Enter to send the query and wait for the Agent to render the chart.
- The Agent automatically selects the most appropriate chart type based on the data characteristics.
- The original data table is retained at the bottom of the chart for easy value verification.
View and download the chart via interaction.
- Hover the mouse to view specific values and dimensions.
- Select Export in the upper-right corner of the chart to save it as a local file.
Note
Charts are rendered based on real data returned by tool calls and are not generated from scratch. If data is missing or empty, a "No data" prompt will be displayed in the chart area.
What to do next
To deliver a complete conclusion with the chart to others, see Export a report.
You can expand the tool call to view the original data corresponding to the chart. See View the tool call process.