Service Mesh (ASM) integrates with Managed Service for Prometheus to monitor your Service Mesh. After you activate Application Real-Time Monitoring Service (ARMS), you can install the Prometheus agent for an ACK cluster with one click in the ARMS console. You can then use predefined dashboards in ARMS to monitor various performance metrics for your Kubernetes cluster.
Prerequisites
-
Managed Service for Prometheus is activated. For more information, see Activate ARMS.
-
The ack-arms-prometheus component is installed in the data plane cluster. For more information, see Connect to and configure Managed Service for Prometheus.
-
You have added a cluster to the ASM instance. For more information, see Add a cluster to an ASM instance.
Step 1: Collect metrics to Managed Service for Prometheus
For more information, see Collect metrics to Managed Service for Prometheus.
Step 2: View monitoring reports
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the target instance. In the left-side navigation pane, choose .
-
On the Kubernetes Clusters page, find the target cluster and click View Reports in the Observability column.
You can view the ASM Service Statistics (Public Preview) or Workload Statistics (Public Preview) dashboard as needed.
Step 3: Find the Prometheus access endpoint
Log on to the ARMS console.
-
In the left-side navigation pane, choose . In the upper-left corner of the page, select the target region.
-
On the Prometheus Instances page, click the name of the Prometheus instance. In the left-side navigation pane, click Settings.
-
On the Settings page, on the Settings tab, obtain the API endpoint in the HTTP API Address (Grafana Read Address) section.
Select the public or internal endpoint as needed. The endpoints are in the following formats:
-
Public endpoint
http://{region-id}.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id} -
Internal endpoint
http://{region-id}-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}
This is the ARMS endpoint for accessing Prometheus. You can add this endpoint to your Grafana system to view monitoring charts. For more information, see Connect Prometheus data to a self-managed Grafana system.
-