YUMSERV
article thumbnail
Published 2022. 6. 19. 20:30
[Sentry] Sentry Self-hosted 설치 DEV
반응형

1. Sentry란

오류 추적기능, 모니터링 기능으로, 웹 프론트엔드와 백엔드에 필요한 부분을 확인할 수 있는 에러 트래킹 서비스입니다.다.

 

2. Sentry Self-hosted 버전 설치

https://github.com/getsentry/self-hosted
* DOCKER 버전 19.03.06 이상

* containerd.io 1.4.4 이하

* CPU : 4core 이상
* Memory 8G 이상

* 설치 환경 : CentOS7

 

2-1) Docker 설치

# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum install docker-ce-19.03.6 docker-ce-cli-v containerd.io-1.4.4 docker-compose-plugin

# curl -SsL "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
# chmod 755 /usr/bin/docker-compose

# systemctl start docker
# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

 

- Docker 버전 확인

# docker version
Client: Docker Engine - Community
Version: 20.10.16
API version: 1.41
Go version: go1.17.10
Git commit: aa7e414
Built: Thu May 12 09:19:45 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.16
Git commit: 369ce74a3c
Built: Thu Feb 13 01:28:07 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.18.0
GitCommit: fec3683

# docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019

 

2-2) sentry 설치

# mkdir /data/sentry-self-hosted
# cd /data/sentry-self-hosted/
# git clone https://github.com/getsentry/self-hosted.git .
# vi .env
SENTRY_EVENT_RETENTION_DAYS=180

# ./install.sh
...
Would you like to create a user account now? [Y/n]: y
Email: 계정Email
Password: 패스워드
Repeat for confirmation: 패스워드
Should this user have Super Admin role? (This grants them all permissions available) [y/N]: y

 

- 설치 완료 후 도커 시작 홈페이지 접속

docker compose up -d
http://IP주소:9000

 

 

- docker 프로세스 확인

# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4c1c184d42e nginx:1.21.6-alpine "/docker-entrypoint.…" About an hour ago Up About an hour 0.0.0.0:9000->80/tcp sentry-self-hosted-nginx-1
26f41c5f2efc getsentry/relay:nightly "/bin/bash /docker-e…" About an hour ago Up About an hour 3000/tcp sentry-self-hosted-relay-1
e4f92279fb19 sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-subscription-consumer-transactions-1
a2ad75d12059 sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-worker-1
311ca2976aa5 sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-post-process-forwarder-1
d1bff1b306de sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-subscription-consumer-events-1
47f3e41798ff sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour (healthy) sentry-self-hosted-web-1
f9173afaedcb sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-ingest-consumer-1
8f02031b34f1 sentry-self-hosted-local "/etc/sentry/entrypo…" About an hour ago Up About an hour sentry-self-hosted-cron-1
aa328b722bfc maxmindinc/geoipupdate:v4.7.1 "/usr/bin/geoipupdat…" About an hour ago Exited (1) About an hour ago sentry-self-hosted-geoipupdate-1
39f05d71f6b0 getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-consumer-1
418cf6fd1ed3 getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-api-1
e2a1eab7fb31 postgres:9.6 "/opt/sentry/postgre…" About an hour ago Up About an hour (healthy) 5432/tcp sentry-self-hosted-postgres-1
62c8c7ce42d1 getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-subscription-consumer-events-1
6545dd179f0c getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-sessions-consumer-1
1fc27ac69489 tianon/exim4 "docker-entrypoint.s…" About an hour ago Up About an hour 25/tcp sentry-self-hosted-smtp-1
fa4b5d4d0f79 getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-outcomes-consumer-1
80e627cb5936 getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-subscription-consumer-transactions-1
51e61acc1105 getsentry/symbolicator:nightly "/bin/bash /docker-e…" About an hour ago Up About an hour 3021/tcp sentry-self-hosted-symbolicator-1
ec843b83818e getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-transactions-consumer-1
8f133eac60eb getsentry/snuba:nightly "./docker_entrypoint…" About an hour ago Up About an hour 1218/tcp sentry-self-hosted-snuba-replacer-1
02d0297b8998 memcached:1.6.9-alpine "docker-entrypoint.s…" About an hour ago Up About an hour (healthy) 11211/tcp sentry-self-hosted-memcached-1
c1687f9b8737 confluentinc/cp-kafka:5.5.0 "/etc/confluent/dock…" About an hour ago Up About an hour (healthy) 9092/tcp sentry-self-hosted-kafka-1
a50f9506c519 confluentinc/cp-zookeeper:5.5.0 "/etc/confluent/dock…" About an hour ago Up About an hour (healthy) 2181/tcp, 2888/tcp, 3888/tcp sentry-self-hosted-zookeeper-1
1fe71254e937 yandex/clickhouse-server:20.3.9.70 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 8123/tcp, 9000/tcp, 9009/tcp sentry-self-hosted-clickhouse-1
9874396d5377 redis:6.2.4-alpine "docker-entrypoint.s…" About an hour ago Up About an hour (healthy) 6379/tcp sentry-self-hosted-redis-1

# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 873/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1105/master
tcp6 0 0 :::9000 :::* LISTEN 1935/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 873/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1105/master

 

- 커널 파라미터 수정

# cat /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.conf.all.forwarding=1

# sysctl -p

 

2-2) 홈페이지 접속

 

 

 

 

 

 

반응형
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!