AWS EKS Logging / Monitoring
https://eksworkshop.com/intermediate/230_logging/
EKSworkshop.com
Amazon EKS Workshop In this workshop, we will explore multiple ways to configure VPC, ALB, and EC2 Kubernetes workers, and Amazon Elastic Kubernetes Service.
eksworkshop.com
https://eksworkshop.com/intermediate/250_cloudwatch_container_insights/
EKSworkshop.com
Amazon EKS Workshop In this workshop, we will explore multiple ways to configure VPC, ALB, and EC2 Kubernetes workers, and Amazon Elastic Kubernetes Service.
eksworkshop.com
https://docs.aws.amazon.com/ko_kr/eks/latest/userguide/metrics-server.html
Kubernetes 지표 서버 설치 - Amazon EKS
리소스 사용 메트릭의 정확한 소스가 필요하거나 모니터링 솔루션으로 메트릭 서버를 사용하지 마십시오.
docs.aws.amazon.com
Kubernetes Metrics Server 생성
1. metrics-server 의 Metrics Server를 설치하려면 다음 명령을 실행합니다.
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml
2. Metrics Server가 실행 중인지 확인하려면 다음 명령을 실행합니다.
kubectl get pods -n kube-system
출력은 다음과 비슷해야 합니다.
$ kubectl get pods -n kube-system -l k8s-app=metrics-server
metrics-server-85cc795fbf-79d72 1/1 Running 0 22s
최근의 로깅 및 지표분석은 metrics-server 대신에 prometheus 를 사용한다.
- logging on fargate(aws-observability) 는 fargate 의 application log 만 수집한다.
kubectl create namespace prometheus
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm upgrade -i prometheus prometheus-community/prometheus \
--namespace prometheus \
--set alertmanager.persistentVolume.storageClass="gp2",server.persistentVolume.storageClass="gp2"
kubectl --namespace=prometheus port-forward deploy/prometheus-server 9090