모니터링
-
프로메테우스란 무엇인가?모니터링 2023. 7. 15. 00:01
프로메테우스란? 구글의 쿠버네티스를 모니터링하기 위한 소프트웨어로 Borgmon이라는 것이 만들어졌는데 이를 비슷하게 오픈 소스로 공개한 것이 Prometheus입니다. 즉, Prometheus는 오픈소스 모니터링 시스템입니다. Spring Boot Application의 여러 메트릭을 수집하여 모니터링할 수 있는 환경을 구축할 수 있습니다. Spring Boot의 Actuator, Prometheus, Grafana 조합을 많이 사용하며 이를 통해 애플리케이션의 성능 및 상태에 대해 확인할 수 있습니다. HTTP를 통한 pull model을 통해 주기적으로 수집하여 시계열 데이터로 저장합니다. Spring Boot Actuator의 prometheus 앤드포인트를 사용하여 지표를 수집합니다. 메트릭이란..
-
Spring actuator란?모니터링 2023. 5. 15. 00:01
Spring Actuator란? Spring Boot 애플리케이션의 운영 정보와 모니터링을 제공하는 라이브러리입니다. Actuator를 사용하면 애플리케이션의 상태 정보를 쉽게 확인할 수 있으며, 실행 중인 애플리케이션의 로그, 메모리 사용량, HTTP 요청 수 등의 정보를 수집할 수 있습니다. gradle 의존성 implementation("org.springframework.boot:spring-boot-starter-actuator") application.yml 설정 # actuator 설정 management: endpoints: web: exposure: include: - "info" - "health" 위의 설정은 Actuator 엔드포인트 중 info와 health 엔드포인트를 노출하는 ..