Skip to content

Metrics Management


After metric data collection is complete, you can view all reported measurements and their associated metrics, tags, time series count statistics and day-over-day change, data point count, and data storage policy in Metrics Management.

Measurements

A measurement is a collection of metrics of the same type and contains multiple metrics and tags. Each measurement displayed in the system includes the following information:

Metrics

Metrics reflect system operating status (such as CPU usage and page load time) and consist of a metric name (identifier) and a metric value (specific value).

Click a measurement name to view complete metric details (metric name, original metric, field type, unit, and description). The following operations are supported:

  • Filter metrics by keyword in the search bar;
  • Export the metric list as a CSV file;
  • In the Actions column, use one-click metric analysis;
  • Click to expand metric data and edit the metric configuration.
Permissions and Priority
  • Edit permission: Only Standard members and above can perform this operation;
  • Configuration priority: The unit and description customized in Metrics Management take precedence over default collected data. For example, after changing the unit from B to GB, chart queries in scenarios automatically display data in GB.

Tags

Attributes of data point collection objects are identified by tags. These tags are presented as key-value pairs and consist of a tag key and a tag value. A data point can have multiple tags.

Click a measurement name to view the corresponding tag list, including the tag key, tag value count, description, and other information. The following operations are supported:

  • Filter tags by keyword in the search bar;
  • Export the tag list as a CSV file.

Time Series

Time series are dynamically generated from tag combinations and include metrics, tags (fields), and data storage duration. Here, "metric + tags (field combination)" forms the data storage primary key.

In TrueWatch, this page displays the total number of time series for the current measurement and uses metric statistics charts and tag statistics charts to show the number of unique values, number of time series, and day-over-day change for a single metric/tag.

Calculation Logic

Metric/tag statistics charts perform statistical calculations based on the hierarchy of overall metrics → single metric → that metric grouped by tags → specific values of a particular tag → global view of all tags + statistics of the tag itself.

In the statistics charts, the calculation logic for each field is as follows:

Field Description
Unique Value Count The deduplicated count of a tag at the global or single-metric level (that is, how many distinct independent values the tag contains)
Time Series Count The number of time series associated with a single metric or a single tag value
1d The change in the number of time series compared with the previous day
1d% 1d / number of time series yesterday
Total Percentage
  • Metric level: the time series contained in this metric + tag / the total number of time series for this metric;
  • Tag level (single metric): the total number of time series involved by a single metric & a single tag value / the total number of time series involved by a single metric & all tag values;
  • Tag value level: the time series involved by this tag value + this metric / the total number of all time series for this metric value;
  • Tag level (all): the time series involved by this tag value / the total number of all time series for this tag
  • Term Description
    Database A database container that stores data
    Measurement A measurement (similar to a MySQL table)
    Field Metric key-value pair (stores actual values and is not indexed)
    Field Set A collection of multiple Fields
    Field Key The key name of a Field (e.g., cpu_usage)
    Field Value The value of a Field (e.g., 85.3)
    Tag Tag key-value pair (descriptive metadata, indexed)
    Tag Set A collection of multiple Tags
    Tag Key The key name of a Tag (e.g., host)
    Tag Value The value of a Tag (e.g., server-01)
    TimeStamp Data point timestamp (nanosecond precision)
    Retention Policy Data retention period (e.g., 30 days)
    Series Unique time series (combination of Measurement + Tag Set)

    Data Point Count

    In the Data Point Count column of the measurement list, you can view the total number of data points for each measurement within the data storage period, in points. Hover over the tooltip icon next to the column header to view the statistical scope description.

    Statistical Scope

    The data point count is not affected by the time filter in the upper-right corner of the page. When you switch dates, this column still displays the total number of data points within the measurement's storage period.

    Storage Policy

    Storage policies are divided into two levels:

    Modify Policy

    Measurement custom settings take precedence over workspace global settings. That is, after you customize a storage policy for a measurement, modifying the global settings does not affect that measurement.

    Note

    Each policy modification triggers immediate data deletion. Back up important data in advance.

    Notes

    When modifying a measurement storage policy, note the following key rules:

    1. Immediate data deletion: After a policy is modified, the measurement data under the original policy is permanently deleted and cannot be recovered. If the policy is modified again later, the data under the current policy is also deleted;
    2. Independent storage mechanism: After a custom policy is set, measurement data is stored independently. In this case, modifying the global policy duration does not affect measurements that have custom policies;
    3. Restore global policy: When you change back to "Global Default", data is stored in the global database again. After that, modifying the global policy affects the measurement accordingly;
    4. Same duration does not mean the same policy: Even if the custom duration is the same as the global duration, data is still stored independently. Example: When the global duration is 7 days, setting a measurement to 7 days still counts as independent storage.

    Modification Path

    Global Settings

    Go to Manage > Workspace Settings > Risky Operations > Change Data Storage Policy > Metrics, and select the storage duration.

    Measurement Custom Settings

    Go to Metrics > Metrics Management. In the Actions column on the right side of a measurement, click the icon to select a duration. If not set, the global policy is inherited automatically.

    Important Restrictions
    • Permission control: Only the Workspace Owner can configure this;
    • Data risk: Modifying a policy causes data under the original policy to be permanently deleted immediately.
    Special Support for Deployment Plan

    Custom duration: Any integer from 1 to 1,800 days is supported