This topic describes how to view the metrics of Prometheus instances and how to deprecate metrics. In this example, a Prometheus instance that monitors cloud services and a Prometheus instance that monitors a Container Service for Kubernetes (ACK) cluster are used.

View the metrics of a Prometheus instance that monitors cloud services

  1. Log on to the ARMS console .
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. On the Prometheus Monitoring page, select a region in the upper-left corner, and then click the name of the Prometheus instance whose Instance Type is Prometheus Instance for Cloud Services.
  4. In the left-side navigation pane, click Settings.
  5. On the page that appears, click the Metrics tab.
    On the Metrics tab, the metric names, percentages, and numbers of data samples in the last minute are displayed in a table. Cloud service metrics
    • Job Name: the name of the job that collects the metric.
    • Percentage: the ratio of the data samples on the metric to the total number of data samples. Unit: percent.
    • Occurrence in Last One Minute: the number of data samples that are stored in the last minute.

View the metrics of a Prometheus instance that monitors an ACK cluster

The procedure for viewing the metrics of other types of Prometheus instances is different from the procedure for viewing the metrics of a Prometheus instance that monitors cloud services. In this example, a Prometheus instance that monitors an ACK cluster is used.

  1. Log on to the ARMS console .
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. On the Prometheus Monitoring page, select a region in the upper-left corner, and then click the name of the Prometheus instance whose Instance Type is Prometheus for Container Service.
  4. In the left-side navigation pane, click Service Discovery.
  5. On the page that appears, click the Metrics tab.
    On the Metrics tab, the metric names, percentages, and numbers of data samples in the last 10 minutes are displayed in a table.

    You can filter metrics by job name or metric type. You can also enter a keyword in the search column to perform fuzzy match.

    Parameter Description
    Metrics The name of the metric.
    Job Name The name of the job that collects the metric.
    Metric Type
    • Basic metric
    • Custom metric
    Percentage The ratio of the data samples on the metric to the total number of data samples. Unit: percent.
    Last 10 Minutes The number of data samples that are stored in the last 10 minutes.

Deprecate metrics

If you no longer want your Prometheus instance to monitor the data of some custom metrics, you can deprecate these custom metrics to avoid unnecessary costs. You are not charged for deprecated custom metrics.

Note You cannot deprecate metrics for a Prometheus instance that monitors cloud services.
  1. Log on to the ARMS console .
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. In the upper-left corner of the page, select the region where the Prometheus instance resides. Then, click the name of the Prometheus instance.
  4. In the left-side navigation pane, click Service Discovery.
  5. On the page that appears, click the Metrics tab. Perform the following operations to deprecate custom metrics based on your business requirements.
    • To deprecate one custom metric, perform the following steps:
      1. Find the custom metric that you want to deprecate and click Deprecate in the Actions column.
      2. In the Configure Deprecated Metrics message, click OK.
    • To deprecate multiple custom metrics, perform the following steps:
      1. In the upper-right corner of the page, click Configure Deprecated Metrics.
      2. In the Configure Deprecated Metrics dialog box, enter the names of the metrics that you want to deprecate and click OK.
    • Deprecate all custom metrics
      1. In the lower-left corner of the page, click All Discard.
      2. In the message that appears, click OK.
Note For more information about how to deprecate metrics for a self-managed Kubernetes cluster, see Drop Prometheus metrics.