diff --git a/backend/build.gradle b/backend/build.gradle index 8c9d4ba3..0933fe9f 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -34,6 +34,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'io.micrometer:micrometer-registry-prometheus' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' diff --git a/backend/src/main/resources/application-prod.yml b/backend/src/main/resources/application-prod.yml index 05efe640..a17cd8cf 100644 --- a/backend/src/main/resources/application-prod.yml +++ b/backend/src/main/resources/application-prod.yml @@ -39,10 +39,15 @@ logging: location: ${secret.application.log.location} management: - endpoint: - health: - show-details: always + server: + port: ${secret.actuator.port} + endpoints: + enabled-by-default: false web: exposure: - include: "health" + include: ${secret.actuator.web.include} + base-path: ${secret.actuator.web.base-url} + jmx: + exposure: + exclude: ${secret.actuator.jmx.exclude}