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.
Enable Managed Service for Prometheus
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
Run the following command to disable Managed Service for Prometheus:
aliyun adcp UpdateHubClusterFeature --MonitorEnabled false --ClusterId <cluster id>