You can configure alarm rules for the connection, dedicated tunnel, and direct connect gateway on the Cloud Monitor console. When an alarm rule is triggered, you will receive notifications, which will allow you to take appropriate measures.
Log in to the Cloud Monitor console and select Alarm Configuration -> Alarm Policy to access the alarm policy configuration page.
Perform the following steps to configure a new alarm policy.
- Fill in Policy Name and Remarks. Select Physical Dedicated Line, Dedicated Line Channel or Direct Connect Gateway for Policy Type as needed.
- Choose a project based on your needs. Each project supports creating a maximum of 300 alarm policies.
- Select the alarm object.
- If you check All Objects, the alarm policy will be associated with all instances under the current account.
- If you check Select some objects, the alarm policy will be associated with the selected instances.
- If you check Select instance group, the alarm policy will be associated with the selected instance groups. You can click Create instance group to add instance groups.
- Use one of the following methods to configure the trigger condition.
- Trigger condition template
This method allows you to select a configured template from the drop-down list.
You can click Add Trigger Condition Template to configure a new trigger condition template. For more information, see Configuring Trigger Condition Templates. If the new template is not displayed in the list, click Refresh.
- Configure trigger condition
This method requires configuring metric alarm and event alarm as needed.
- Configure the trigger conditions for metric alarm. For more information about the metrics, see Metric Alarms.
For example, if you choose BandwidthIn metric and configure the following parameters: Statistical Period 1 minutes, >, 100 Mbps, Last for 2 periods, and Alarm once every 1 day, then the inbound bandwidth data will be collected once every minute, and an alarm will be triggered once a day if the inbound bandwidth of a connection or dedicated tunnel exceeds 100 Mpbs for 2 consecutive minutes.
Click Add to configure a new trigger condition. You can select to trigger an alarm when any or all conditions are met.
- Configure the event such as DirectConnectDown for the event alarm. For more information about the events, see Event Alarms.
Click Add to configure a new event alarm.
Configure the alarm channel, including the recipient group, valid period, and receipt channel (email, object, and WeChat) as needed.
Click Add Recipient Group to configure a new receipt group.
(Optional) Configure the API callback. Input the URL that is accessible over the public network as the callback API address (domain name or IP[:port][/path]), and the Cloud Monitor will push the alarm information to this address in time.
After the configuration is complete, click Complete.
Managing an Alarm Policy
Once the alarm policy is created, you can enable, disable, copy, or delete it on the console.
- Log in to the Cloud Monitor console and select Alarm Configuration -> Alarm Policy to access the alarm policy configuration page.
- Perform the following steps as needed.
- Locate the alarm policy that you want to enable or disable, toggle switch in the Alarm On-Off column.
- Locate the alarm policy that you want to copy, click Replication in the Operation column, modify the policy as needed in the pop-up window, and click Complete.
- Locate the alarm policy that you want to delete, click Delete in the Operation column, and click OK in the pop-up window to confirm the deletion.