Alarm

> Quick Start > Alarm

Overview

New alarm module, to pay attention to their own Topic alarm settings. No consumer information when Topic, more than the threshold, the alarm. At present, the alarm way through the message to the alarm, set as shown in the following figure:

Support IM

In addition to supporting email or webhook alerts, Kafka Eagle also supports im alerts, such as DingDing and WeChat.

Mail Or WebHook

First of all, it is necessary to configure alarm channels, select different alarm modes, and divide different alarm groups.

mail

It should be noted that Kafka Eagle alarm mail uri:

http://127.0.0.1:10086/email

Email or Webhook restful api server uri:

http://127.0.0.1:10086/email?address="xxx@gmail.com"&msg="alarm msg"

Api server uri java code:

@RestController
public class MailController {
    @RequestMapping(value="/email", method = RequestMethod.POST)
    public String sendPostMail(HttpServletRequest request) {
        // Send Alarm Message Interface
        System.out.println("[PUT] address: " + request.getParameter("address") + ",msg: " + request.getParameter("msg"));
        return "OK";
    }
}

Mail By ServerAddress

If you have the username and password of the mail server, you can use the following method to set the information about your mail server into the following JsonObject

{"host":"smtp.126.com","port":"465","sa":"ke","username":"ke@126.com","password":"*********","enable_ssl":true}
dingding

DingDing

dingding

WeChat

wechat