Managed Service for Prometheus collects OS, process, and custom metrics from Linux and Windows ECS hosts using node-exporter, process-exporter, and text file scraping.
Prerequisites
-
Managed Service for Prometheus is activated. Instance billing.
-
An ECS instance is created. Create and manage an ECS instance by using the ECS console (express version).
-
Resource Center is activated. Activate Resource Center.
Benefits of host monitoring
Host monitoring provides an automated observability solution for Alibaba Cloud ECS instances, covering host discovery, agent installation, metric scraping, and alerting.
Supports Alibaba Cloud ECS instances, self-managed data center servers, and third-party cloud servers. For ECS instances, the service auto-installs exporters and generates scrape configurations. A managed Prometheus agent handles metric scraping, storage, visualization, and alerting. For non-Alibaba Cloud hosts without automatic discovery support, manually install the Alibaba Cloud agent to push data.
|
Benefit |
Description |
|
Near real-time host discovery |
|
|
Near real-time agent installation |
|
|
Near real-time metric scraping |
A host is integrated within 30–60 seconds of creation. Scrape intervals are adjustable from 1 to 60 seconds. |
|
Serverless agent |
|
|
Intelligent metric labels |
|
|
Large-scale data collection and storage |
|
|
Comprehensive upstream and downstream monitoring data |
|
|
Process-level monitoring |
|
|
Expert-level Grafana dashboards included by default |
|
Step 1: Integrate host monitoring data
-
Log on to the ARMS console. In the left-side navigation pane, click Integration Center.
-
On the Integration Center page, click Infrastructure in the left-side navigation pane, and then click Host Monitoring.
Note-
Managed Service for Prometheus uses Resource Center to discover VPCs and ECS instances. If Resource Center is not activated, the integration process guides you to activate it. Activate Resource Center.
-
Activating Resource Center is an asynchronous operation. If the status does not update, wait 10 to 20 seconds and click Redetect.
-
-
In the panel that appears, select the target VPC and configure the Configuration Information as described in the following table.
Parameter
Description
Node-exporter installation mode
-
Automatic Installation (Recommended): Installs node-exporter on selected ECS instances automatically. No manual steps required.
-
Self-installation: Install node-exporter yourself.
Host discovery mode
-
Stain label selection: Blacklist mechanism. Instances with matching labels are excluded. By default, container monitoring service nodes are not scraped.
-
Unconditional: Install exporters and collect monitoring metrics from all ECS hosts in the current VPC.
-
Tag selection: Whitelist mechanism. Only instances with matching tags are integrated.
-
IP CIDR selection: Integrates instances whose IP falls within the specified CIDR block. Enter the VPC CIDR block to select all instances in the VPC.
-
Instance ID: Specify instance IDs, separated by commas (,).
ECS stain label
Each stain label is a key-value pair. You can set multiple labels.
Collect textfile
Whether to scrape Prometheus metrics from a specified file.
Collect process status metrics
Collects process monitoring data by default.
Node-exporter service port
The default port is 9100.
Metric scrape interval (seconds)
Scrape interval. Default: 15 seconds.
Automatically configure security groups
Enabled by default.
Custom ECS tag injection
Specify an ECS tag key. The system injects the tag key-value pair into Prometheus metrics as labels.
-
-
Click OK. Wait 1 to 2 minutes for the integration to complete.
If no data appears on the dashboard after integration, verify that the ECS security group inbound rules allow the 100.64.0.0/10 and 192.168.0.0/18 CIDR blocks to access ports 9100 and 9256 (default ports for node-exporter and process-exporter). View security group rules. If you use different ports, adjust the rules accordingly.
Step 2: View monitoring dashboards
-
In the left-side navigation pane, click Integration Management.
-
On the Integration Management page, click the Integrated Environments tab, and select ECS Environment.
-
In the ECS Environment list, click the name of the target environment to open its details page.
-
On the Component Management tab, in the Addon Type section, click Dashboard to view the built-in Grafana dashboards.
Step 3: Configure alerts
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, click Integration Management.
-
On the Integration Management page, click the Integrated Environments tab, and select ECS Environment.
-
In the ECS Environment list, click the name of the target environment to open its details page.
-
On the Component Management tab, in the Addon Type section, click Alarm Rules to view the built-in alert rules.
-
Built-in alert rules generate events but do not send notifications. To send notifications, click Edit to configure a notification method. You can also customize thresholds, duration, and content. Create a Prometheus alert rule.
-
In Simple Mode, you can set the notification recipients, notification period, and repeat policy.
Grafana dashboard examples
ECS Overview dashboard

ECS Detail dashboard
