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

Disabling Monitoring

This section describes how to disable cluster monitoring.

Constraints

Before disabling monitoring, read the following precautions carefully to prevent data loss or additional fees.

  • Monitoring cannot be disabled when the kube-prometheus-stack add-on is in Installing, Upgrading, Deleting, or Rolling back state.
  • Disable monitoring when the kube-prometheus-stack add-on is in Running, Partially ready, or Installation failed state. For Huawei Cloud clusters, the system updates the kube-prometheus-stack add-on to disable the data reporting function. For on-premises and attached clusters, the system uninstalls the kube-prometheus-stack add-on.
  • If the kube-prometheus-stack add-on is in Rollback failed, Not available, Installation failed, Deletion failed, or Unknown state, disabling monitoring will uninstall the kube-prometheus-stack add-on.
  • For on-premises and attached clusters accessed through private networks, when monitoring is disabled, the system checks whether the private network access point (VPCEP and DNS private domain name created when monitoring is enabled) is being used by other clusters. If not, the private network access point will be deleted.
  • Huawei Cloud clusters use PVCs of the csi-disk-topology storage type to temporarily store add-on data. After cluster monitoring is disabled, PVCs in the monitoring namespace cannot be automatically deleted. To avoid unexpected expenditures, go to the CCE console and manually delete the PVCs. (You need to uninstall the kube-prometheus-stack add-on first.)

Procedure

  1. Select a fleet or a cluster that is not added to the fleet.

    Figure 1 Selecting a fleet or a cluster not in the fleet

  2. Choose Container Insights > Clusters to view the clusters with monitoring enabled. Locate the cluster for which you want to disable monitoring and click Cancel Monitoring in the Operation column.
  3. In the confirmation dialog box, click OK to disable monitoring for the cluster.