Updated on 2024-08-05 GMT+08:00

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" in the Application Operations Management (AOM) API Reference.
    • Method 2: When creating containerized applications on CCE, interconnect with Prometheus to report custom metrics. For details, see "Custom Monitoring" in Cloud Container Engine (CCE) User Guide.

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.
    Table 1 Namespaces of system metrics

    Namespace

    Description

    PAAS.AGGR

    Namespace of cluster metrics

    PAAS.NODE

    Namespace of host, network, disk, and file system metrics

    PAAS.CONTAINER

    Namespace of component, instance, process, and container metrics

  • 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.