All Products
Search
Document Center

ENS:Use CloudMonitor to view and subscribe to ENS system events

Last Updated:Aug 29, 2024

You can view Edge Node Service (ENS) events in the CloudMonitor console. You can also use CloudMonitor to view the usage of ENS. When an issue occurs in your business, you can quickly locate and troubleshoot the issue.

Note
  • All event-based alerts are triggered based on instances. If the same event affects three instances, three alerts are triggered.

  • For more information about ENS system events, see ENS system events.

Background information

CloudMonitor is a monitoring service that allows you to query, manage, and monitor the system events of Alibaba Cloud services in an integrated manner. For more information about CloudMonitor, see What is CloudMonitor?

You can use CloudMonitor to configure alert rules to receive notifications when system events occur. CloudMonitor supports the following notification methods:

  • Notifications are sent by text message, email, or DingTalk message.

  • Notifications are distributed to your Message Queue, Simple Log Service (SLS), Function Compute, or Webhook services, so that the events can be handled automatically based on your business requirements.

Query events

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Event Center > System Event. The System Event page appears.

  3. On the Event Monitoring tab, select Edge Node Service from the product drop-down list, select an event from the event drop-down list, specify the time range, and then click Search.

  4. In the event list, find the event that you want to query and click Details in the Actions column to view the details of the event.

Subscribe to ENS system events

Create a subscription policy

This topic uses the ENS event Node Port Exception as an example to describe how to subscribe to events.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose EventCenter > Event Subscription.

    Note

    You can also perform the following steps to create a subscription policy by using the System Event menu:

    1. In the left-side navigation pane, choose EventCenter > System Event.

    2. In the Welcome to the New Event Center section, click Create Immediately to create a subscription policy.

  3. On the Subscription Policy tab, click Create a Subscription Policy.

  4. On the Create Subscription Policy page, configure the parameters.

    • Basic Information: Enter a name for the subscription policy.

    • Alert Subscription:

      • Subscription Type: Select System events.

      • Subscription Scope:

        • Product: Select ENS.

        • Event Type: Select Abnormal.

        • Event Name: Select Disk:Stalled:Executed.

        • Event Level: Select Notification (Info).

        • Application group, Event Content, and Event Resources: Leave the parameters empty, which indicates that you subscribe to the Instance:StateChange system events of all ENS instances in all application groups that belong to the current account.

          Note

          For more information about the system events supported by ENS, see ENS system events.

    • Combined noise reduction: Use the default settings.

    • Notification: Create a notification configuration. Use the default notification methods for Custom notification method.

      When you create a notification configuration, enter a notification configuration name, set the Notification settings parameter to Set the notification group directly, select an alert contact group from the Contact Group drop-down list, and then click OK.

      Note

      For more information about how to create a notification configuration, see the Create a notification configuration policy section in the "Manage notification configurations" topic.

      CloudMonitor automatically sends alert notifications based on the notification methods specified for the alert contacts in the specified alert contact group. For example, if you specify a mobile phone number and an email address for an alert contact and use the default notification method for Custom notification method, the alert contact receives only alert phone calls, text messages, and emails.

    • Push and Integration: Leave this section empty.

      Note

      For information about how to create a push channel, see Create a push channel.

Debug event subscriptions

After you subscribe to system event notifications, you can use the debugging feature to check whether notifications can be sent to Message Queue, SLS, Function Compute, and Webhook services as expected.

  1. On the Subscription Policy tab, click Debug event subscription.

  2. In the Create event debugging panel, set the Products parameter to Edge Node Service and the Name parameter to Disk:Stalled:Executed.

    CloudMonitor automatically generates debugging content in the JSON format.

    Sample JSON content for the Instance:StateChange event

    {
        "product": "ENS",
        "resourceId": " acs:ens:cn-xian-telecom:1153803490297601:instance/<resource-id>",
        "level": "CRITICAL",
        "instanceName": "instanceName",
        "regionId": "cn-hangzhou",
        "name": "Disk:Stalled:Executed",
        "content": {
            "reason": "pg_io_hang",
            "errorTime": "2019-04-19 16:48:12",
            "resumeTime": "2019-04-19 16:52:01",
            "disk": [
                "disk1",
                "disk2"
            ],
            "internetIP": "117.34.20.**",
            "instanceId": "i-5glc2r7u8up69tkmd7w3k9***",
            "level": "CRITICAL",
            "regionId": "cn-xian-telecom",
            "regionName": "China Telecom (Xi'an)",
            "eventName": "Disk:Stalled:Executed",
            "status": "Executed",
            "timestamp": 1555663921000
        },
        "status": "Executed"
    }
  3. Click OK.

    The Operation successful message appears. CloudMonitor automatically sends a test alert notification to the alert contacts based on the notification methods specified in the subscription policy.