Prometheus와 AlertManager는 각각 설치가 필요하며, 테스트용 yml 설정 파일은 document 폴더에 포함.
- Slack incoming-webhook api url을 발급받아서, alertmanager.yml에 입력
- AlertManager 서버 실행
- Prometheus 서버 실행
- first_rules.yml에 작성한 rule 이벤트를 직접 발생시킴.
- InstanceDown: 애플리케이션 종료
- HighCPU: /test/cpu 여러번 호출
- HighHeap: /test/heap 여러번 호출
- 알람 발송(Slack 채널에 알람 메시지 왔는지 확인)
설정 파일과 함께 서버 실행
./prometheus.exe --config.file=prometheus.yml설정 파일과 함께 서버 실행
./alertmanager.exe --config.file=alertmanager.yml

