Updated on 2025-11-13 GMT+08:00

Using the AOM Dashboard to Display CCI Metrics

AOM can display multiple metrics on the same screen in a visualized manner. You can add key resource metrics to the dashboard and monitor them in real time.

Constraints

Only one Prometheus instance for cloud services can be created in an enterprise project.

Step 1: Create a Prometheus Instance

  1. Log in to the AOM console.
  2. In the navigation pane, choose Prometheus Monitoring > Instances. On the displayed page, click Add Prometheus Instance.
  3. Set the instance name, enterprise project, and instance type.

    If the CCE Cloud Bursting Engine for CCI add-on is being used or required, the CCE cluster also needs this Prometheus instance, with the instance type set to Prometheus for CCE.

  4. Click OK.

Step 2: Connect Metrics Using the CCI Console

  1. Log in to the CCI 2.0 console.
  2. Select the target namespace, click Edit in the Operation column, and then enable AOM (Optional).
  3. Select the AOM instance. For details about how to create an AOM instance, see Step 1: Create a Prometheus Instance.
  4. Click OK.

Step 3: Create a Dashboard

  1. Go to the AOM console. In the navigation pane, choose Dashboard. On the displayed page, click Add Dashboard.

    Figure 1 Adding a dashboard

  1. Click the name of the created dashboard to go to the details page.
  2. Click Add Chart, enter the title, select Prometheus statement, add a statement, and click Save. For details about CCI dashboard metrics, see Table 1.

    The following is an example statement for querying the CPU usage of all pods:
    sum(rate(container_cpu_usage_seconds_total{cluster="cci", image!=""}[5m])) by (pod, namespace) / (sum(container_spec_cpu_quota{cluster="cci", image!=""}/100000) by (pod, namespace)) * 100
    Table 1 Dashboard metrics

    Dimension

    Category

    Metric Name

    Definition

    Deployment

    CPU metrics

    CPU Usage

    CPU usage

    Used CPU

    Used vCPUs

    Memory metrics

    Memory Usage

    Memory usage

    Used Memory

    Used memory

    Network metrics

    Network Rate

    Network rate

    Packet Loss

    Network packet loss rate

    Pod

    CPU metrics

    CPU Usage

    CPU usage

    Used CPU

    Used vCPUs

    Memory metrics

    Memory Usage

    Memory usage

    Used Memory

    Used memory

    Network metrics

    Network Rate

    Network rate

    Container

    CPU

    CPU Usage

    CPU usage

    Memory metrics

    Memory Usage

    Memory usage

  3. View the metrics on the AOM 2.0 dashboard.

    For more monitoring and O&M methods, see Creating a Dashboard.

    Figure 2 Metrics