diff --git a/build.gradle b/build.gradle index 5c0e09e9..3fbd42cb 100644 --- a/build.gradle +++ b/build.gradle @@ -73,8 +73,9 @@ dependencies { // Mac에서 빌드시 필요한 의존성 implementation 'io.netty:netty-resolver-dns-native-macos:4.1.121.Final:osx-aarch_64' - // actuator + // actuator + 프로메테우스 implementation 'org.springframework.boot:spring-boot-starter-actuator' + runtimeOnly 'io.micrometer:micrometer-registry-prometheus' // elasticsearch + elasticsearch 쿼리빌더 dsl implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch' diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1817fb06..a86530ae 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -46,10 +46,14 @@ spring.message.activemq.password=${ACTIVEMQ_PASSWORD} spring.message.activemq.port=${ACTIVEMQ_PORT} # ======================== -# Actuator +# Actuator && Prometheus # ======================== -management.endpoints.web.exposure.include=health,info +management.endpoints.web.exposure.include=health,metrics,prometheus,info management.endpoint.health.show-details=always +management.endpoint.health.access=unrestricted +management.endpoint.metrics.access=unrestricted +management.endpoint.prometheus.access=unrestricted +management.prometheus.metrics.export.enabled=true # ======================== # Judge0Client @@ -122,7 +126,6 @@ cloud.aws.s3.bucket=ezcode-s3 cloud.aws.region.static=ap-northeast-2 cloud.aws.stack.auto=false - #logging.level.org.springframework.security=DEBUG #logging.level.org.springframework.security.oauth2=DEBUG #logging.level.org.springframework.security.oauth2.client=TRACE