1.其他环境下的配置
http_post_url: "http://公网ip:8189/alert/kibana"
http_post_static_payload:
subject: xxxxxxx告警:<a href="http://xxx">kibana地址</a>
message: xxxxxxx告警,请注意查看
2.公网IP,NGINX上的配置如下
下面就是上述说到公网ip的机器上的nginx配置。
stream {
upstream es_alert {
server 10.21.10.17:8088; #内网
}
server {
listen 8189;
proxy_pass es_alert;
}
}