Grafana, Keycloak
Prometheus Install
yechan93
2023. 11. 11. 17:50
환경구성
EKS 1.28 + ebs csidriver Add-on
Prometheus v2.47.2
작업내용
- helm repo add
- Git clone
- prometheus 경로에서 values.yaml 수정
- Chart.yaml 수정
- Chart.yaml 수정한 내용을 바탕으로 의존성 업데이트
- Prometheus Install
- 확인하기
상세 작업 내용
1. helm repo add
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm repo list
2. Git clone
git clone https://github.com/prometheus-community/helm-charts
3. prometheus 경로에서 values.yaml 수정
- 652 service type 변경 NodePort
- 1090 alertmanager false 로 변경
- 1226 prometheus-pushgateway false 로 변경
4. Chart.yaml 수정
- Chart 에서 사용할 dependencies 만 남기고 제외
- kube-state-metrics 는 EKS 의 Pod 의 데이터를 수집할 수 있다(cAdvisor 데이터도 포함)
- node-exporter 는 EKS 의 Node 의 데이터를 수집할 수 있다
- alertmanager 는 prometheus 에서 알람을 지정할 수 있지만 이번에는 사용하지 않음
- pushgateway 는 특정한 경우에만 사용한다고 공식문서에 나와 있는데 어떤기능인지 몰라 사용하지 않음
5. Chart.yaml 수정한 내용을 바탕으로 의존성 업데이트
helm dependency update
6. Prometheus Install
- helm 에서 따로 수정을 하지 않을경우 데이터 저장은 EBS CSI Driver 를 사용하여 EBS 에 저장됨
- 다른 옵션을 사용해야 하는 경우 추가로 설정 해주면됨(EFS 등)
helm install prometheus -f values.yaml ./
7. 확인 하기
- 생성된 LB 의 주소로 접속하면 Prometheus 화면을 확인 할 수 있다
kubectl get po
kubectl get svc
※참고자료
Prometheus Install : https://tistory-cloud.tistory.com/59
Prometheus Operater : https://tistory-cloud.tistory.com/60
Prometheus Thanos 연동 : https://tistory-cloud.tistory.com/61
Prometheus Image
https://quay.io/repository/prometheus/prometheus?tab=tags&tag=latest
Quay
quay.io