sentry 实时错误追踪系统部署


1、安装docker

参照 https://www.65535.fun/article/2020/4/14/48.html

2、sentry 安装

git clone https://github.com/getsentry/onpremise.git
cd onpremise
docker-compose build
./install.sh  # 这个安装过程要很久,最后会让你输入邮箱作为管理员账号以及密码

4、启动容器

docker-compose up -d
# 查看容器
docker-compose ps

5、浏览器访问

http://ip:9000

FAQ:

[root@gaofang onpremise]# ./install.sh Checking minimum requirements... FAIL: The CPU your machine is running on does not support the SSE 4.2 instruction set, which is required for one of the services Sentry uses (Clickhouse). See https://git.io/JvLDt for more info. ClickHouse可以在具有x86_64,AArch64或PowerPC64LE CPU体系结构的任何Linux,FreeBSD或Mac OS X上运行。

官方的预编译二进制文件通常是针对x86_64编译的,并利用SSE 4.2指令集,因此,除非另有说明,否则支持它的CPU使用情况将成为额外的系统要求。这是检查当前CPU是否支持SSE 4.2的命令:

grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"

要在不支持SSE 4.2或具有AArch64或PowerPC64LE体系结构的处理器上运行ClickHouse,您应该通过适当的配置调整从源代码中构建ClickHouse

sudo yum install yum-utils
sudo rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
systemctl start clickhouse-server

然后重新执行./install.sh 待续,未解决……