모니터링(Grafana, Prometheus)
Grafana <-> Prometheus 구성도
babbeolicoding
2023. 4. 23. 18:05
Prometheus
- Grafana를 통한 시각화를 지원
- 모니터링할 수 있는 다양한 플러그인 지원
- Server 정보 수집 방법 : Window나 Linux에 Exporter를 설치하고 Prometheus.yml에 서버 정보를 설정해 주면 해당 서버들의 metrics을 Prometheus에서 확인 가능함.
- Kubernetes 정보 수집 방법 : pod로 prometheus-server service를 기동하고 해당 정보를 Prometheus.yml에 설정해 주면 k8s의 metrics을 Prometheus에서 확인 가능함
=> 정보를 수집하는 방법은 추후 자세하게 포스팅을 진행할 예정
Grafana
- Prometheus에서 수집한 Metrics을 화면으로 보여주는 역할을 한다.
- e-mail, telegram 등을 통해 일정 임계치를 넘어가거나 임계치 보다 낮아지면 noti를 할 수 있는 기능도 가능하다
그럼 Exporter, Prometheus, Grafana 설치 후 연동하는 방법에 대해서 알아보자.