Based on availability monitoring, CloudMonitor helps you locate issues when a local or remote service has no response. CloudMonitor can send an alert notification to you if the local or remote service fails to respond within a specified timeout period or returns an error status code. In this way, you can efficiently check response conditions of local or remote paths and ports.

Prerequisites

An application group is created. For more information, see Create an application group.

Procedure

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, click Application Groups.
  3. On the Application grouping tab of the Application Groups page, click the name or ID of the target application group.
  4. In the left-side navigation pane of the page that appears, click Availability Monitoring.
  5. On the Availability Monitoring page, click Create Configuration.
  6. In the CreateAvailability Monitoring dialog box, set relevant parameters.
    Parameter Description
    Task Name The name of the availability monitoring task.
    Target Server The ID of the instance to be monitored.
    Detection Target The target to be monitored. Valid values:
    • URL or IP address
    • ApsaraDB for RDS
    • KVStore for Redis
    Detection Type The method used to monitor the target. This parameter is required if you set the Detection Target parameter to URL or IP address. Valid values:
    • HTTP(S): Enter the URL to be monitored and set the Request Method parameter to HEAD, GET, or POST.
    • TELNET: Enter the IP address to be monitored.
    • PING: Enter the IP address to be monitored.
    Status Code

    The alert trigger condition for the status code. CloudMonitor generates an alert if the status code that is returned by the local or remote service meets the alert trigger condition.

    CloudMonitor generates an alert and sends an alert notification to the alert groups of the application group when either the status code or response time meets the specified alert trigger condition.

    Response Time

    The alert trigger condition for the response time. CloudMonitor generates an alert if the response time of the local or remote service meets the alert trigger condition.

    CloudMonitor generates an alert and sends an alert notification to the alert groups of the application group when either the status code or response time meets the specified alert trigger condition.

    Notification Method The method used to send alert notifications.
    HTTP CallBack The callback URL to which a request is sent when an alert is triggered based on the alert rule.
    Effective Time The interval of re-sending the notification for an alert before the alert is cleared.
    Effective From The time period during which the alert rule is effective. CloudMonitor only sends alert notifications within the effective period and records alerts if the alerts are generated before or after the effective period.
  7. Click OK.