diff --git a/pom.xml b/pom.xml index b85391e..7bdf1bc 100644 --- a/pom.xml +++ b/pom.xml @@ -7,12 +7,13 @@ org.springframework.boot spring-boot-starter-parent - 3.1.5 + 3.2.0 tk.antoine.roux java-template - 1.0-SNAPSHOT + 1.0.0-SNAPSHOT + java-template 21 diff --git a/src/main/resources/application-local.template.properties b/src/main/resources/application-local.template.properties index a954195..3ce3f96 100644 --- a/src/main/resources/application-local.template.properties +++ b/src/main/resources/application-local.template.properties @@ -1 +1 @@ -management.metrics.tags.env=local +management.observations.key-values.env=local diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index e06c507..2f6eb9c 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,2 +1,2 @@ -management.metrics.tags.env=prod +management.observations.key-values.env=prod server.port=80 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 12bd2e0..39cb1bb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,6 +5,6 @@ java-template.configuration.api-prefix=/api management.endpoints.web.base-path=${java-template.configuration.api-prefix} management.endpoint.loggers.enabled=true management.endpoints.web.exposure.include=health,info,prometheus,loggers -management.metrics.tags.service.name=${spring.application.name} -management.metrics.tags.service.version=@version@ -management.metrics.tags.env=dev +management.observations.key-values.service.name=${spring.application.name} +management.observations.key-values.service.version=@version@ +management.observations.key-values.env=dev