- EKS - Grafana2024년 12월 24일
- wngnl05
- 작성자
- 2024.12.24.오후02:52
Grafana를 설정하기 전에
더보기AWS EKS Console에 접속하여 "추가기능"에서 EBS CSI Driver를 추가해줘야 합니다
EBS CSI Driver를 추가하면 이런 JSON형태가 뜨는데
<OIDC>:sub 뒤에 "system:serviceaccount:kube-system:ebs-csi-controller-sa"를 추가한뒤 저장해주세요
더보기Eks Cluster에서 사용하는 모든 퍼블릭 서브넷에 태그를 추가해줍니다.
kubernetes.io/role/elb
Eks Cluster에서 사용하는 모든 프라이빗 서브넷에 태그를 추가해줍니다.
kubernetes.io/role/internal-elb
Helm으로 Grafana를 설치해줍니다
helm repo add grafana https://grafana.github.io/helm-charts
Grafana를 삭제해줍니다
helm uninstall prometheus prometheus-community/prometheus -n prometheus
Create Grafana.yml
cat <<EOF >> grafana.yml datasources: datasources.yaml: apiVersion: 1 datasources: - name: Prometheus type: prometheus url: http://prometheus-server.prometheus.svc.cluster.local access: proxy isDefault: true service: annotations: service.beta.kubernetes.io/aws-load-balancer-internal: "false" EOF
Create Grafana Namespace & Grafana NLB
kubectl create namespace grafana
helm install grafana grafana/grafana \ --namespace grafana \ --set persistence.storageClassName="gp2" \ --set persistence.enabled=true \ --set adminPassword='Skills2024**' \ --values /home/ec2-user/grafana.yml \ --set service.type=LoadBalancer
위 코드를 사용하면 Grafana용 NLB가 생성됩니다.
Grafana NLB에 DNS에 접속하면 로그인 창이 뜨는데
ID : admin
PW : Skills2024**
으로 접속해주면 됩니다 아이디랑 비밀번호는 오른쪽 설정에서 변경할 수 있습니다.
대시보드를 추가할려면 위의 링크로 접근하여 대시보드ID를 가져와서 NLB의 DNS에서 추가해주면 됩니다.
'Aws' 카테고리의 다른 글
EKS - NetworkLoadBalancer (1) 2024.12.24 Docker로 Java ( jar, war ) 배포하기 (0) 2024.12.24 Lambda Revoke (0) 2024.12.24 Lambda를 이용한 Kinesis firehose 레코드 변환 (0) 2024.12.24 Lambda를 대상으로 한 ALB 생성하기 (0) 2024.12.24 다음글이전글이전 글이 없습니다.댓글
스킨 업데이트 안내
현재 이용하고 계신 스킨의 버전보다 더 높은 최신 버전이 감지 되었습니다. 최신버전 스킨 파일을 다운로드 받을 수 있는 페이지로 이동하시겠습니까?
("아니오" 를 선택할 시 30일 동안 최신 버전이 감지되어도 모달 창이 표시되지 않습니다.)