Skip to content

Metric Analysis


After data collection and reporting to the workspace, you can query and analyze metrics and other data types on the Metrics > Metric Analysis page.

Query Modes

For more details, refer to Chart Query.

Query results can be viewed in four visualization modes:

Table Chart

The table chart mode supports four displays:

  1. Time Series Mode
  2. Group Mode
  3. Query Tool
  4. Prom: Only returns PromQL query results.

For the first three display modes, the query results return a maximum of 2,000 records by default. To adjust the number of returned records, specify it via the slimit parameter, with a maximum of 10,000 data records returned.

In Time Series Mode, you can display the query data by selecting different time intervals.

The return results of the "Query Tool" are consistent with those in "Shortcut > Query Tool". If you add multiple queries and enable the status, the results of the first query are returned by default; a maximum of 2,000 records can be exported.

The Prom mode supports exporting query results; if a time range is specified in the PromQL query statement, all data within that range is displayed, unaffected by the page time widget.

For more details on data querying, refer to Chart Query and Query Tool.

Query History

Through the "Query History" entry, you can view query data from the past week, including query statements and their corresponding times.

Independent Charts

Note

The independent chart toggle is automatically hidden when there is only one query statement.

When you add multiple queries simultaneously and the units of the query results are inconsistent, you can enable the independent chart mode. As shown below:

  • Before enabling independent charts:

  • After enabling independent charts:

Managing Queries

You can manage the Metric Analysis page through the following operations.

Query Return Quantity Limit

When querying raw data, returning too many data points can easily cause slow loading of charts such as line charts and area charts, affecting the user experience.

In such cases, you can specify that each query returns a certain number (20/50/100/500) of the largest or smallest sorted data series. The system will sort based on the last value of each series within the query time range and return the Top N or Bottom N results. For example, filtering Top 5 from 20 series means returning the 5 series with the largest last value.

Note
  • This setting only applies to area charts, line charts, and bar charts.
  • If slimit is declared in the query statement, the slimit in the query statement takes precedence.

Cross-Workspace Query

You can perform joint queries across multiple workspaces within the current site to obtain a complete metric view of different businesses or projects under the site for comprehensive analysis and comparison.

Analyzing Charts

Click on a specific data point in the chart to view metrics with similar trends, drill down for analysis, or view associated logs, traces, processes, and other data.

For more details, refer to Analyzing Charts.

Data Format

Numerical values in the query results support flexible display format settings, including the number of decimal places:

  • 0/1/2/3 decimal places
  • Full precision

You can also configure whether to display data based on thousand separators and scientific notation.

Units

You can configure units for displaying the query data.

For specific configuration operations, refer to Units.

Legend

The Legend is an auxiliary element of the chart, used to distinguish data through different colors, points, and shapes. You can use the legend button in the upper right corner of the explorer to hide the legend or adjust its position to the bottom or right.

Colors

To better distinguish data trends of different metrics through color, you can click the color settings button in the upper right corner of the explorer to customize the legend colors.

Export

After completing metric analysis and obtaining query results, you can click the export button to perform the following operations:

  • Export to CSV file
  • Export to Note
  • Export to Dashboard
  • Copy to Clipboard

Time Interval

The time interval refers to the length of time between data points in a Time Series Chart. You can use the Time Interval in the upper right corner of the explorer to set the time interval precisely to 10 seconds, 20 seconds, 30 seconds, 1 minute, 5 minutes, or 10 minutes.

The Time Widget affects the data display range in metric analysis, so the available time intervals are automatically adjusted based on the time widget's range. For example, if you choose to view metric data from the last 15 minutes, you cannot select "1 hour" as the time interval.