All Products
Search
Document Center

Container Service for Kubernetes:Enable Managed Service for Prometheus

Last Updated:Apr 24, 2024

You can enable Managed Service for Prometheus for workflow clusters to use the monitoring capabilities provided by Managed Service for Prometheus. After Managed Service for Prometheus is enabled for workflow clusters, you can view the status of workflows and workflow clusters. This topic describes how to enable Managed Service for Prometheus for workflow clusters.

Prerequisites

Enable Managed Service for Prometheus

  1. Run the following command to query the ID of a workflow cluster:

    aliyun adcp DescribeHubClusters --Profile=XFlow
  2. Run the following command to enable Managed Service for Prometheus:

    aliyun adcp UpdateHubClusterFeature --MonitorEnabled true --ClusterId <cluster id>

    After Managed Service for Prometheus is enabled, a Prometheus instance is automatically created for the workflow cluster.

  3. View Prometheus dashboards.

    1. Log on to the ACK One console. In the left-side navigation pane, click Workflow Cluster.

    2. In the Common Operations section of the Workflow Cluster page, click Application Real-Time Monitoring Service (ARMS) to go to the Dashboards page.

      You can view the status and details of the workflow cluster, including workflow status and information about the API server, etcd, and pods.

    3. On the Dashboards page, click the ACKOne-ArgoWorkflow dashboard to view the status of the workflow.

      123.png

Disable Managed Service for Prometheus

  1. Run the following command to disable Managed Service for Prometheus:

    aliyun adcp UpdateHubClusterFeature --MonitorEnabled false --ClusterId <cluster id>