Updated on 2023-06-12 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:

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

    PAAS.SLA

    Namespace of SLA 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.