Updated on 2024-10-30 GMT+08:00

Configuring Metrics

You can check the metrics of a default/common Prometheus instance, or a Prometheus instance for CCE/ECS/cloud services, and add or discard metrics.

Prerequisites

Precautions

  • Only the default/common Prometheus instance, and Prometheus instance for CCE/ECS/cloud services support the functions of checking, adding, and discarding metrics.
  • Default Prometheus instance: Metrics whose names start with aom_ or apm_ and resource type is ICAgent cannot be discarded.
  • Prometheus instances for ECS: Only metrics collected by UniAgent can be displayed and configured.
  • Prometheus instances for CCE:
    Only the metrics reported by kube-prometheus-stack 3.9.0 or later installed on CCE Add-ons or AOM Integration Center can be discarded. Ensure that this add-on is running when discarding metrics.

    To view the kube-prometheus-stack status, log in to the CCE console and access the cluster page, choose Add-ons in the navigation pane, and locate that add-on on the right.

Checking the Metrics of a Prometheus Instance for CCE

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  3. In the instance list, click a Prometheus instance for CCE.
  4. In the navigation pane on the left, choose Metric Management. On the Metrics tab page, check the metric names and types of the current Prometheus instance.

    You can also filter metrics by cluster name, job name, or metric type, or enter a metric name keyword to search.

    Table 1 Metric parameters

    Parameter

    Description

    Metric Name

    Name of a metric.

    Metric Type

    Type of a metric. Options: Basic metric and Custom metric.

    Metrics in Last 10 Min

    Number of metrics that are stored in the last 10 minutes.

    Proportion

    Number of a certain type of metrics/Total number of metrics

Checking the Metrics of a Prometheus Instance for Cloud Services

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  3. In the instance list, click a Prometheus instance for cloud services.
  4. In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.

    You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
    Table 2 Metric parameters

    Parameter

    Description

    Metric Name

    Name of a metric.

    Metric Type

    Type of a metric. Options: Basic metric and Custom metric.

    Resource Type

    Type of a resource, which is the cloud service that is connected.

Checking the Metrics of a Prometheus Instance for ECS

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  3. In the instance list, click a Prometheus instance for ECS.
  4. In the navigation pane on the left, choose Metric Management and select a desired plug-in type and collection task. Then you can check all metric names and types of the Prometheus instance.

    You can also specify a metric type to filter metrics, or enter a metric name keyword to search.

    Table 3 Metric parameters

    Parameter

    Description

    Metric Name

    Name of a metric.

    Metric Type

    Type of a metric. Options: Basic metric and Custom metric.

    Metrics in Last 10 Min

    Number of metrics that are stored in the last 10 minutes.

    Proportion

    Number of a certain type of metrics/Total number of metrics

Checking the Metrics of a Default Prometheus Instance

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  3. In the instance list, click a default Prometheus instance.
  4. In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.

    You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
    Table 4 Metric parameters

    Parameter

    Description

    Metric Name

    Name of a metric.

    Metric Type

    Type of a metric. Options: Basic metric and Custom metric.

    Resource Type

    Type of a resource.

    Metrics in Last 10 Min

    Number of metrics that are stored in the last 10 minutes.

    Proportion

    Number of a certain type of metrics/Total number of metrics

Checking the Metrics of a Common Prometheus Instance

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  3. In the instance list, click a common Prometheus instance.
  4. In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.

    You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
    Table 5 Metric parameters

    Parameter

    Description

    Metric Name

    Name of a metric.

    Metric Type

    Type of a metric. Options: Basic metric and Custom metric.

    Resource Type

    Type of a resource.

    Metrics in Last 10 Min

    Number of metrics that are stored in the last 10 minutes.

    Proportion

    Number of a certain type of metrics/Total number of metrics

More Operations

You can also perform the operations listed in Table 6 if needed.

Table 6 Related operations

Operation

Description

Sorting metrics

Click next to the Metrics in Last 10 Min or Proportion column to change the orders of metrics in the list. indicates the default order. indicates the ascending order (that is, the largest value is displayed at the bottom). indicates the descending order (that is, the smallest value is displayed at the bottom).

Adding metrics

Click Add Metric, select desired metrics from the metric list, and click OK.

NOTE:

A maximum of 100 metrics can be added each time.

Discarding metrics

  • To discard a metric, locate it and click in the Operation column.
  • To discard one or more metrics, select them and click Discard in the displayed dialog box.
    NOTE:

    A maximum of 100 metrics can be discarded each time.