From da1a0417099fe69810868861b08ba3e157914403 Mon Sep 17 00:00:00 2001 From: tuna Date: Wed, 6 Mar 2024 02:12:23 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20spring=20actuator=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ src/main/resources/application.yaml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 6eff4e9..1666da0 100644 --- a/build.gradle +++ b/build.gradle @@ -29,6 +29,9 @@ dependencies { implementation 'net.nurigo:sdk:4.3.0' implementation 'org.flywaydb:flyway-core' implementation 'org.flywaydb:flyway-mysql' + + implementation 'org.springframework.boot:spring-boot-starter-actuator' + runtimeOnly 'io.micrometer:micrometer-registry-prometheus' } tasks.named('test') { diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 2e8fb9f..55b2fba 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -18,3 +18,9 @@ phone: key: testesttstset secret: testtestesttestteststestsetstets sender: 01012345678 + +management: + endpoints: + web: + exposure: + include: prometheus