You can integrate Alibaba Cloud Service Mesh (ASM) with Managed Service for Prometheus to scrape performance metrics from Envoy proxies in the data plane. This enhances the observability and operability of your service mesh to ensure high availability and security.
Prerequisites
-
Activate Managed Service for Prometheus. For more information, see Prometheus instance billing.
-
Create a Kubernetes cluster. For more information, see Create an ACK managed cluster.
-
Activate Alibaba Cloud Resource Center. For more information, see Activate Resource Center.
Integrate ASM
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, click Integration Center.
-
Click the Alibaba Cloud ASM card and follow the on-screen instructions to integrate the component. The following table describes the key parameters.
Parameter
Description
Enable advanced feature
When enabled, this feature converges the scraped metrics to reduce costs.
Metric scrape interval (seconds)
The interval for collecting monitoring data. The default value is 15.
View ASM monitoring data
The installed component is displayed on the Integration Management page in the Managed Service for Prometheus console. The Integration Management page consists of the Integrated Environments, Integrated Addons, and Query Dashboards tabs, where you can view information such as targets, metrics, dashboards, and alerts.
Targets
You can view the list of targets discovered by the default integration job.
On the Self-Monitoring > Targets page, you can filter targets by using the All and Unhealthy tabs. The status of each target, such as 2/2 up, is displayed. Unhealthy targets are highlighted in red.
Metric scraping
You can view metric details and configure rules to discard specific metrics. For more information, see Configure discarded metrics. On the Metric scraping tab, the left-side menu contains Default Service Discovery, ServiceMonitor, PodMonitor, Custom Scrape Jobs, and Discarded Metrics. When you select Custom Scrape Jobs, a list of custom scraping jobs is displayed with columns such as Name, Job Name, Component, Service Discovery Method, Scrape Path, and Scrape Interval. Click Add in the upper-right corner to create a custom scraping job. In the Actions column, you can disable a job, view or edit its configuration, or delete it.
Dashboards
On this tab, you can click a dashboard name to open the corresponding Grafana dashboard.
The Alibaba Cloud ASM component provides the following out-of-the-box dashboards: Cloud ASM Istio Gateway Status, Cloud ASM Istio Http Gateway, Cloud ASM Istio Mesh, Cloud ASM Istio Performance, Cloud ASM Istio Service, Cloud ASM Istio Tcp Gateway, and Cloud ASM Istio Workload.
Alert rules
To create a Prometheus alert rule, see Create a Prometheus alert rule.