This topic describes how to view the metrics of Prometheus instances and how to discard 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 10 minutes are displayed in a table.
    • 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.
    • Last 10 Minutes: the number of data samples that are stored in the last 10 minutes.

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

    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.

Discard metrics

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

Note You cannot discard 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 discard custom metrics based on your business requirements.
    • To discard one custom metric, perform the following steps:
      1. Find the custom metric that you want to discard and click Discard in the Actions column.
      2. In the Configure Discarded Metrics message, click OK.
    • To discard multiple custom metrics, perform the following steps:
      1. In the upper-right corner of the page, click Configure Discarded Metrics.
      2. In the Configure Discarded Metrics dialog box, enter the names of the metrics that you want to discard and click OK.
    • Discard all custom metrics
      1. In the lower-left corner of the page, click Discard All.
      2. In the message that appears, click OK.
Note For more information about how to discard metrics for a self-managed Kubernetes cluster, see Drop Prometheus metrics.