목록Grafana (3)
오늘도 한 뼘 더

# 배경 Grafana에서 모니터링 중 값이 일정 값을 넘어가거나 낮아지면 알림을 받고 싶다. # Grafana Alert 사용하기 출처 : Grafana 공식 문서(Overview) # Contanct points 생성하기 알림을 보내기 위한 수신 채널을 생성한다. Slack에서 webhook URL을 복사하여 작성하고 Slack Setting의 경우 메시지를 어떻게 보낼지에 따라 설정을 다르게 해서 작성한다. Notification settings에서 Disable resolved message를 선택하면 alert에 발송된 문제가 해결된 뒤에 메시지를 받지 않도록 설정하는데 문제가 해결되었는지 확인을 하기 위해서 이 부분은 선택을 하지 않았다. Test 버튼을 눌러서 성공하면 Slack에 다음과 같..

# 배경 Grafana를 도커로 올리는 과정에서 바로 Exit가 되면서 진행되지 않았다. docker logs 명령어를 통해서 확인해 본 결과 다음과 같은 에러 메시지를 확인할 수 있었다. You may have issues with file permissions, \ more information here: \ http://docs.grafana.org/installation/docker/#migrate-to-v51-or-latermkdir: \ can't create directory '/var/lib/grafana/plugins': Permission denied # 문제 해당 파일에 접근할 수 없는 권한 문제로 사용자를 변경하거나 권한을 추가하하면 된다고 한다. # 해결 방법 1. docker-c..

# 배경 서비스를 Elastic Beanstalk에서 EKS로 변경을 하면서 모니터링을 위해 Prometheus와 Grafana를 설치한다 # docker-compose.yaml 작성 version: '3.7' services: # 설치하려는 컨테이너 목록 prometheus: network_mode: bridge image: prom/prometheus:latest container_name: prometheus user: root command: - '--web.enable-lifecycle' - '--config.file=/etc/prometheus/prometheus.yaml' volumes: - /monitor/prometheus/config:/etc/prometheus/ - /monitor/p..