This topic describes how to create a Prometheus instance to monitor a Container Service for Kubernetes (ACK) cluster. After you create a Prometheus instance, you can use preset dashboards to monitor the host and view the performance metrics of the ACK cluster.
Prerequisites
- An ACK cluster is created. For more information, see the following topics:
- Application Real-Time Monitoring Service (ARMS) is activated. For more information, see Activate and upgrade ARMS.
Create a Prometheus instance
You can use one of the following methods to enable Prometheus Service:
Enable Prometheus Service by setting ACK cluster parameters
Enable Prometheus Service on the Prometheus Monitoring page in the ACK console
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
- In the left-side navigation pane of the cluster details page, choose .
- In the middle of the Prometheus Monitoring page, click Install.
Result

After you enable Prometheus Service for an ACK cluster, a Prometheus instance is automatically created and displayed on the Prometheus Monitoring page in the Prometheus Service console. Prometheus for Container Service is displayed in the Instance Type column of the Prometheus instance.
View monitoring metrics on a Grafana dashboard
After you connect an ACK cluster to Prometheus Service, you can view the performance metrics of the cluster on a Grafana dashboard.
- Log on to the ARMS console .
- In the left-side navigation pane, choose .
- In the top navigation bar of the Prometheus Monitoring page, select a region. Then, click the name of the Prometheus instance that you want to manage.
- On the Dashboards page, click the name of a dashboard to view the performance metrics of the cluster.
Disable monitoring for an ACK cluster
If you no longer want to monitor an ACK cluster by using Prometheus Service, you can perform the following steps to uninstall the Prometheus agent:
- Log on to the ARMS console .
- In the left-side navigation pane, choose .
- In the top navigation bar of the Prometheus Monitoring page, select the region where the ACK cluster resides. Then, find the Prometheus instance that monitors the ACK cluster and click Uninstall in the Actions column.
- In the message that appears, click OK.
- Log on to the ACK console.
- In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster for which you want to disable monitoring and click its name.
- In the left-side navigation pane, choose . Perform one of the following operations as needed:
- If no record in the
arms-prom-****
format is displayed on the Helm page, the Prometheus agent is uninstalled. In this case, you do not need to perform more operations. - If a record in the
arms-prom-****
format is displayed on the Helm page, click Delete in the Actions column.
- If no record in the