Management of Notification
TOC
Feature Overview
With notifications, you can integrate the platform's monitoring and alerting features to promptly send pre-warning information to notification recipients, reminding relevant personnel to take necessary measures to resolve issues or avoid failures.
Key Features
- Notification Server: The notification server provides services for sending notification messages to notification contact groups on the platform, such as an email server.
- Notification Contact Group: A notification contact group is a set of notification recipients with similar logical characteristics, which can reduce your maintenance burden by allowing a categorization of entities that receive notification messages.
- Notification Template: A notification template is a standardized structure composed of custom content, content variables, and content format parameters. It is used to standardize the content and format of alert notification messages for notification strategies. For example, customizing the subject and content of email notifications.
- Notification rule: A notification rule is a collection of rules defining how to send notification messages to specific contacts. It is essential to use a notification rule for scenarios such as alerts, inspections, and login authentication that require notifying external services.
Notification Server
The notification server provides services for sending notification messages to recipients on the platform. The platform currently supports the following notification servers:
- Corporate Communication Tool Server: Supports integration with WeChat Work, DingTalk, and Feishu built-in applications for sending notifications to individuals.
- Email Server: Sends notifications via email using an email server.
- Webhook Type Server: Supports integration with corporate WeChat group bots, DingTalk group bots, Feishu group bots, or sending WebHooks to your designated server.
Only one corporate communication tool server can be added.
Corporate Communication Tool Server
WeChat Work
-
Configure the notification server parameters as per the example below. Once parameters are filled in, switch to the
globalcluster in Cluster Management > Resource Management and create the resource object. -
After the creation, you need to update the user's WeChat Work ID in the platform's User Role Management > User Management or in the user's Personal Information to ensure the user can receive messages normally.
DingTalk
-
Configure the notification server parameters as per the example below. Once parameters are filled in, switch to the
globalcluster in Cluster Management > Resource Management and create the resource object. -
After the creation, you need to update the user's DingTalk ID in the platform's User Role Management > User Management or in the user's Personal Information to ensure the user can receive messages normally.
Feishu
-
Configure the notification server parameters as per the example below. Once parameters are filled in, switch to the
globalcluster in Cluster Management > Resource Management and create the resource object. -
After the creation, you need to update the user's Feishu ID in the platform's User Role Management > User Management or in the user's Personal Information to ensure the user can receive messages normally.
Email Server
-
In the left navigation bar, click Platform Settings > Notification Server.
-
Click Configure Now.
-
Refer to the following instructions to configure the relevant parameters.
-
Click OK.
Webhook Type Server
Supports integration with corporate WeChat group bots, DingTalk group bots, Feishu group bots, or sending HTTP requests to your designated Webhook server.
Corporate WeChat Group Bot
-
In the left navigation bar, click Cluster Management > Cluster.
-
Click the operation button next to the
globalcluster > CLI Tool. -
Execute the following command on the master node of the
globalcluster:Tip:
dHJ1ZQo=is the base64 encoded value of true; to disable, replacedHJ1ZQo=withZmFsc2UK, which is the base64 encoded value of false.
DingTalk Group Bot
-
In the left navigation bar, click Cluster Management > Cluster.
-
Click the operation button next to the
globalcluster > CLI Tool. -
Execute the following command on the master node of the
globalcluster:Tip:
dHJ1ZQo=is the base64 encoded value of true; to disable, replacedHJ1ZQo=withZmFsc2UK, which is the base64 encoded value of false.
Feishu Group Bot
-
In the left navigation bar, click Cluster Management > Cluster.
-
Click the operation button next to the
globalcluster > CLI Tool. -
Execute the following command on the master node of the
globalcluster:Tip:
dHJ1ZQo=is the base64 encoded value of true; to disable, replacedHJ1ZQo=withZmFsc2UK, which is the base64 encoded value of false.
Webhook Server
-
In the left navigation bar, click Cluster Management > Cluster.
-
Click the operation button next to the
globalcluster > CLI Tool. -
Execute the following command on the master node of the
globalcluster:Tip:
dHJ1ZQo=is the base64 encoded value of true; to disable, replacedHJ1ZQo=withZmFsc2UK, which is the base64 encoded value of false.
Notification Contact Group
A notification contact group is a set of notification recipients with similar logical characteristics. For example, you can set an operations and maintenance team as a notification contact group for easy selection and management when configuring notification strategies.
- The platform supports various notification servers, and the corresponding configuration options for notification types will be displayed based on the notification server configuration.
- If you need to use a Webhook type server as a notification recipient, you must configure the relevant URL in the notification contact group.
-
In the left navigation bar, click Operations Center > Notifications.
-
Switch to the Notification Contact Group tab.
-
Click Create Notification Contact Group and configure the relevant parameters as per the instructions below.
-
Click Add.
Notification Template
A notification template is a standardized structure composed of custom content, content variables, and content format parameters. It is used to standardize the content and format of alert notification messages for notification strategies.
Platform administrators or operations personnel can set notification templates to customize the content and format of notification messages based on different alert notification methods, helping users quickly get critical alert information and improve operational efficiency.
The platform supports various notification servers, and the corresponding notification type templates will be displayed according to the notification server configuration. If no notification server is configured, the corresponding notification templates will not be displayed by default.
Create Notification Template
-
In the left navigation bar, click Operations Center > Notifications.
-
Switch to the Notification Template tab.
-
Click Create Notification Template.
-
In the Basic Information section, configure the following parameters.
-
In the Template Configuration section, reference different template types to configure variables and content formatting parameters.
- The content of the template can only consist of variables, variable display names, and special formatting markup language supported by the platform. Variables and other elements can be freely combined as long as they comply with the syntax rules.
- Only variables supported by the platform can be used in the template. You can modify variable display names and content formats, but you cannot modify the variable itself. Refer to Reference Variables, and Special Formatting Markup Language in Emails.
- The platform provides default notification template content for various notification types based on actual operational scenarios, which can meet most notification message setting needs. If there are no special requirements, you may directly use the default template content.
- Click Create.
Reference Variables
Variables are the keys of labels or annotations in notification messages (NotificationMessage), formatted as {{.labelKey}}. To facilitate users in quickly obtaining key information, custom display names can be assigned to variables; for example: Alert Level: {{ .externalLabels.severity }}.
When a notification rule sends notification messages to users based on a notification template, the variables in the template will reference the corresponding label values in the notification message (actual monitoring data). Ultimately, monitoring data will be sent to users in a standardized content format.
The platform provides the following basic variables by default:
Special Formatting Markup Language in Emails
In email notifications, common HTML format tags and their instructions are referenced in the table below:
Notification rule
A notification rule is a collection of rules defining how to send notification messages to specific contacts. It is essential to use notification strategies for scenarios requiring notification to external services, such as alerts, inspections, and login authentication.
The platform supports various notification servers, and the notification modes corresponding to notification types will be displayed based on the notification server configuration. If no notification server is configured, the corresponding notification modes will not be displayed by default.
Prerequisites
To use the Corporate Communication Tool Server to notify contacts, users must first modify their contact information in Personal Information by entering their WeChat Work ID.
Operation Procedures
-
In the left navigation bar, click Operations Center > Notifications.
-
Click Create Notification rule and configure the relevant parameters as per the following instructions.
-
Click Create.
Set Notification Rule for Projects
The platform's notification strategies, notification templates, and notification contact groups are tenant-isolated. As a project administrator, you will not be able to view or use notification strategies, notification templates, or notification contact groups configured by other projects or platform administrators. Therefore, you need to refer to this document to configure suitable notification strategies for your project.
Prerequisites
-
You have contacted the platform administrator to complete the notification server setup.
-
If you need to notify through corporate communication tools, you also need to ensure that the contacts to be notified have correctly configured their communication tool IDs in Personal Information.
Operation Procedures
-
In the Project Management view, click Project Name.
-
In the left navigation bar, click Notifications.
-
Switch to the Notification Contact Group tab, refer to Notification Contact Group to create a notification contact group.
If you do not need to manage notification contacts through a notification contact group or do not need to notify a webhook type notification server, you can skip this step.
-
Switch to the Notification Template tab, refer to Notification Template to create a notification template.
-
Switch to the Notification rule tab, refer to Notification rule to create a notification rule.