Open hellouz818 opened 2 years ago
Prometheus - Grafana를 사용하여 그래프로서 시각화
아래의 세가지 방식 시도
deploy 별로 쿼리가 변경되므로 그래프를 확인하기 위해선 확인할 deploy를 명시해야하는데 테스트니까 상관없을 것으로 예상
가상 부하 생성 & autoscaler test
아래의 방식 시도
kubectl apply -f https://k8s.io/examples/application/php-apache.yaml
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10
kubectl get hpa
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
부하를 발생시키고 변화를 deployment 별로 시각화하여 나타내는 것이 1차 목표
haproxy-export 설정해봐도 뭔가 exporter 단위로 http request metric 수집하는 것 같아서.. 이거만 너무 오래 잡고 있는 것 같네;;
헬프미... @hellouz818
haproxy exporter 설정
아래의 방식 시도 ❌ 실패 ❌
helm repo add haproxytech https://haproxytech.github.io/helm-charts
helm repo update
helm install haproxy-ingress haproxytech/kubernetes-ingress
kubectl patch deployment haproxy-ingress-kubernetes-ingress \
-p '{"spec":{"template":{"metadata":{"annotations":{"prometheus.io/scrape": "true", "prometheus.io/port": "1024", "prometheus.io/path": "/metrics"}}}}}'
kubectl apply -f sysdig-agent-config.yaml
@hellouz818 @bconfiden2
haproxy-ingress LoadBalancer 198.19.225.187 ingress-con-haproxy-ingr-58d0c-11784249-1b54c24e0ce5.kr.lb.naverncp.com 80:30928/TCP,443:31420/TCP 4h40m
haproxy-ingress-metrics ClusterIP 198.19.185.0
내용
Prometheus - Grafana를 사용하여 그래프로서 시각화
아래의 두가지 방식을 시도해볼 예정
작업 내용
참고 사항