All Products
Search
Document Center

Application Real-Time Monitoring Service:Configure metrics

Last Updated:May 29, 2024

This topic describes how to view metrics, discard metrics, and enable discarded metrics.

Usage notes

  1. In this topic, the metrics of a Prometheus instance for Container Service are viewed and discarded. Then, the discarded metrics of the Prometheus instance are enabled. You can configure metrics for other Prometheus instances in the same way.
  2. You cannot view the metrics of a global aggregation instance.

View metrics

In this section, the metrics of a Prometheus instance for Container Service are viewed.

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Managed Service for Prometheus > Instances.

  3. Click the name of the Prometheus instance.

  4. In the left-side navigation pane, click Service Discovery. On the Metrics tab, you can view the metric names, percentages, and numbers of data samples in the last 10 minutes.
    You can query metrics by job name or metric type. You can also enter a keyword in the search column to perform fuzzy matching.
    ParameterDescription
    Metric NameThe name of the metric.
    Job NameThe name of the job that collects the metric.
    Metric Type
    • Basic Metrics
    • Custom Metrics
    ProportionThe percentage of the data samples on the metric in the total number of data samples.
    Metric Quantity in Last 10 MinutesThe 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 the metrics of a global aggregation instance or a Prometheus instance for cloud services on the Service Discovery page.
  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Managed Service for Prometheus > Instances.

  3. Click the name of the Prometheus instance.

  4. In the left-side navigation pane, click Service Discovery. On the Metrics tab, discard metrics.
    • Discard one custom metric:
      1. Find the custom metric that you want to discard and click Discard in the Actions column.
      2. In the message that appears, click OK.
    • Discard multiple custom metrics
      1. In the upper-right corner of the page, click Configure Discarded Metrics.
      2. In the dialog box that appears, 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.

Enable discarded metrics

If you want to use a Prometheus instance to monitor discarded metrics, you can enable these discarded metrics. You are charged for the enabled metrics.

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Managed Service for Prometheus > Instances.

  3. Click the name of the Prometheus instance.

  4. In the left-side navigation pane, click Service Discovery. On the Metrics tab, enable the discarded metrics.
    • Enable one discarded metric
      1. Find the discarded metric that you want to enable and click Enable in the Actions column.
      2. In the message that appears, click OK.
    • Enable multiple discarded metrics
      1. In the upper-right corner of the page, click Manage Discarded Metrics.
      2. In the dialog box that appears, delete the name of the discarded metrics that you want to enable and click OK.