CloudMonitor provides the availability monitoring feature to help you check whether a local or remote service responds. 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. This way, you can efficiently check the response 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 application group that you want to use.
  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 object to be monitored. Valid values:
    • URL or IP address
    • ApsaraDB for RDS
    • KVStore for Redis
    Detection Type The method used to monitor the object.
    If you set the Detection Target parameter to URL or IP address, you can select one of the following methods:
    • 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.
    If you set the Detection Target parameter to ApsaraDB for RDS or KVStore for Redis, you can select one of the following methods:
    • TELNET: Enter the IP address to be monitored.
    • PING: Enter the IP address to be monitored.
    Frequency The interval at which the detection request is sent.

    Valid values: 15Second, 30Second, 1mins, 2mins, 5mins, 15mins, 30mins, and 60mins. For example, if you select 1mins, CloudMonitor sends a detection request to the monitored object every minute.

    This parameter is required if you set the Detection Target parameter to URL or IP address and the Detection Type parameter to HTTP(S).

    Headers The HTTP or HTTPS headers of the detection request in site monitoring.

    A header must be in the parameter1:value1 format.

    Separate multiple headers with commas (,).

    This parameter is required if you set the Detection Target parameter to URL or IP address and Detection Type to HTTP(S).

    Content Submission The content of the POST request in site monitoring.

    The content must be in the parameter1=value1&parameter2=value2 format and must be in English.

    This parameter is required if you set the Detection Target parameter to URL or IP address, the Detection Type parameter to HTTP(S), and the Request Method parameter to POST.

    Content Match The response content and the method to match the content in site monitoring.
    If you specify the response content to match, site monitoring checks whether the first 64 KB of the response body contains the response content to match. Valid values:
    • Alert if the matching content is included.
    • Alert if the matching content not included.

    This parameter is required if you set the Detection Target parameter to URL or IP address and the Detection Type parameter to HTTP(S).

    Status Code

    The status code that triggers an alert. CloudMonitor generates an alert if the status code that is returned meets the alert condition.

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

    Response Time

    The response time that triggers an alert. CloudMonitor generates an alert if the response time meets the alert condition.

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

    Notification Method The method used to send alert notifications.
    HTTP WebHook 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 sends alert notifications only within the effective period and only records alerts if the alerts are generated before or after the effective period.
  7. Click OK.