1. 下载与 kibana 6.2.3 对应的 sentinl 6.2.3 版本
# wget https://github.com/sirensolutions/sentinl/releases/download/tag-6.2.3-3/sentinl-v6.2.3.zip
2. 安装 sentinl 6.2.3
# ./bin/kibana-plugin install file:///tmp/sentinl-v6.2.3.zip
Found previous install attempt. Deleting...
Attempting to transfer from file:///tmp/sentinl-v6.2.3.zip
Transferring 7824286 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
# ./bin/kibana-plugin list | grep sentinl
# /etc/init.d/kibana restart
kibana stopped.
kibana started
3. 查看 kibana 界面中的 sentinl
4. kibana 中配置 sentinl 发送邮件账号
# vim /etc/kibana/kibana.yml
sentinl:
settings:
email:
active: true
user: xxx@sina.com
password: xxx
host: smtp.sina.com
ssl: false
report:
active: true
5. 测试 “nginx 404 请求 5 分钟内大于 3 次” 就告警
新建 Watcher
General 配置
Input 配置
Condition 配置
告警邮件配置
保存配置好的结果
测试告警
没有匹配
有匹配
查看 Alarms
查看邮件
网友评论