K8S Application Notes - Deployment of Dolphinscheduler and Simple Application (2) Alarm Notification

1. Objectives of this chapter

  • In the demonstrated Dolphinscheduleralarm notification function, SQLthe result set returned by the task component query is specified as the email notification content (supports three templates: table, attachment, or table attachment).

2. Preconditions

3. Prepare the mailbox

To use DolphinSchedulerthe email alarm notification function of , you need to prepare an email account and enable SMTPthe service.

This article takes QQthe mailbox as an example to introduce the opening steps and configuration

3.1 Open SMTP service

insert image description here

Drag the progress bar to find the content shown in the figure below at the bottom of the page, and start POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务any service.

3.2 Obtain an authorization code

Follow the instructions to bind the mobile phone or send verification, and finally get the following authorization code:

insert image description here

Four, Dolphinscheduler configuration

4.1 Create an alarm instance

Switch to administrator user login, in Security Center - Alarm Instance Management - Create Alarm Instance.

insert image description here

Notes (take QQemail as an example):

  • SMTP端口:587
  • SMTP服务器:smtp.qq.com

4.2 Configure alarm group

In Security Center - Alarm Group Management - create/modify alarm instances.

Edit the alarm group name, select an alarm group instance, and add an alarm group description.

insert image description here

4.3 SQL task component configuration

Use the content of the previous chapter: Deploying Dolphinscheduler and simple applications based on the K8S environmentSQL to modify the task components in the process definition :

insert image description here

4.4 Running effect

insert image description here

Guess you like

Origin blog.csdn.net/ctwy291314/article/details/132298674