Updated on 2024-06-28 GMT+08:00

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.

Precautions

  • You can connect clusters only when the kube-prometheus-stack add-on exists on the Add-ons page of CCE.
  • 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.

Creating a Prometheus Instance for CCE

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Prometheus Monitoring > Instances. On the displayed page, click Add Prometheus Instance.
  3. Set the 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 you have selected All for Enterprise Project on the global settings page, select one from the drop-down list here.
    • If you have already selected an enterprise project on the global settings page, this option will be dimmed and cannot be changed.

    Instance Type

    Type of the Prometheus instance. Select Prometheus for CCE.

  4. Click OK.

Connecting a CCE Cluster

  1. In the navigation pane on the left, choose Prometheus Monitoring > Instances.
  2. In the instance list, click a Prometheus instance for CCE.
  3. On the Integration Center page, click Connect Cluster. In the cluster list, you can view the cluster information, installation status, and collection status.

    Figure 1 Viewing cluster connection information

  4. Locate a target cluster and click Install in the Operation column to install the Prometheus add-on.

    Figure 2 Connecting a CCE cluster

  5. After the installation is complete, click Close to connect the CCE cluster and bind it with the current Prometheus instance.

    To disconnect the CCE cluster, click Uninstall.