docker-compose部署pinpoint开启email报警功能

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker-compose部署pinpoint开启email报警功能相关的知识,希望对你有一定的参考价值。

做事前认真阅读下Readme文档,磨刀不误砍柴工

配置发邮件注意事项

To send email alerts, you must make BATCH_ENABLE=true and change the other mail-related environment variables (MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PROPERTIES_MAIL_SMTP_FROM, …) to the Pinpoint-Web server in .env file.

首先在pinpoint-web环境变量文件里开启BATCH_ENABLE

激活BATCH

[[email protected]_8_77_centos pinpoint-docker]# grep BATCH_ENABLE .env
BATCH_ENABLE=true

其次设置好发邮件账号信息

按照实际情况填写

[[email protected]_8_77_centos pinpoint-docker]# grep MAIL .env
MAIL_HOST=stmp.test.com
MAIL_PORT=123
MAIL_USERNAME=user
MAIL_PASSWORD=pass
MAIL_PROPERTIES_MAIL_TRANSPORT_PROTOCOL=smtp
MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
MAIL_PROPERTIES_MAIL_SMTP_PORT=587
[email protected]
MAIL_PROPERTIES_MAIL_STARTTLS_ENABLE=true
MAIL_PROPERTIES_MAIL_STARTTLS_REQUIRED=true
MAIL_PROPERTIES_MAIL_DEBUG=false

重新生成pinpoint-web容器

[[email protected]_8_77_centos pinpoint-docker]# docker-compose kill pinpoint-web
[[email protected]_8_77_centos pinpoint-docker]# docker-compose rm pinpoint-web
[[email protected]_8_77_centos pinpoint-docker]# docker-compose up -d

参考官网配置报警策略

https://github.com/naver/pinpoint/blob/master/doc/alarm.md

以上是关于docker-compose部署pinpoint开启email报警功能的主要内容,如果未能解决你的问题,请参考以下文章

PinPoint安装部署

APM链路监控:pinpoint安装部署实战详细手册

APM链路监控:pinpoint安装部署实战详细手册

全链路监控pinpoint安装部署

pinpoint 安装部署

分布式-技术专区- Pinpoint部署手册