grafana
-
부하 테스트 - K6, Grafana, InfluxDB카테고리 없음 2024. 2. 18. 14:53
들어가며 저번 글 3개에서 간단한 REST API를 만들어 Docker로 컨테이너화 하고 Spring Actuator, Prometheus, Grafana로 모니터링 시스템 구축까지 해보았다. 그럼 이제 부하 테스트를 진행하여 어느 수준의 트래픽까지 받을 수 있을지 가늠해볼 수 있다. 3개 작업만 하면 된다. K6로 테스트 스크립트 작성하고, 부하테스트에 따른 지표 데이터를 수집하고, 이 지표를 Grafana로 확인할 수 있게 대시보드를 구성하는 것이다. 아래 그림과 같은 구조로, Grafana 블로그(https://grafana.com/blog/2023/04/11/how-to-visualize-load-testing-results/)에 잘 설명되어 있다. K6 설치하고 스크립트 만들기 K6가 뭔지부터 ..
-
모니터링 체계 구축 - Spring Actuator, Prometheus, Grafana개발 나누고 더하기/자바, 스프링 2024. 2. 15. 22:50
들어가며 이전 글에서 간단한 스프링부트 애플리케이션을 만들어 보고(https://baby-care-dev.tistory.com/65), 이걸 도커 이미지로 만드는 템플릿까지 작성(https://baby-care-dev.tistory.com/66)해 보았다. 이제 부하 테스트 시 지표를 분석(시각화)하는 틀만 만들면 된다. 사실 jMeter나 nGrinder 같은 도구를 사용하면 관련 지표를 시각화해서 보여주긴 하지만, 운영 환경에서와 동일한 지표를 보고 싶기 때문에 운영 환경과 동일한 모니터링 체계를 로컬에 구축하려는 것이다. 우리 회사에서는 Spring Actuator, Prometheus, Grafana로 모니터링하므로 똑같이 구성해주면 된다. 그럼 부하 테스트를 통해 나온 지표를 참고하여 트래픽이 ..