Push raw or denoised alert data to Simple Message Queue (SMQ), Simple Log Service, Function Compute, or a webhook.
Create a push channel
The following example creates a push channel that pushes alert data to Simple Log Service.
Prerequisites: Simple Log Service is activated with a project and Logstore created. Getting Started.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose Event Center > Event Subscription.
-
On the Event Subscription page, click the Push Channel tab.
-
On the Push Channel tab, click Create Push Channel.
-
In the Create Push Channel panel, enter a channel name, set Target type to Simple Log Service, and select the region, Project name, and Logstore.
Table 1. Parameters of a notification push channel
Parameter
Description
Channel name
The channel name. We recommend that you use a Chinese name.
Target type
The destination type. Valid values:
-
Simple Message Queue (SMQ): Pushes alerts to a specified SMQ topic or queue. Specify the topic or queue and its region.
-
Simple Log Service: Pushes alerts to a specified Logstore. Specify the region, Project name, and Logstore.
-
Function Compute: Pushes alerts to a specified function. Specify the region, service name, and function name.
-
webhook: Pushes alerts to a publicly accessible URL. Specify the request method, data format, address, custom header, and signature obfuscation string.
Notification Template
The notification template. The channel type must be Data.
-
-
Click OK.
-
View the pushed data in the specified Logstore.
Modify a push channel
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose Event Center > Event Subscription.
-
On the Event Subscription page, click the Push Channel tab.
-
On the Push Channel tab, find the channel that you want to modify and click Edit in the Actions column.
-
In the Modify Push Channel panel, update the parameters as needed.
-
Click OK.
Delete a push channel
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose Event Center > Event Subscription.
-
On the Event Subscription page, click the Push Channel tab.
-
On the Push Channel tab, find the channel that you want to delete and click Delete in the Actions column.
-
In the Confirm Deletion dialog box, click OK.