Fully managed Flink allows you to configure alert rules for jobs that are running. If an alert rule is triggered when a job is running, the system sends you an alert to help you detect and handle exceptions at the earliest opportunity. This topic describes how to configure alert rules in the console of fully managed Flink.
Prerequisites
Application Real-Time Monitoring Service (ARMS) is activated. For more information, see Activate and upgrade ARMS.
Create a custom alert rule
Create an alert template
FAQ
- How do I add a webhook?
- Click Edit Contacts Group and Contacts.
- In the Edit Contact Group dialog box, click the Webhook tab and click Add Webhook.
- In the Add Webhook dialog box, configure the parameters. The following table describes the parameters.
Parameter Description Name Required. The name of the webhook that you want to add. URL Required. The webhook URL. Headers Optional. The request headers that store cookies and tokens. The format is key: value. Note Make sure that a space exists after the colon (:) between the key and the value.Params Optional. The request parameters that are in the key: value format. Note Make sure that a space exists after the colon (:) between the key and the value.Body Required. The request body that is used to store the POST request parameters and parameter data. You can use the $content placeholder in the request body. $content represents the actual alert message.
- Click OK.
- How do I create a DingTalk chatbot to send alerts?
- Click Edit Contacts Group and Contacts.
- On the Contact tab, click Add Contact.
- In the Add Contact dialog box, enter the webhook URL of the chatbot in the DingTalk Robot field.
You must create a DingTalk chatbot to obtain the webhook URL of the chatbot. For more information, see Add a custom DingTalk chatbot and obtain the webhook URL.Notice To ensure that you receive alerts from a DingTalk chatbot, select at least Custom Keywords in the Security Settings section of the Add Robot dialog box, and configure Alarm as a keyword.
- Click Submit.