[Spring Boot]Actuator

hb·2024년 11월 25일
0

spring boot

목록 보기
3/3

Spring boot Actuator

필요 의존성

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

접속 주소

localhost:[PORT]/actuator/

모든 엔드포인트 노출 방법

[application.properties]
management.endpoints.web.exposure.include = *

중요 엔드포인트

  1. beans : 모든 Spring beans 표시
  2. health : 실행 상태
  3. configprops : application.properties에서 설정할 수 있는 모든 항목 표시
  4. env : env 엔드포인트 표시
  5. metrics : metrics 목록 반환

여러 엔드포인트 사용시 문제점

  • 해당 정보를 많이 수집하면 CPU와 메모리가 많이 사용
  • 일반적으로 엔드포인트는 명시적으로 사용

profile
눈물 많은T

0개의 댓글