Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

테스트 시각화 #15

Open
2 tasks
hellouz818 opened this issue Jun 26, 2022 · 5 comments
Open
2 tasks

테스트 시각화 #15

hellouz818 opened this issue Jun 26, 2022 · 5 comments
Assignees
Labels
Add 새로운 기능 추가

Comments

@hellouz818
Copy link
Member

내용

Prometheus - Grafana를 사용하여 그래프로서 시각화

아래의 두가지 방식을 시도해볼 예정

작업 내용

  • PromQL을 사용하여 전체 메트릭에서 선택적으로 쿼리를 날리는 방식
  • 파드 관련 custom한 exporter를 찾아 띄우는 방식

참고 사항

@hellouz818 hellouz818 added the Add 새로운 기능 추가 label Jun 26, 2022
This was referenced Jul 3, 2022
@asd3638
Copy link
Contributor

asd3638 commented Jul 17, 2022

내용

Prometheus - Grafana를 사용하여 그래프로서 시각화

아래의 세가지 방식 시도

작업 내용

  • http request -> haproxy exporter
  • pod 수, cpu 사용량 -> metric exporter

참고 사항

deploy 별로 쿼리가 변경되므로 그래프를 확인하기 위해선 확인할 deploy를 명시해야하는데 테스트니까 상관없을 것으로 예상

@asd3638
Copy link
Contributor

asd3638 commented Jul 31, 2022

내용

가상 부하 생성 & 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차 목표

@asd3638
Copy link
Contributor

asd3638 commented Aug 4, 2022

haproxy-export 설정해봐도 뭔가 exporter 단위로 http request metric 수집하는 것 같아서..
이거만 너무 오래 잡고 있는 것 같네;;

헬프미...
@hellouz818

@asd3638
Copy link
Contributor

asd3638 commented Aug 7, 2022

내용

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

@asd3638
Copy link
Contributor

asd3638 commented Aug 9, 2022

@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 9101/TCP,10254/TCP 117m
haproxy-ingress-stats ClusterIP 198.19.178.129 1936/TCP 117m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add 새로운 기능 추가
Projects
None yet
Development

No branches or pull requests

2 participants