diff --git a/pom.xml b/pom.xml index b28a877db7c8154b2ec819d803a4681d91f8c823..9f00670e423b8a545d04eff3f3d58ca0f4b7e38f 100644 --- a/pom.xml +++ b/pom.xml @@ -128,6 +128,15 @@ groovy-all + + io.micrometer + micrometer-core + + + + io.micrometer + micrometer-registry-prometheus + diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index c033fac051b7da8fb13fd52379a4fecd455786fa..90193710d89ee2cb2f89dbe536e762e8d7b1c776 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -13,4 +13,20 @@ spring: complete: pending: account: - timeout-minutes: 30 \ No newline at end of file + timeout-minutes: 30 + +#Metrics related configurations +management: + endpoint: + metrics: + enabled: true + prometheus: + enabled: true + endpoints: + web: + exposure: + include: 'prometheus, health, info' + metrics: + export: + prometheus: + enabled: true \ No newline at end of file diff --git a/src/main/resources/application-production.yml b/src/main/resources/application-production.yml index 30cd816d5ad1b6de3a26015f798d9381dbe7994b..cefd4fde6769035bdad12075508418a850b4f3eb 100644 --- a/src/main/resources/application-production.yml +++ b/src/main/resources/application-production.yml @@ -13,4 +13,20 @@ spring: complete: pending: account: - timeout-minutes: ${COMPLETE_PENDING_ACCOUNT_TIMEOUT_MINUTES:30} \ No newline at end of file + timeout-minutes: ${COMPLETE_PENDING_ACCOUNT_TIMEOUT_MINUTES:30} + +#Metrics related configurations +management: + endpoint: + metrics: + enabled: true + prometheus: + enabled: true + endpoints: + web: + exposure: + include: 'prometheus, health, info' + metrics: + export: + prometheus: + enabled: true \ No newline at end of file