반응형
SMALL
pom.xml 밑 코드 입력
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>3.1.3</version>
</dependency>
결과
application.properties
management.endpoints.web.exposure.include=*
입력 시 여러 엔드포인트를 사용(CPU와 메모리가 많이 사용)
특정 엔드포인트 지정
logging.level.org.springframework=debug
spring.profiles.active=dev
currency-service.url = http://defaut.in28minutes.com
currency-service.username = defaultusername
currency-service.key = defaultkey
management.endpoints.web.exposure.include=health,metrics
=* → =health,metrics
Spring Boot ACtuator
프로덕션 환경에서 애플리케이션을 모니터링 및 관리.
1.beans - 앱의 전체 Spring Bean 리스트
2.health - 애플리케이션 상태 정보
3.metrics - 애플리케이션 매트릭스
4.mappings - 요청 매핑에 관한 세부 정보
반응형
LIST
'Spring > Spring Boot' 카테고리의 다른 글
H2 테이블 입력 (0) | 2023.08.27 |
---|---|
H2콘솔 및 테이블 생성 (0) | 2023.08.27 |
@ConfigurationProperties(prefix = "~") (0) | 2023.08.27 |
로깅 방법, 종류 (0) | 2023.08.27 |
Spring Boot Davtools로 빠르게 빌드 (0) | 2023.08.27 |