You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
섹션 9. 액츄에이터
1️⃣ 프로덕션 준비 기능이란?
서비스를 운영하는 개발자에게 맞추어 보면 장애는 언제든지 발생할 수 있지만, 모니터링(경계)은 잘 대응하는 것이 중요하다는 것.
개발자가 애플리케이션을 개발할 때 기능 요구사항만 개발하는 것은 아니다.
또 다른 중요한 것 : 서비스에 문제가 없는지 모니터링하고 지표들을 심어서 감시하는
활동
운영 환경에서 서비스할 때 필요한 기능들을
프로덕션 준비 기능이라 한다.2️⃣ 프로젝트 설정
actuator-start 폴더 이름을 actuator로 변경
프로젝트 임포트
build.gradle확인
dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-actuator' //actuator 추가 }3️⃣ 액츄에이터 시작
{ "_links": { "self": { "href": "http://localhost:8080/actuator", "templated": false }, "health-path": { "href": "http://localhost:8080/actuator/health/{*path}", "templated": true }, "health": { "href": "http://localhost:8080/actuator/health", "templated": false } } }{"status": "UP"}✅ 액추에이터 기능을 웹에 노출
4️⃣ 엔드포인트 설정
엔드포인트를 사용하라면 다음 2가지 과정이 필요
엔드포인트 활성화: 해당 기능 자체를 사용할지 말지 on, off를 선택하는 것엔드포인트 노출: 노출은 활성화된 엔드포인트를 HTTP에 노출할지 혹은 JMX에 노출할지 선택하는 것엔드포인트는 대부분 기본으로 활성화 되어 있음. (단, shutdown은 제외)
application.yml - 모든 엔드포인트를 웹에 노출
✅ 엔드포인트 노출
5️⃣ 다양한 엔드포인트
✅ 엔드포인트 목록
6️⃣ 헬스 정보
Beta Was this translation helpful? Give feedback.
All reactions