287 words
1 minute
[Kubernetes]08. Grafana
Overview
01. 모니터링 지표들
구글에서 제시한 Golden Signals
- Latency : 요청에 대한 응답시간
- Traffic : 요청량
- Errors : 단순 에러 외 서비스 지연을 포함한 전체 장애 건수
- Saturation : 트래픽 증가 혹은 노드 장에 등의 상황이 발생하였을 때 예비 가용 자원 사용량
02. Grafana
03. 설치
Helm Chart 설치
- minikube 환경에서 grafana ip에 정상적으로 접근하기 위해 service type을 NodePort로 설정
- grafana의 value.yaml에는 nodePort 서비스일 경우의 port 필드가 없기 때문에 직접 추가 필요
- pvc 구성 이슈로 persistentVolumeClaim을 사용하지 않음
service: enabled: true type: NodePort # Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services) ipFamilyPolicy: "" # Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. ipFamilies: [] loadBalancerIP: "" loadBalancerClass: "" loadBalancerSourceRanges: [] port: 80 nodePort: 30104 # 직접 추가 targetPort: 3000 # targetPort: 4181 To be used with a proxy extraContainer ## Service annotations. Can be templated. annotations: {} labels: {} portName: service # Adds the appProtocol field to the service. This allows to work with istio protocol selection. Ex: "http" or "tcp" appProtocol: "" sessionAffinity: ""admin 계정 password 확인
kubectl get secret prometheus-grafana -o jsonpath="{.data.admin-password}" | base64 --decode [Kubernetes]08. Grafana
https://yjinheon.netlify.app/posts/05system/k8s/k8s_08_grafana/