본 게시물은 CloudNet@팀 Gasida(서종호) 님이 진행하시는
AWS EKS Workshop Study 내용을 기반으로 작성되었습니다.
# 그라파나 버전 확인
kubectl exec -it -n monitoring statefulset/kube-prometheus-stack-grafana -- grafana-cli --version
grafana cli version 10.4.0
# ingress 확인
kubectl get ingress -n monitoring kube-prometheus-stack-grafana
kubectl describe ingress -n monitoring kube-prometheus-stack-grafana
# ingress 도메인으로 웹 접속 : 기본 계정 - admin / prom-operator
echo -e "Grafana Web URL = https://grafana.$MyDomain"

메뉴 구성

Data sources

Dashboard
오픈소스 Dashboard ID를 Import하여 사용할 수 있음


Dashboard 생성 확인





Alert Rule 생성
Home -> Alerting -> Alert rules -> New alert rule
1분 동안 nginx_connections_accepted > 600 이상일 때 알림 발송


Contact point 생성

Notification policie 수정

Alert 테스트
while true; do curl -s https://nginx.$MyDomain -I | head -n 1; date; done
