All Products
Search
Document Center

Container Service for Kubernetes:Enable Managed Service for Prometheus

Last Updated:Aug 08, 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

Note

If the workflow cluster fails to enable cluster monitoring, submit a ticket to contact the container service team. You can also join the DingTalk group (35688562) for feedback.

Billing information

Fees are charged for the workflow cluster monitoring. We recommend that you read and understand Billing before you enable this feature.

Enable Managed Service for Prometheus

Use the console

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

  2. On the Cluster Monitoring page, click Enable Workflow Cluster Monitoring, and then click OK to enable workflow cluster monitoring.

Use the CLI

  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

Use the console

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

  2. On the Cluster Monitoring page, click Disable, and then click OK to disable workflow cluster monitoring.

Use the CLI

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

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