Managing Prometheus Instance Metrics
You can check the metrics of a common Prometheus instance, or a Prometheus instance for CCE/APM, and add/discard metrics.
Prerequisites
Your service has been connected for Prometheus monitoring. For details, see Managing Prometheus Instances.
Constraints
- Only the common Prometheus instance, and Prometheus instance for CCE/APM support the functions of checking/adding/discarding metrics.
- On the Metric Management page, you can query only the metrics reported in the last three hours.
- Prometheus instances for CCE:
Only the metrics reported by kube-prometheus-stack (later than 3.9.0) installed on CCE Add-ons or AOM Prometheus instance for CCE 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.
Viewing Prometheus Instance Metrics
Only the common Prometheus instance, and Prometheus instance for CCE/APM support the functions of checking metrics.
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Prometheus Monitoring > Instances.
- In the instance list, click a desired Prometheus instance. The instance details page is displayed.
- In the navigation pane, choose Metric Management. You can view the metric namesnumber of metrics in the last 10 minutes of all metrics of the current Prometheus instance.
- Prometheus instance for CCE: You can filter metrics by cluster name, job name, or metric type, or enter a metric name keyword for fuzzy search.
- Common Prometheus instance: You can filter metrics by metric type, or enter a metric name keyword for fuzzy search.
- Prometheus instance for APM: You can filter metrics by environment or metric type, or enter a metric name keyword for fuzzy search.
Table 1 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metrics in Last 10 Min
Number of metrics that are stored in the last 10 minutes.
This parameter is not supported for Prometheus instances for cloud services.
Proportion
Number of a certain type of metrics/Total number of metrics
This parameter is not supported for Prometheus instances for cloud services.
Discarding Prometheus Instance Metrics
If Prometheus instance metrics do not need to be reported, discard them.
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Prometheus Monitoring > Instances.
- In the instance list, click a desired Prometheus instance. The Metric Management page is displayed.
- Perform the following operations to discard metrics:
- To discard a metric, locate it and click Delete in the Operation column.
- To discard one or more metrics, select the desired metrics and click Delete above the list. In the dialog box that is displayed, click OK.
Adding Prometheus Instance Metrics
If you want to restore metrics after discarding them, add them again.
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Prometheus Monitoring > Instances.
- In the instance list, click a desired Prometheus instance. The Metric Management page is displayed.
- Click Add Metric. In the displayed dialog box, select one or more metrics to restore and click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot