open-falcon的邮件报警
mail-provider提供http郵件服務,和郵件服務器打通
falcon-sender 負責收集falcon的郵件,然后通過mail-provider發送出去
?
mail-provider
把smtp封裝為一個簡單http接口,配置到sender中用來發送報警郵件
?
falcon-sender
alarm處理報警event可能會產生報警短信或者報警郵件,alarm不負責發送,只是把報警郵件、短信寫入redis隊列,sender負責讀取并發 送。
各個公司有自己的短信通道,自己的郵件發送方式,sender如何調用各個公司自己的組件呢?那只能制定規范了,sender的配置文件 cfg.json中配置了api:sms和api:mail,即兩個http接口,這是需要各個公司提供的。
當要發送短信的時候,sender就會調用api:sms中配置的http接口,post方式,參數是:
- tos:用逗號分隔的多個手機號
- content:短信內容
當要發送郵件的時候,sender就會調用api:mail中配置的http接口,post方式,參數是:
- tos:用逗號分隔的多個郵箱地址
- content:郵件正文
- subject:郵件標題
?
參考:
1、https://blog.csdn.net/vbaspdelphi/article/details/73331111
2、https://github.com/open-falcon/mail-provider
3、https://github.com/open-falcon-archive/sender
4、http://www.cnblogs.com/tonglin0325/p/8984234.html
5、http://book.open-falcon.org/zh_0_2/distributed_install/mail-sms.html
6、https://www.jianshu.com/p/d89160b2c54b
7、https://github.com/niean/mailsender
總結
以上是生活随笔為你收集整理的open-falcon的邮件报警的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一行代码,保障分布式事务一致性—GTS:
- 下一篇: 基于POI的读写Excel文件的工具类