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.git

首先在pinpoint-web環境變量文件裏開啓BATCH_ENABLE

激活BATCHgithub

[root@VM_8_77_centos pinpoint-docker]# grep BATCH_ENABLE .env
BATCH_ENABLE=true

其次設置好發郵件帳號信息

按照實際狀況填寫web

[root@VM_8_77_centos pinpoint-docker]# grep MAIL .env
MAIL_HOST=stmp.test.com
MAIL_PORT=25
MAIL_USERNAME=user
MAIL_PASSWORD=pass
MAIL_PROPERTIES_MAIL_TRANSPORT_PROTOCOL=smtp
MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
MAIL_PROPERTIES_MAIL_SMTP_PORT=25
MAIL_PROPERTIES_MAIL_SMTP_FROM=test@example.com
MAIL_PROPERTIES_MAIL_STARTTLS_ENABLE=false
MAIL_PROPERTIES_MAIL_STARTTLS_REQUIRED=false
MAIL_PROPERTIES_MAIL_DEBUG=false

從新生成pinpoint-web容器

[root@VM_8_77_centos pinpoint-docker]# docker-compose kill pinpoint-web
[root@VM_8_77_centos pinpoint-docker]# docker-compose rm pinpoint-web
[root@VM_8_77_centos pinpoint-docker]# docker-compose up -d

參考官網配置報警策略

https://github.com/naver/pinpoint/blob/master/doc/alarm.md
相關文章
相關標籤/搜索