Create a Silence Policy
This section describes how to create a silence policy.
Prerequisites
-
You need to have the platform-admin role in the KubeSphere platform. For more information, see Users and Platform Roles.
-
The WizTelemetry Notification extension needs to be installed and enabled on the KubeSphere platform.
Steps
-
Log in to the KubeSphere web console with a user who has the platform-admin role.
-
In the upper right corner of the page, click the
icon and select WizTelemetry Observability Platform.
-
Click Notification > Notification Settings in the left navigation pane.
-
Click Create on the page.
-
On the Basic Information tab, configure the basic information for the silence policy, then click Next.
Parameter Description Name
The name of the silence policy. The name can only contain lowercase letters, numbers, and hyphens (-), must start with a lowercase letter and end with a lowercase letter or number, with a maximum length of 63 characters.
Alias
The alias of the silence policy. Different silence policies can have the same alias.
Description
The description of the silence policy. The description can contain any characters and has a maximum length of 256 characters.
-
On the Silence Conditions tab, select Silence All Notifications or Custom Silence Conditions as needed and configure the relevant parameters, then click Next.
-
Mute All Notifications
Set the mute policy to apply to all notifications.
-
Custom Mute Conditions
Set the mute policy to apply only to notifications that meet specified conditions. Click Add to set the conditions that notifications must satisfy.
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.
-
-
-
On the Silence Time tab, select the silence time type and configure the relevant parameters, then click Create.
Parameter Description Continuous Silence
Notifications that meet the silence condition are silenced at all times.
Silence within a specific time range
Notifications that meet the silence condition are silenced within the specified time range. You need to select the start time and end time for the silence.
Periodic Silence
Notifications that meet the silence condition are silenced daily, weekly, or monthly within the specified time range. You need to select the date, start time, and end time for the silence.
After the silence policy is created, it will be displayed in the silence policy list.