Monitor Elastic IP Address (EIP) metrics such as bandwidth and packet rates, set up threshold-based alert rules, and subscribe to abnormal event notifications to track EIP usage and respond quickly to issues.
CloudMonitor alerting
Cloud Monitor (CMS) collects EIP metrics in real time. You can:
View monitoring charts to check EIP health.
Create threshold alert rules to detect anomalies and take action.
If you use a Resource Access Management (RAM) user to view EIP monitoring data, first grant the required permissions with an Alibaba Cloud account:
Option 1: Attach a system policy associated with
cms:QueryMetricListto the RAM user. Available system policies: AliyunCloudMonitorFullAccess, AliyunCloudMonitorMetricDataReadOnlyAccess, AliyunCloudMonitorReadOnlyAccess, or AliyunCloudMonitorReadOnlyBasicAccess.Option 2: Create or modify a custom policy with the
cms:QueryMetricListaction in an Allow statement, then attach the policy to the RAM user.
EIP metrics
Metric | Description |
Outbound Bandwidth | Bandwidth consumed by the EIP for outbound traffic. Unit: bps. |
Inbound Bandwidth | Bandwidth consumed by inbound traffic to the EIP. Unit: bps. |
Inbound Bandwidth Usage | Percentage of inbound bandwidth used relative to the EIP's total bandwidth capacity. |
Outbound Bandwidth Usage | Percentage of outbound bandwidth used relative to the EIP's total bandwidth capacity. |
Outbound Packet Rate | Number of packets the EIP sends per second. Unit: pps. |
Inbound Packet Rate | Number of packets the EIP receives per second. Unit: pps. |
Rate of Outbound Packets Dropped | Packets dropped per second in the outbound direction due to bandwidth throttling. Unit: pps. |
Rate of Inbound Packets Dropped | Packets dropped per second in the inbound direction due to bandwidth throttling. Unit: pps. |
View EIP metrics
Console
Go to the Elastic IP Addresses console, click the target EIP ID, then click the tab to view charts.
By default, data from the last hour is displayed. You can switch to the last 3, 6, or 12 hours, or specify a custom time range. Data is retained for up to 31 days.
Turn on Auto Refresh to update charts automatically every minute.
Go to the CloudMonitor console - Elastic IP Address page, find the target EIP, and click Monitoring Charts in the Actions column.
By default, data from the last hour is displayed. You can switch to the last 3 hours, 6 hours, 12 hours, 1 day, 3 days, 7 days, 14 days, or specify a custom time range. Data is retained for up to 31 days.
API
Call DescribeMetricList to query monitoring data for a specific metric of a cloud service.
Create threshold alert rules
When an EIP is released, its associated threshold alert rules in CloudMonitor are also deleted.
Console
Go to the CloudMonitor console - Alert Rules page and click Create Alert Rule.
Product: Select Elastic IP Address.
Resource Range: Choose All Resources to apply the rule to every EIP under the account, or choose Instances and configure Associated Resources to target specific EIPs. The range type cannot be changed after the rule is created.
Rule Description: Define the conditions that trigger an alert.
Click Add Rule and select a metric type from the drop-down menu.
In the Configure Rule Description panel, configure the Alert Rule, Metric Type, and Metric.
Mute Period: How often to resend alert notifications if the issue is not resolved.
Effective Period: The time window during which the rule actively evaluates monitoring data.
Alert Contact Group: The contact group that receives alert notifications.
API
Call PutResourceMetricRules to create threshold alert rules for specific metrics of a resource.
Fine-grained monitoring
When bandwidth utilization reaches 100% and capacity is not scaled in time, traffic throttling and packet drops occur—degrading client access quality and user experience. EIP fine-grained monitoring addresses this by:
Increasing monitoring granularity to per-second intervals for real-time detection of traffic spikes. This helps you adjust EIP bandwidth peaks promptly and prevent access latency caused by throttling.
Leveraging Simple Log Service for comprehensive log storage, dashboards, and alerting capabilities.
When you enable fine-grained monitoring, the system automatically sets the data retention period for the associated Logstore to 7 days.
Each account receives 500 MB of free storage per month. Usage beyond this quota incurs additional charges.
Fine-grained monitoring cannot display rate-limiting drop data for EIPs bound to ECS instances or elastic network interfaces (ENIs), because rate-limiting is enforced at the ECS NIC level and those metrics are not ingested into EIP fine-grained monitoring. Only EIPs bound to NAT gateways or Server Load Balancer (SLB) instances support rate-limiting drop data.
Monitoring data
Metric | Description |
Second-level bandwidth peak (outbound/inbound) | Per-second peak bandwidth in the outbound and inbound directions. Unit: Bps. |
Second-level packet rate (outbound/inbound) | Packets sent and received per second in each direction. Unit: pps. |
Second-level drop rate (outbound/inbound) | Packets dropped per second in each direction. Unit: pps. |
TCP new connection rate (outbound/inbound) | New TCP connections established per second in each direction. Unit: pps. |
Enable fine-grained monitoring
Console
Go to the VPC console - Internet Tool Kit page and click Fine-grained Monitoring.
If the required permissions are not granted, follow the on-screen wizard to authorize cloud resource access.
If you use a RAM user, first complete cloud resource authorization with an Alibaba Cloud account.
Find the target EIP and click Enable Fine-grained Monitoring in the Actions column. Select an existing or create a new log project and Logstore to complete the log configuration.
After the feature is enabled, click the
icon in the Monitor column for the target EIP to view and analyze monitoring data.
API
Call SetHighDefinitionMonitorLogStatus to enable or disable fine-grained monitoring for an EIP.
Abnormal events
EIP integrates with the Event Center of Network Intelligence Service (NIS). View abnormal events from the last 30 days to identify potentially affected resources and take corrective action.
After an EIP is associated with a cloud resource, go to the EIP details page and click the tab to view abnormal events.
All abnormal events from the last 30 days are available for review.
Follow the recommended actions to resolve issues.
Subscribe to events to receive alert notifications for critical events.