Set Webhook Notification
This section describes how to set up Webhook notification.
Prerequisites
-
The KubeSphere platform requires the WizTelemetry Notification extension to be installed and enabled.
-
You need to obtain the access parameters for the Webhook in advance. For more information, please contact your Webhook administrator.
Steps
-
Log in to the KubeSphere web console.
-
Click the current username in the upper-right corner of the page, then select Notification Settings from the dropdown list.
-
On the Notification Settings page, under the Webhook tab, set the Webhook notification parameters, then click OK.
-
Server Settings
Parameter Description Webhook URL
The access URL for the Webhook.
Authentication Type
The authentication type for the Webhook.
-
No Authentication: Authentication is not required.
-
Bearer Token: Use a URL Bearer token for authentication. If you select this type, you need to further set the token used for authentication.
-
Basic Authentication: Use username and password for authentication. If you select this type, you need to further set the username and password used for authentication.
Skip TLS Verification (Insecure)
Whether to skip TLS verification when calling the Webhook.
-
-
Filter Conditions
KubeSphere sends notifications in the form of key-value pairs. When the key and value entered here match the key and value in the label settings of the rule group’s alerting rules, alerts meeting specific conditions can be sent through label filtering. Click Add to set multiple conditions.
Parameter Description Key
The key in the notification content. Click the dropdown list to select a preset key, or you can enter a custom key in the dropdown list.
Operator
The operator for the filter condition.
-
Contains: The value corresponding to the key contains a specific string.
-
Does Not Contain: The value corresponding to the key does not contain a specific string.
-
Exists: The specified key exists in the notification content.
-
Does Not Exist: The specified key does not exist in the notification content.
-
Regex Match: Filters notifications that meet the condition through a regular expression.
Value
The string that the value corresponding to the key must contain. Press Enter to set multiple strings; the condition is satisfied if the value corresponding to the key contains any one of these strings.
-
-
Click Send Test Message to confirm that the notification channel is working properly.
-
-
Click the Notifications Disabled switch at the top to enable Webhook notification.