CloudMonitor can collect monitoring data about metrics of elastic IP addresses (EIPs) and generate time series curves in the EIP console. You can check the status of EIPs based on monitoring charts. You can also create threshold-triggered alert rules so that you can be notified and troubleshoot when exceptions occur.
Prerequisites
Before you view the monitoring data of an EIP as a RAM user, you must grant permissions to the RAM user by using an Alibaba Cloud account.
Method 1: Grant the permissions associated with
cms:QueryMetricList
to the RAM user. For more information, see Grant permissions to a RAM user.Optional permissions:
Method 2: Create or modify a custom policy, add
cms:QueryMetricList
to the Allow statement, and attach the custom policy to the RAM user. For more information, see Create custom policies.
View the monitoring data of an EIP
View monitoring data in the EIP console
- Log on to the Elastic IP Address console .
On the Elastic IP Addresses page, find the EIP and use one of the following methods to view the monitoring data.
View the data in the EIP list
Click in the Monitor column.
On the Monitor tab of the Monitoring Information panel, view the monitoring information.
View the data on the details page of an EIP
Click the EIP ID.
On the details page, choose the
tab to view monitoring data.
NoteFor more information about the metrics, see Metrics.
By default, the system displays monitoring data collected within the last hour. You can select other time ranges from the Time drop-down list. Supported time ranges are 3 hours, 6 hours, and 12 hours. You can also select Custom to specify a custom time range.
After you enable Auto Refresh, the monitoring chart is updated every minute.
View the metric data in the CloudMonitor console
Log on to the CloudMonitor console.
In the left-side navigation pane, choose
.In the Network section of the Cloud Service Monitoring page, click Elastic IP Address (EIP).
In the upper part of the Elastic IP Address (EIP) page, select the region of the EIP.
Find the EIP and click Monitoring Charts in the Actions column to view monitoring data.
NoteFor more information about the monitoring metrics of EIP, see Metrics.
By default, the system displays monitoring data collected within the last hour. You can select other time ranges from the Time drop-down list. Supported time ranges are 3 hours, 6 hours, 12 hours, 1 day, 3 days, 7 days, and 14 days. You can also select Custom to specify a custom time range. You can specify at most 30 days for a custom time range.
Create an alert rule
You can create alert rules to monitor the usage and status of EIPs in real time. This ensures the stability of your workloads.
If you delete an EIP, the alert rules for the EIP are also deleted from CloudMonitor.
Log on to the CloudMonitor console.
In the left-side navigation pane, choose .
On the Alert Rules page, click Create Alert Rule.
In the Create Alert Rule panel, set the following parameters and click Confirm.
The following table describes the parameters that are related to this topic. For more information about other parameters, see Create an alert rule.
Parameter
Description
Product
In this example, Elastic IP Address (EIP) is selected.
Resource Range
Select the scope to which the alert rule applies. Valid values:
All Resources: The alert rule applies to all EIPs within the current Alibaba Cloud account.
Application Groups: The alert rule applies to all resources in a specific application group. Select this option if you have created an application group that contains the EIPs that you want to monitor.
Instances: The alert rule applies only to the specified EIP within the current Alibaba Cloud account.
If you select Application Groups or Instances, you must further select the application group or EIP that you want to monitor from the Associated Resources drop-down list.
Rule Description
Specify the condition that triggers the alert rule. If a metric meets the specified conditions, an alert is triggered. To specify conditions, perform the following steps:
Click Add Rule.
In the Configure Rule Description panel, configure the Alert Rule, Metric Type, Metric, and Threshold and Alarm Level parameters.
For more information about the monitoring metrics of EIP, see Metrics.
Click OK.
Metrics
Monitoring metrics | Description |
OutboundBandwidth | The bandwidth that is used by the EIP to access the external networks. Unit: bit/s. |
InboundBandwidth | The bandwidth that is used by external networks to access the EIP. Unit: bit/s. |
InternetInRatePercentage | The percentage of inbound bandwidth to the total bandwidth. |
InternetOutRatePercentage | The percentage of outbound bandwidth to the total bandwidth. |
OutboundPacketRate | The number of packets sent by the EIP per second. Unit: pps. |
InboundPacketRate | The number of packets received by the EIP per second. Unit: pps. |
OutRatelimitDropSpeed | The rate of outbound packets dropped due to bandwidth throttling. Unit: pps. |
InRatelimitDropSpeed | The rate of inbound packets dropped due to bandwidth throttling. Unit: pps. |