This topic describes how to view metrics, discard metrics, and enable discarded metrics.
Usage notes
- 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.
- 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.
Log on to the ARMS console.
In the left-side navigation pane, choose .
Click the name of the Prometheus instance.
- 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.
Parameter Description Metric Name The name of the metric. Job Name The name of the job that collects the metric. Metric Type - Basic Metrics
- Custom Metrics
Proportion The percentage of the data samples on the metric in the total number of data samples. Metric Quantity in 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.
Log on to the ARMS console.
In the left-side navigation pane, choose .
Click the name of the Prometheus instance.
- In the left-side navigation pane, click Service Discovery. On the Metrics tab, discard metrics.
- Discard one custom metric:
- Find the custom metric that you want to discard and click Discard in the Actions column.
- In the message that appears, click OK.
- Discard multiple custom metrics
- In the upper-right corner of the page, click Configure Discarded Metrics.
- In the dialog box that appears, enter the names of the metrics that you want to discard and click OK.
- Discard all custom metrics
- In the lower-left corner of the page, click Discard All.
- In the message that appears, click OK.
- Discard one custom metric:
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.
Log on to the ARMS console.
In the left-side navigation pane, choose .
Click the name of the Prometheus instance.
- In the left-side navigation pane, click Service Discovery. On the Metrics tab, enable the discarded metrics.
- Enable one discarded metric
- Find the discarded metric that you want to enable and click Enable in the Actions column.
- In the message that appears, click OK.
- Enable multiple discarded metrics
- In the upper-right corner of the page, click Manage Discarded Metrics.
- In the dialog box that appears, delete the name of the discarded metrics that you want to enable and click OK.
- Enable one discarded metric