Configuring Metrics
You can check the metrics of a default/common Prometheus instance, or a Prometheus instance for CCE/ECS/cloud services, and add or discard metrics.
Prerequisites
- Both your service and CCE cluster have been connected to a Prometheus instance for CCE. For details, see Prometheus Instance for CCE.
- Both your service and cloud services have been connected to a Prometheus instance for cloud services. For details, see Prometheus Instance for Cloud Services.
- Both your service and plug-in have been connected to a Prometheus instance for ECS. For details, see Prometheus Instance for ECS.
- Your service has been connected to a common Prometheus instance. For details, see Common Prometheus Instance.
Precautions
- Only the default/common Prometheus instance, and Prometheus instance for CCE/ECS/cloud services support the functions of checking, adding, and discarding metrics.
- Default Prometheus instance: Metrics whose names start with aom_ or apm_ and resource type is ICAgent cannot be discarded.
- Prometheus instances for ECS: Only metrics collected by UniAgent can be displayed and configured.
- Prometheus instances for CCE:
Only the metrics reported by kube-prometheus-stack 3.9.0 or later installed on CCE Add-ons or AOM 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.
Checking the Metrics of a Prometheus Instance for CCE
- 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 Prometheus instance for CCE.
- In the navigation pane on the left, choose Metric Management. On the Metrics tab page, check the metric names and types of the current Prometheus instance.
You can also filter metrics by cluster name, job name, or metric type, or enter a metric name keyword to search.
Table 1 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metric Type
Type of a metric. Options: Basic metric and Custom metric.
Metrics in Last 10 Min
Number of metrics that are stored in the last 10 minutes.
Proportion
Number of a certain type of metrics/Total number of metrics
Checking the Metrics of a Prometheus Instance for Cloud Services
- 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 Prometheus instance for cloud services.
- In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.
You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
Table 2 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metric Type
Type of a metric. Options: Basic metric and Custom metric.
Resource Type
Type of a resource, which is the cloud service that is connected.
Checking the Metrics of a Prometheus Instance for ECS
- 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 Prometheus instance for ECS.
- In the navigation pane on the left, choose Metric Management and select a desired plug-in type and collection task. Then you can check all metric names and types of the Prometheus instance.
You can also specify a metric type to filter metrics, or enter a metric name keyword to search.
Table 3 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metric Type
Type of a metric. Options: Basic metric and Custom metric.
Metrics in Last 10 Min
Number of metrics that are stored in the last 10 minutes.
Proportion
Number of a certain type of metrics/Total number of metrics
Checking the Metrics of a Default Prometheus Instance
- 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 default Prometheus instance.
- In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.
You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
Table 4 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metric Type
Type of a metric. Options: Basic metric and Custom metric.
Resource Type
Type of a resource.
Metrics in Last 10 Min
Number of metrics that are stored in the last 10 minutes.
Proportion
Number of a certain type of metrics/Total number of metrics
Checking the Metrics of a Common Prometheus Instance
- 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 common Prometheus instance.
- In the navigation pane on the left, choose Metric Management. Then check the metric names and types of the current Prometheus instance.
You can also filter metrics by metric or resource type, or enter a metric name keyword to search.
Table 5 Metric parameters Parameter
Description
Metric Name
Name of a metric.
Metric Type
Type of a metric. Options: Basic metric and Custom metric.
Resource Type
Type of a resource.
Metrics in Last 10 Min
Number of metrics that are stored in the last 10 minutes.
Proportion
Number of a certain type of metrics/Total number of metrics
More Operations
You can also perform the operations listed in Table 6 if needed.
Operation |
Description |
---|---|
Sorting metrics |
Click next to the Metrics in Last 10 Min or Proportion column to change the orders of metrics in the list. indicates the default order. indicates the ascending order (that is, the largest value is displayed at the bottom). indicates the descending order (that is, the smallest value is displayed at the bottom). |
Adding metrics |
Click Add Metric, select desired metrics from the metric list, and click OK.
NOTE:
A maximum of 100 metrics can be added each time. |
Discarding metrics |
|
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