From c63287f75ae51440ea2d4c88401f3454602fc936 Mon Sep 17 00:00:00 2001 From: GiJung <101462387+GiJungPark@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:46:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20monitoring=20=EB=AA=A8=EB=93=88=20?= =?UTF-8?q?=EC=9D=98=EC=A1=B4=EC=84=B1=EC=9D=84=20runtimeOnly=EC=97=90?= =?UTF-8?q?=EC=84=9C=20implementation=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dmforu-admin/build.gradle.kts | 2 +- dmforu-api/build.gradle.kts | 3 ++- dmforu-support/monitoring/src/main/resources/monitoring.yml | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dmforu-admin/build.gradle.kts b/dmforu-admin/build.gradle.kts index db20941..33e7224 100644 --- a/dmforu-admin/build.gradle.kts +++ b/dmforu-admin/build.gradle.kts @@ -9,11 +9,11 @@ tasks.getByName("jar") { dependencies { implementation(project(":dmforu-domain")) implementation(project(":dmforu-crawling")) + implementation(project(":dmforu-support:monitoring")) runtimeOnly(project(":dmforu-infrastructure:fcm")) runtimeOnly(project(":dmforu-infrastructure:storage:mysql")) runtimeOnly(project(":dmforu-infrastructure:storage:mongo")) - runtimeOnly(project(":dmforu-support:monitoring")) testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0") } \ No newline at end of file diff --git a/dmforu-api/build.gradle.kts b/dmforu-api/build.gradle.kts index 2401f71..d42ae16 100644 --- a/dmforu-api/build.gradle.kts +++ b/dmforu-api/build.gradle.kts @@ -8,13 +8,14 @@ tasks.getByName("jar") { dependencies { implementation(project(":dmforu-domain")) + implementation(project(":dmforu-support:monitoring")) + implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-validation") implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0") runtimeOnly(project(":dmforu-infrastructure:storage:mysql")) runtimeOnly(project(":dmforu-infrastructure:storage:mongo")) - runtimeOnly(project(":dmforu-support:monitoring")) testImplementation("org.springframework.boot:spring-boot-starter-validation") } \ No newline at end of file diff --git a/dmforu-support/monitoring/src/main/resources/monitoring.yml b/dmforu-support/monitoring/src/main/resources/monitoring.yml index 1687053..c152a3f 100644 --- a/dmforu-support/monitoring/src/main/resources/monitoring.yml +++ b/dmforu-support/monitoring/src/main/resources/monitoring.yml @@ -1,4 +1,6 @@ management: + server: + port: 9292 endpoint: metrics: enabled: true