From 3e863ed62222fcf3a39a734267a34c1b57930cfd Mon Sep 17 00:00:00 2001 From: ChuYong Date: Sat, 7 Sep 2024 17:31:00 +0900 Subject: [PATCH] chore: add admin actuator --- admin-service/build.gradle.kts | 1 + admin-service/src/main/resources/application.properties | 1 - admin-service/src/main/resources/application.yaml | 9 +++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) delete mode 100644 admin-service/src/main/resources/application.properties create mode 100644 admin-service/src/main/resources/application.yaml diff --git a/admin-service/build.gradle.kts b/admin-service/build.gradle.kts index 37a0a95..5604c09 100644 --- a/admin-service/build.gradle.kts +++ b/admin-service/build.gradle.kts @@ -21,6 +21,7 @@ repositories { } dependencies { + implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-security") implementation("org.springframework.boot:spring-boot-starter-webflux") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") diff --git a/admin-service/src/main/resources/application.properties b/admin-service/src/main/resources/application.properties deleted file mode 100644 index 1b9e01f..0000000 --- a/admin-service/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=admin-service diff --git a/admin-service/src/main/resources/application.yaml b/admin-service/src/main/resources/application.yaml new file mode 100644 index 0000000..e6c2369 --- /dev/null +++ b/admin-service/src/main/resources/application.yaml @@ -0,0 +1,9 @@ +spring: + application: + name: admin-service + +management: + endpoints: + web: + exposure: + include: health,metrics,prometheus