본문 바로가기

AWS(Amazon Web Service)/Prom+Grafana+cAdvisor5

Prometheus Architecture Prometheus 와 Grafana 란? Prometheus : 오픈 소스 기반의 모니터링 시스템으로 Alerting을 지원. Grafana : 오픈소스 매트릭 데이터 시각화 도구로 메트릭(Metric) 분석 플랫폼 보통, Prometheus 와 Grafana 가 같이 언급되는데 Prometheus 가 대상 시스템(Target System) 들에서 필요한 모니터링 지표를 수집하여 저장하고 Grafana 에서 이를 시각화(Visualization)한다. Prometheus 오픈 소스 기반의 모니터링 시스템으로 각종 모니터링 지표를 수집하여 저장하고 검색할 수 있는 시스템이다. 현재 Kubernetes 상에서 가장 많이 사용하는 오픈 소스 기반 모니터링 시스템이며, 간단한 텍스트 형식으로 메트릭(Metri.. 2022. 10. 30.
[Prometheus/Shell script] node exporter 와 mysqld exporter 설치 Docker 에서 node exporter 를 실행하는 것은 권장하지 않는다는 글을 본 적이 있다. Docker의 경우, 머신의 내부동작과 컨테이너를 격리시키려고 하기 때문에 노드 익스포터에서 내부 동작 결과가 작동하지 않을 수 있다는 이유 였다. 그래서 직접 node exporter 와 mysqld exporter 를 설치하는 과정을 Shell script로 작성해보았다. [ 사전 준비 ] - mysql 설치 node exporter #!/bin/bash wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz tar -xvf node_exporter-0... 2022. 6. 23.
[AWS] Prometheus+Grafana+cAdvisor 설치 Prometheus+Grafana+cAdvisor Container 들을 Monitoring 하기 위해 각 인스턴스에 cAdvisor 를 추가 설치하여 Prometheus에서 Metric을 수집할 수 있도록 한다. node_exporter의 metric 수집용 prometheus와 cAdvisor의 metric 수집용 prometheus 두 개를 띄운다. 먼저 Grafana+Prometheus server에 디렉토리 생성 후, prometheus 설정 파일 2개를 만든다. 만든 설정 파일을 바탕으로 node_exporter와 cAdvisor 용으로 prometheus 컨테이너 2개를 각각 띄우고 Grafana를 올린다. /Prometheus/prometheus.yml mkdir /Prometheus cd.. 2021. 11. 19.
[AWS] Prometheus+Grafana 설치 (2) 앞에서 AWS EC2 인스턴스 2개에 대하여 각각 Prometheus, node-exporter 설치하였다. [AWS] Prometheus+Grafana 설치 (1) https://haengsin.tistory.com/34 [AWS] Prometheus+Grafana 설치 (2) 앞 장에서 AWS EC2 인스턴스 2개에 대하여 각각 Prometheus, node-exporter 설치 https://haengsin.tistory.com/category/AWS%28Amazon%20Web%20Service%29/Prometheus%2BGrafana 'AWS(Amazon Web Service)/Promet.. haengsin.tistory.com Grafana 설치 $ docker run -d --name=gr.. 2021. 11. 17.
[AWS] Prometheus+Grafana 설치 (1) Prometheus Server는 Expoter가 열어놓은 HTTP 엔드포인트에 접속해서 Metric을 수집한다. (Pull) Prometheus Server에 Grafana를 연동해서 대시보드 등의 시각화를 한다. 알림을 받을 규칙을 만들어서 Alert Manager로 보내면 Alert Manager가 규칙에 따라 알림을 보낸다. Prometheus란? . SoundCloud 사에서 만든 오픈소스 시스템 모니터링 및 경고 툴킷이다. Kubernetes 에서도 Prometheus를 사용하여 매트릭 수집 및 대시보드 구축하는 방식을 장려하고 있다. (Prometheus Architecture) Prometheus targets : Jobs/exporters 는 실제로 매트릭을 수집하는 프로세스이다. 이 e.. 2021. 11. 16.