Network Intelligence Service (NIS) integrates with Cloud Monitor and allows you to set up event subscriptions. When a system event of a resource occurs or a monitoring metric meets an alert condition, CloudMonitor automatically sends the original alert notifications to the alert contacts. You can then merge and denoise the alert notifications and customize notification methods.
Background information
Event subscriptions let you perform the following actions:
Subscribe to system events or threshold-based events.
Merge alerts from system and threshold-based events to reduce noise. You can also use conditional noise reduction to filter alerts and prevent alert storms caused by a high volume of duplicate alerts.
After merging and noise reduction, Cloud Monitor sends valid alert notifications directly to alert contacts. If an alert is not resolved within a specified time, Cloud Monitor automatically escalates the alert by sending the notification to the next alert contact group.
Customize notification methods by defining notification levels and templates for different channels. You can also integrate and push all alert data directly to services such as Simple Message Queue (formerly MNS), Simple Log Service (SLS), Function Compute (FC), and webhooks.
Create an NIS subscription policy
This topic uses the NIS event problem-internetBandwidthOverlimit as an example to show you how to create an event subscription.
Log on to the NIS console.
-
In the left-side navigation pane, choose Event Center.
-
On the Event Center page, click Event Subscription.
On the Subscription Policy tab, click Create Subscription Policy.
-
On the Create Subscription Policy page, configure the subscription policy parameters. For a detailed description of the parameters, see Create a subscription policy in CloudMonitor.
-
Basic information: Enter a name and description for the subscription policy.
-
Alert Subscription: For Subscription Type, select System Events. In the Subscription Scope section, select Network Intelligence Service for Products, problem for Event Type, problem-internetBandwidthOverlimit for Event name, and Critical for Event Level. Keep the default settings for other parameters. This configuration subscribes you to all problem-internetBandwidthOverlimit events for all application groups within your account.
NoteFor a list of events that you can subscribe to in NIS, see Event reference.
Merge and Denoise: Use the default values.
Notification: Create a notification configuration. Use the default setting for Custom Notification Method.
When you create a notification configuration, enter a name, set Notification Settings to Directly Set Notification Group, select a Contact Group, and then click OK.
NoteFor more information about how to create a notification configuration, see Create a notification configuration policy.
The system automatically sends alert notifications based on the notification methods specified for the alert contacts in the alert contact group. For example, if an alert contact's profile includes a mobile number and email address and you use the default notification method for Custom Notification Method, the alert contact receives alerts only by phone call, text message, and email.
Push and Integration: No configuration is required.
NoteFor more information about how to create a push channel, see Create a push channel.
-
Click Submit.
-
Debug the event subscription.
On the Subscription Policy tab, click Test Event Subscription.
-
In the Create Event Debugging panel, select Network Intelligence Service for Products and problem-internetBandwidthOverlimit for Name.
The system automatically generates the debugging content in JSON format.
Click OK.
An operation is successful message is displayed. Cloud Monitor automatically sends a test alert notification to the alert contacts based on the notification method in the subscription policy.
Other operations
|
Actions |
Description |
|
View a subscription policy |
On the Event Subscription page, find the target subscription policy and click View in the Actions column. In the Subscription Policy Details panel, you can view the policy's basic information, event subscription details, Merge and Denoise configuration, and notification settings. |
|
Modify a subscription policy |
|
|
Delete a subscription policy |
|
|
Disable a subscription policy |
The Status of a new subscription policy is Enabled by default. You can disable a subscription policy to temporarily stop receiving a high volume of unnecessary alert notifications. While a policy is disabled, its alert contacts do not receive notifications.
|
|
Enable a subscription policy |
You can enable a subscription policy if its Status is Disabled. Enabling the policy automatically resumes alert notifications.
|
Related documents
You can also configure event subscriptions in the CloudMonitor console. For more information, see the following topics: