Doris Cluster Alerts
Cluster Alert Items
In the alert module, you can configure alert policies. Select "Create New Alert Policy" to create alert items based on your business needs. As shown in the image below, an alert policy for FE has been created; if an FE goes down, an alert notification will be sent.
Configure Notification Delivery
Alert rules can be configured to send notifications via in-site notifications, email, IM tools, or Webhook.
When using IM tools like WeChat Work, DingTalk, or Feishu, ensure connectivity to the public network.
In-site Notifications
-
Select In-site Alert
In-site notifications will push alert information within the alert notifications. You need to select the in-site push users.
-
View In-site Alerts
When an alert occurs, you can view the alert information in the notification menu at the bottom left.
-
Configure Email Alerts
In the user menu, select "Service Configuration" to enter the configuration menu. Configure the email alert information.
-
Select Email Notification
Select "Email Notification" as the method and fill in the email addresses of the users who should receive alerts.
WeChat Work
-
Create a WeChat Work Group and Add a Bot
As shown in the image below, add a WeChat Work bot:
-
Copy Bot Webhook
-
Add Bot Webhook in Manager
DingTalk
-
Create a DingTalk Group and Add a Group Bot
As shown in the image below, create a DingTalk group bot in the group settings:
-
Select "Add Webhook Type Bot"
-
Add Keywords for the Bot
DingTalk bots require both "Alert" and "告警" (alarm/alert in Chinese) keywords to be added, otherwise, alerts will not be received.
-
Copy DingTalk Bot Webhook
-
Configure DingTalk Bot Webhook for Manager
Feishu
-
Create a Feishu Group and Add a Bot
In the Feishu group, select "Custom Bot":
-
Copy Webhook Address
-
Configure Feishu Bot Webhook for Manager Alerts
Webhook
The Webhook method allows users to define a custom API and provide its full URL to Manager. Manager then sends alerts to this API, and the user's API can perform any other processing upon receiving the alert.
The body content sent by Manager to the user's API is as follows:
{
"alertContent":"[cluster_guide]testrule1\nTime: 2023-12-15 17:32:56\nCluster: cluster_guide\nRule Name: testrule1\nAlert Content: FE Alive less than 50.0\n",
"alertInfo":"FE Alive less than 50.0",
"alertName":"testrule1",
"cluster":"cluster_guide",
"time":"2023-12-15 17:32:56"
}