惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 【当耐特】
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
美团技术团队
雷峰网
雷峰网
小众软件
小众软件
G
Google Developers Blog
GbyAI
GbyAI
Jina AI
Jina AI
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
F
Fortinet All Blogs
Vercel News
Vercel News

MadLife

算法部署从docker到K8s 聊一聊:Prometheus监控系统 聊一聊:AI时代的前夜 Web服务打包exe 聊一聊:我眼中的数据中台 内网ubuntu环境下离线部署K8s 聊一聊:FaaS 在大规模网络爬虫的实践 聊一聊:Golang 使用sync.Pool 降低GC压力 聊一聊:Python和Golang的垃圾回收 聊聊数据库的那些索引 源码阅读——robfig/cron GitHub Actions+Serverless搭建博客 聊聊 MongoDB 聊一聊:敏捷开发 聊一聊:常见的分布式锁 2021书单 MongoDB——TTL索引 S3协议入门 使用 Go 客户端控制 Kubernetes
sentry部署
Yance Huang · 2020-12-26 · via MadLife

Sentry 是一个日志收集和统计平台, 由客户端和服务端组成,目前支持大部分主流的编程语言,并提供 SDK,当程序出现异常就向服务端发送消息,服务端将消息记录到数据库中并提供一个 Web 端显示。

rhz878.png

准备工作

前置条件

  • Docker 19.03.6+
  • Compose 1.24.1+

硬件最低要求:

  • 2G+内存

部署流程

拉取源码

做完了准备工作,就可以开始搭建 sentry 了。

从 GitHub 上面获取最新的 sentry

1
git clone https://github.com/getsentry/onpremise.git

自定义配置

个性化配置:

  • config.yml
  • sentry.conf.py
  • .env w/ environment variables
  • sentry.requirements.example.txt

预先添加一个企业微信的插件,在sentry.requirements.example.txt写入:

1
sentry-wxwork

邮件相关配置:

1
2
3
4
5
6
7
8
9
10
11
12
###############
# Mail Server #
###############

mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'smtp.qq.com'
mail.port: 25
mail.username: '1415940604@qq.com'
mail.password: 'XXXXXXXXXXXX'
# mail.use-tls: fals/e
# The email address to send on behalf of
mail.from: '1415940604@qq.com'

启动

1
2
./install.sh
docker-compose up -d

访问

127.0.0.1:9000

rhxNsx.png