diff --git a/api-gateway/build.gradle.kts b/api-gateway/build.gradle.kts index 6d01489..e271149 100644 --- a/api-gateway/build.gradle.kts +++ b/api-gateway/build.gradle.kts @@ -30,6 +30,7 @@ dependencies { testImplementation("org.springframework.security:spring-security-test") testRuntimeOnly("org.junit.platform:junit-platform-launcher") implementation("io.micrometer:micrometer-tracing-bridge-otel:1.3.2") + implementation("io.micrometer:micrometer-registry-prometheus:1.13.2") implementation("io.opentelemetry:opentelemetry-exporter-zipkin:1.40.0") diff --git a/api-gateway/src/main/resources/application.yaml b/api-gateway/src/main/resources/application.yaml index 246addf..e3ee983 100644 --- a/api-gateway/src/main/resources/application.yaml +++ b/api-gateway/src/main/resources/application.yaml @@ -57,6 +57,10 @@ springdoc: url: https://gateway.mafoo.kr/photo/v3/api-docs management: + endpoints: + web: + exposure: + include: health,metrics,prometheus tracing: sampling: probability: 1.0 diff --git a/photo-service/build.gradle.kts b/photo-service/build.gradle.kts index 30ea533..9e3e0a5 100644 --- a/photo-service/build.gradle.kts +++ b/photo-service/build.gradle.kts @@ -38,6 +38,7 @@ dependencies { implementation("io.awspring.cloud:spring-cloud-starter-aws:2.4.4") implementation("io.micrometer:micrometer-tracing-bridge-otel:1.3.2") implementation("io.opentelemetry:opentelemetry-exporter-zipkin:1.40.0") + implementation("io.micrometer:micrometer-registry-prometheus:1.13.2") } tasks.withType { diff --git a/photo-service/src/main/resources/application.yaml b/photo-service/src/main/resources/application.yaml index a13ec3d..dc14e9c 100644 --- a/photo-service/src/main/resources/application.yaml +++ b/photo-service/src/main/resources/application.yaml @@ -30,6 +30,10 @@ cloud: bucket: ${NCP_BUCKET} management: + endpoints: + web: + exposure: + include: health,metrics,prometheus tracing: sampling: probability: 1.0 diff --git a/user-service/build.gradle.kts b/user-service/build.gradle.kts index 717ceac..3fde6ce 100644 --- a/user-service/build.gradle.kts +++ b/user-service/build.gradle.kts @@ -47,6 +47,7 @@ dependencies { implementation("io.projectreactor.tools:blockhound:1.0.9.RELEASE") implementation("io.micrometer:micrometer-tracing-bridge-otel:1.3.2") implementation("io.opentelemetry:opentelemetry-exporter-zipkin:1.40.0") + implementation("io.micrometer:micrometer-registry-prometheus:1.13.2") } tasks.withType().all { diff --git a/user-service/src/main/resources/application.yaml b/user-service/src/main/resources/application.yaml index 2bec533..29ed06b 100644 --- a/user-service/src/main/resources/application.yaml +++ b/user-service/src/main/resources/application.yaml @@ -30,6 +30,10 @@ app: refresh-token: 2592000 # 30 days management: + endpoints: + web: + exposure: + include: health,metrics,prometheus tracing: sampling: probability: 1.0