Create Silence Policies
This section describes how to create a silence policy.
Prerequisites
You should have the Platform Settings Management permission on the KubeSphere platform. For more information, refer to "Platform Roles".
WhizardTelemetry Notification should have been installed and enabled.
Steps
Log in to the KubeSphere web console with a user who has the Platform Settings Management permission.
Click in the upper-right corner of the KubeSphere web console to enter the Platform Settings page.
Click Notification Management > Notification Settings in the left navigation pane.
Click Create on the page.
On the Basic Information tab, set the basic information for the silence policy, and 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, and can be up to 63 characters long.
Alias
The alias of the silence policy. Different silence policies can have the same alias. The alias can only contain Chinese characters, letters, numbers, and hyphens (-), cannot start or end with a hyphen (-), and can be up to 63 characters long.
Description
The description of the silence policy. The description can contain any characters and can be up to 256 characters long.
On the Silence Conditions tab, select Silent for All Notifications or Custom Silence Conditions as needed and set the relevant parameters, and then click Next.
Silent for All Notifications
Set the silence policy to apply to all notifications.
Custom Silence Conditions
Set the silence policy to apply only to notifications that meet the specified conditions. Click Add to set the conditions that the notification needs to meet.
Parameter Description Key
The key in the notification content. Click the dropdown list to select a preset key, or input 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 specific key exists in the notification content.
Does Not Exist: The specific key does not exist in the notification content.
Regex Match: Filter notifications that meet the conditions through a regular expression.
Values
The value corresponding to the key must include the specified string. Press Enter to set multiple strings. If the value corresponding to the key contains any of these strings, the condition is met.
On the Silence Time tab, select the silence time type and set the relevant parameters, and then click Create.
Parameter Description Silence Continuously
Notifications that meet the silence conditions are silenced at all times.
Silence During Time Range
Notifications that meet the silence conditions are silenced during the specified time range. You need to select the start and end times for the silence.
Silence Periodically
Notifications that meet the silence conditions are silenced daily, weekly, or monthly during 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.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.