Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be/#272 Prometheus에 Slack 알림 alertmanager 연동 #286

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

baekhangyeol
Copy link
Collaborator

🛠️ 변경사항

docker-compose.yml에 alertmanager 추가, prometheus에 link로 alertmanager 추가
alertmanager를 관리할 config.yml 생성

스크린샷 2023-11-07 오후 5 47 03 테스트사진

☝️ 유의사항

알림이 오는 상황

  1. 어떤 인스턴스가 1분 동안 다운되어 있을 때
  2. 시스템 메모리가 10% 미만으로 남았을 때
  3. 시스템이 메모리 압박 상태에 있을 때 (주요 페이지 결함의 비율이 높을 때)
  4. 디스크 공간이 10% 미만으로 남았을 때
  5. CPU 부하가 80%를 초과했을 때

👀 참고자료

https://velog.io/@king/slack-incoming-webhook

❗체크리스트

  • 하나의 메소드는 최소의 기능만 하도록 설정했나요?
  • 수정 가능하도록 유연하게 작성했나요?
  • 필요 없는 import문이나 setter 등을 삭제했나요?
  • 기존의 코드에 영향이 없는 것을 확인하였나요?

@baekhangyeol baekhangyeol self-assigned this Nov 7, 2023
@baekhangyeol baekhangyeol linked an issue Nov 7, 2023 that may be closed by this pull request
2 tasks
Copy link

github-actions bot commented Nov 7, 2023

Unit Test Results

85 tests  ±0   85 ✔️ ±0   4s ⏱️ -2s
17 suites ±0     0 💤 ±0 
17 files   ±0     0 ±0 

Results for commit 938ad29. ± Comparison against base commit 57317df.

@youKeon
Copy link
Collaborator

youKeon commented Nov 7, 2023

나중에 AWS CloudWatch 적용해도 좋을 거 같아요 수고하셨습니다!!

@baekhangyeol baekhangyeol merged commit 2327e10 into feature Nov 9, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Prometheus에 Slack 알림 alertmanager 연동
2 participants