All Products
Search
Document Center

CloudMonitor:Network Analysis and Monitoring

Last Updated:Dec 15, 2023

The site monitoring feature is used to simulate user access and monitor the availability, connectivity, and Domain Name System (DNS) resolution of sites. You can create site monitoring tasks to monitor the connectivity and response time of domain names, IP addresses, and ports. You can configure alert rules based on the detection results. This topic describes how to create a site monitoring task and view the monitoring data that is obtained by the site monitoring task.

Prerequisites

Network Analysis and Monitoring is activated. For more information, see Activate Network Analysis and Monitoring.

Create a site monitoring task

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Network Analysis and Monitoring > Site Monitoring (Scheduled Detections).
  3. On the Monitoring Tasks tab, click Create Task.

  4. On the Create Task page, configure the parameters of the site monitoring task.

    • Basic Information

      • Task Type: HTTP(S)

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. Valid values:

        • GET (default)

        • POST

        • HEAD

        The monitored address is a URL. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Advanced Settings

        For more information about the advanced settings for HTTP or HTTPS, see Advanced Settings.

        Important

        Handshake protocols earlier than TLS 1.2 have security vulnerabilities. Therefore, CloudMonitor does not support handshake protocols earlier than TLS 1.2 on the server, keeping path with mainstream browsers. If the error tls: server selected unsupported protocol version 302 occurs on a running site monitoring task but you do not want to upgrade the TLS protocol on the server, you can select the minimum compatible TLS version on the Others tab of the Advanced Settings page.

      • Task Type: PING

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. The monitored address is a domain name or an IP address. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Number of Ping Packets

        The number of times that the site is pinged. Default value: 10.

      • Task Type: DNS

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. The monitored address is a domain name. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Type

        The type of DNS records that you want to query. Valid values:

        • A (default)

        • MX

        • NS

        • CNAME

        • TXT

        • ANY

        • AAAA

        DNS Access Protocol

        The transport layer protocol used by DNS. Valid values:

        • udp (default)

        • tcp

        • tcp-tls

        DNS Server

        The type of the DNS server. Valid values:

        • System default DNS

        • The operator DNS corresponding to the detection point

        • Custom DNS

        Number of Retries after DNS Failure

        The number of retries after a DNS detection fails.

        Expected Resolution Result

        CloudMonitor checks whether the DNS resolution result contains the expected domain names or IP addresses. If the list of expected values is a subset of the list of DNS results, the detection is considered successful.

        Separate multiple domain names or IP addresses with commas (,).

        Matching Rule

        The matching rule for the domain name or IP address.

        Port

        The port of the DNS server.

      • Task Type: TCP or UDP

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. Valid values:

        • GET (default)

        • POST

        • HEAD

        The monitored address is a URL. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Port

        The TCP or UDP port number. Default value: 80.

        Advanced Settings

        For more information about the advanced settings for TCP or UDP, see Advanced Settings.

      • Task Type: SMTP or POP3

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. The monitored address is a domain name or an IP address. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Port

        The SMTP or POP3 port number.

        Default SMTP port number: 25.

        Default POP3 port number: 110.

        Username

        The username and password of the SMTP or POP3 server.

        Password

        Secure Connection

        Specifies whether to use secure connections for SMTP or POP3. Valid values:

        • Use

        • Do Not Use

      • Task Type: FTP

        Parameter

        Description

        Task Name

        The name of the site monitoring task. The name must be 4 to 100 characters in length, and can contain letters, digits, and underscores (_).

        Monitored Address

        The address of the site that you want to monitor. The monitored address is a domain name or an IP address. Separate multiple monitored addresses with carriage returns.

        Frequency

        The frequency at which the site monitoring task sends detection requests to the site that you want to monitor. Valid values: 15 Seconds, 1 Minute, 5 Minutes, 15 Minutes, 30 Minutes, and 60 Minutes. For example, if you select 1 Minute, a detection point in a region sends a detection request to the site that you want to monitor every minute. You can customize the monitoring cycle and specify the precise monitoring time.

        Note

        If you activated pay-as-you-go CloudMonitor Basic (cms_post) or purchased subscription CloudMonitor Basic (cms_edition) before 22:00:00 on September 13, 2022, you cannot set the Frequency parameter to 15 Seconds. You must activate Network Analysis and Monitoring before you can set the Frequency parameter to 15 Seconds.

        Port

        The FTP port number.

        Default value: 21.

        Anonymous Logon

        • Anonymous Logon (default)

        • Authentication Required

          If you select the Authentication Required option, you must specify the username and password of the FTP server.

        Username

        The username and password of the FTP server.

        Password

    • Define Assertions

      If you set the Task Type parameter to HTTP(S), you can use the assertion feature to specify conditions based on the response that is returned by detection and check whether the expected result is returned. You can configure multiple assertions by specifying conditions. A detection point is available only if it meets all the specified conditions.

      Note

      If you do not configure a status code assertion for HTTP detections, status codes that are less than 400 are available by default.

      CloudMonitor provides an available condition by default. If the default condition does not meet your business requirements, perform the following steps to add conditions:

      1. Click Add Condition Group.

      2. Configure the condition of the assertion.

        • Response Time (ms): checks whether the response time meets expectations. Default setting: less than 1,000 ms.

          Note

          The response time includes the DNS resolution time.

        • Status Code: checks whether the response status code meets expectations. Default status code: less than 400.

        • Header: checks whether the fields in the response header meet expectations. You must configure a custom condition for the response header assertion.

        • Body, XML Field of Body, and JSON Field of Body: check whether the content in the response body meets expectations by using text matching, XML parsing (XPath), and JSON parsing (JSONPath). For more information, see XPath Syntax and JSON with JSONPath.

      3. Click Verify.

        You can view the verification result on the right side of the page.

        • If the verification result is Successful, you can create a site monitoring task as expected.

        • If the verification result is Failed, you can perform network diagnostics at the corresponding detection point.

      If responses that do not meet the conditions are detected, you can initiate PING and MTR detections at the corresponding detection points.

      Note

      MTR is a network diagnostic tool that integrates PING and Traceroute features.

    • Select Detection Points

      Parameter

      Description

      IP Protocol

      The type of the IP address that is used by the site monitoring task. Valid values: IPv4 and IPv6.

      Select Custom Detection Points

      The default detection points and custom detection points that are used for site monitoring.

      If the default detection points do meet your business requirements, perform the following steps to add custom detection points:

      1. Click the 修改 icon next to Select Custom Detection Points.

      2. Click Create Template.

      3. In the Create/Modify Detection Point Template dialog box, enter a custom template name in the Template Name field and select custom detection points that you want to use.

      4. Click OK.

      5. Click OK.

    • Configure Alert Rules

      CloudMonitor provides an alert rule by default. If the default rule does not meet your business requirements, perform the following steps to add an alert rule:

      1. Click Add Rule.

      2. In the Add Rule Description panel, configure parameters for the alert rule. The following table describes the parameters.

        Parameter

        Description

        Rule Name

        The name of the alert rule.

        Metric Name

        The name of the metric that is used by the alert rule. Valid values:

        • Percentage of Available Detection Points

          Percentage of available detection points = (Number of times that a domain name or IP address can be accessed properly within a monitoring period/Total number of detection requests) × 100%.

        • Number of Unavailable Detection Points

          This metric specifies the number of times that the domain name or IP address of the site cannot be accessed as expected within a monitoring period.

        • Number of Available Detection Points

          This metric specifies the number of times that the domain name or IP address of the site can be accessed as expected within a monitoring period.

        • Any Status Code (Independent Alert)

          If the status code that is returned by one of the detection points meets the specified condition, an alert is triggered.

        • All Status Codes (Combined Alert)

          If the status codes that are returned by all detection points meet the specified condition, an alert is triggered.

        • Response Time

        Comparison

        The operator that is used to compare the metric value with the threshold in the alert rule. Valid values:

        • >=

        • >

        • <=

        • <

        • =

        • !=

        • Compared With Yesterday Rise

        • Compared With Yesterday Decline

        • Compared With Last Week Rise

        • Compared With Last Week Decline

        • Compared With Last Period Rise

        • Compared With Last Period Decline

        Threshold and Alert Level

        The alert level and the corresponding threshold.

        The notification method for alerts of the Info level is Email + Webhook.

        Valid values of the number of consecutive periods in which the metric value reaches the threshold before an alert is triggered: 1, 2, 3, 4, 5, 10, 15, and 20.

        Tag

        The tags of the alert rule.

        Auto Scaling

        If you turn on Auto Scaling, the specified scaling rule is enabled when an alert is triggered. In this case, you must configure the Region, ESS Group, and ESS Rule parameters.

        Log Service

        If you turn on Log Service, the alert information is sent to the specified Logstore when an alert is triggered. In this case, you must configure the Region, ProjectName, and Logstore parameters.

        For information about how to create a project and a Logstore, see Getting Started.

        Message Service - topic

        If you turn on Message Service - topic, the alert information is sent to the specified topic in Message Service (MNS) when an alert is triggered. In this case, you must configure the Region and topicName parameters.

        Function Compute

        If you turn on Function Compute, an alert notification is sent to Function Compute for format processing when an alert is triggered. In this case, you must configure the Region, Service, and Function parameters.

        For information about how to create a service and a function, see Quickly create a function.

      3. Click OK.

    • Select Alert Contact Groups

      Parameter

      Description

      Contact Groups

      The alert contact groups to which alert notifications are sent. Select at least one alert contact group.

      Alert notifications are sent to the alert contacts that belong to the specified alert contact groups. An alert contact group can contain one or more alert contacts.

      Mute For

      The interval at which CloudMonitor resends alert notifications before an alert is cleared. Valid values: 5 Minutes, 15 Minutes, 30 Minutes, 60 Minutes, 3 Hours, 6 Hours, 12 Hours, and 24 Hours.

      If a metric value reaches the threshold, CloudMonitor sends an alert notification. If the metric value reaches the threshold again within the mute period, CloudMonitor does not resend an alert notification. If the alert is not cleared after the mute period ends, CloudMonitor resends an alert notification.

      Note

      You can click Advanced Settings to configure this parameter.

      Effective Period

      The period during which the alert rule is effective. CloudMonitor monitors the specified resources based on the alert rule only within the specified period.

      Note

      You can click Advanced Settings to configure this parameter.

      Alert Callback

      The callback URL that can be accessed over the Internet. CloudMonitor sends HTTP POST requests to push alert notifications to the specified URL. You can enter only an HTTP URL. For more information about how to configure alert callback, see Use the alert callback feature to send notifications about threshold-triggered alerts.

      To test the connectivity of an alert callback URL, perform the following steps:

      1. Click Test next to the callback URL.

        In the Webhook Test panel, you can check and troubleshoot the connectivity of the alert callback URL based on the returned status code and test result details.

        Note

        To obtain the details of the test result, configure the Test Template Type and Language parameters and click Test.

      2. Click Close.

      Note

      You can click Advanced Settings to configure this parameter.

  5. Click Create.

View site monitoring tasks

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Network Analysis and Monitoring > Site Monitoring (Scheduled Detections).
  3. On the Site Monitoring Tasks page, you can view the total number of site monitoring tasks, the alerts that are triggered in the last 24 hours, and the number of detections that are performed yesterday.
  4. On the Monitoring Tasks tab, click the name of the site monitoring task.
    You can view the data of the site monitoring task on the overview, monitoring analysis, and alert rules pages.
    • On the Overview information page, you can view the following charts: Alert History, Analysis report, and Detection Results.
    • On the Monitoring analysis page, you can view data that is displayed on the Scatter plot analysis, Geographical Analysis, Carrier Analysis, and Detection Error Analysis tabs.
    • On the Alert Rules page, you can view the alert rules of the site monitoring task. You can also modify, delete, disable, or enable the alert rules for the site monitoring task.