Using Prometheus Monitoring to Monitor CCE Cluster Metrics
Based on the Prometheus monitoring ecosystem, AOM provides hosted Prometheus instances for CCE, which are suitable for monitoring CCE clusters and applications running on them. By default, Prometheus instances for CCE support integration with the Cloud Native Cluster Monitoring add-on. After installing the add-on, metrics will be automatically reported to a specified Prometheus instance for CCE.
This type of instance is recommended when you need to monitor CCE clusters and applications running on them. By default, CCE clusters are monitored. If needed, add component monitoring through the access center.
Constraints
- Only when the Cloud Native Cluster Monitoring add-on (kube-prometheus-stack) exists on the Add-ons page of CCE, can you install the add-on for clusters.
- Before installing the kube-prometheus-stack add-on, ensure that there are at least 4 vCPUs and 8 GiB memory. Otherwise, this add-on cannot work.
- All metrics will be billed, except the basic container metrics collected by CCE's Cloud Native Cluster Monitoring add-on. For details about basic metrics, see Basic Metrics: Container Metrics.
Creating a Prometheus Instance for CCE
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Prometheus Monitoring > Instances. On the displayed page, click Add Prometheus Instance.
- Set an instance name, enterprise project, and instance type.
Table 1 Parameters for creating a Prometheus instance Parameter
Description
Instance Name
Prometheus instance name.
Enter a maximum of 100 characters and do not start or end with an underscore (_) or hyphen (-). Only letters, digits, underscores, and hyphens are allowed.
Enterprise Project
Enterprise project.
- If Enterprise Project is set to All on the global settings page, select an enterprise project from the drop-down list here.
- If you have already selected an enterprise project on the global settings page, this option will be grayed and cannot be changed.
- To select the newly created enterprise project during the creation of a Prometheus instance, wait for about 10 minutes after the enterprise project is created.
Instance Type
Type of the Prometheus instance. Select Prometheus for CCE.
Description
Description of the Prometheus instance. Enter up to 1,024 characters.
Tag
Click Add and enter a tag key and value to add a tag.
- Max.: 20 tags.
- A tag key can contain letters, digits, spaces, and special characters (_.:=+-@), but cannot start or end with a space or start with _sys_.
- A tag value can contain letters, digits, spaces, and special characters (_.:/=+-@).
- Click OK.
To use more functions on the details page of a Prometheus instance for CCE, you need to obtain CCE permissions in advance. For details, see Permissions.
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