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
Distributed Cloud Container Platform for Kubernetes (ACK One) is activated.
Application Real-Time Monitoring Service (ARMS) is activated.
A Kubernetes cluster for distributed Argo workflows is created.
Alibaba Cloud CLI 3.0.167 or later is installed and credentials are configured for the Alibaba Cloud CLI. For more information, see Install the Alibaba Cloud CLI and Configure credentials.
The Resource Access Management (RAM) policy AliyunAdcpFullAccess is attached to a RAM user. For more information, see Grant permissions to a RAM user.
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
Log on to the ACK One console. In the left-side navigation pane, choose .
On the Cluster Monitoring page, click Enable Workflow Cluster Monitoring, and then click OK to enable workflow cluster monitoring.
Use the CLI
Run the following command to query the ID of a workflow cluster:
aliyun adcp DescribeHubClusters --Profile=XFlow
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.
View Prometheus dashboards.
Log on to the ACK One console. In the left-side navigation pane, click Workflow Cluster.
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.
On the Dashboards page, click the ACKOne-ArgoWorkflow dashboard to view the status of the workflow.
Disable Managed Service for Prometheus
Use the console
Log on to the ACK One console. In the left-side navigation pane, choose .
On the Cluster Monitoring page, click Disable, and then click OK to disable workflow cluster monitoring.
Use the CLI
Run the following command to disable Managed Service for Prometheus:
aliyun adcp UpdateHubClusterFeature --MonitorEnabled false --ClusterId <cluster id>