diff --git a/build.gradle b/build.gradle index 28f83ab..b8ffdd6 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,7 @@ dependencies { implementation 'org.springframework.security:spring-security-crypto' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'io.micrometer:micrometer-tracing-bridge-brave' + implementation 'io.micrometer:micrometer-registry-prometheus' implementation 'io.zipkin.reporter2:zipkin-reporter-brave' implementation 'me.paulschwarz:spring-dotenv:4.0.0' implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 17757ec..1cd215b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -21,12 +21,19 @@ management: access: read_only health: access: read_only + metrics: + access: read_only + prometheus: + access: read_only endpoints: access: default: none web: exposure: - include: health, info + include: health, info, prometheus + metrics: + tags: + application: core-banking server: port: ${SERVER_PORT:8090}