Introduction
Metrics reflect resource performance data or status. A metric consists of a namespace, dimension, name, and unit. Metrics can be divided into:
- System metrics: basic metrics provided by AOM, such as CPU usage and used CPU cores.
- Custom metrics: user-defined metrics. Custom metrics can be reported using the following methods:
- Method 1: Use AOM APIs. For details, see Adding Monitoring Data and Querying Monitoring Data.
- Method 2: Connect to Prometheus when creating containerized applications on the Cloud Container Engine (CCE) console. For details, see Working with Prometheus for Custom Monitoring.
Metric Namespaces
A namespace is an abstract collection of resources and objects. Metrics in different namespaces are independent of each other so that metrics of different applications will not be aggregated to the same statistics information.
- Namespaces of system metrics are fixed and started with PAAS.. For details, see Table 1.
- Namespaces of custom metrics must be in the XX.XX format. Each namespace must be 3 to 32 characters long, starting with a letter (excluding PAAS., SYS., and SRE.). Only digits, letters, and underscores (_) are allowed.
Metric Dimensions
Metric dimensions indicate the categories of metrics. Each metric has certain features, and a dimension may be considered as a category of such features.
- Dimensions of system metrics are fixed. Different types of metrics have different dimensions. For more details, see the following sections.
- Dimensions of custom metrics must be 1 to 32 characters long, which need to be customized.
Last Article: Metric Overview
Next Article: Network Metrics and Dimensions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.