diff --git a/framework/sdk-parent/sdk/pom.xml b/framework/sdk-parent/sdk/pom.xml index f4b440cb77..9cff83f71d 100644 --- a/framework/sdk-parent/sdk/pom.xml +++ b/framework/sdk-parent/sdk/pom.xml @@ -32,6 +32,10 @@ mybatis-spring-boot-starter ${mybatis-starter.version} + + io.micrometer + micrometer-registry-prometheus + com.mysql mysql-connector-j diff --git a/framework/sdk-parent/sdk/src/main/resources/commons.properties b/framework/sdk-parent/sdk/src/main/resources/commons.properties index baa50799c3..1ad5bd3ff7 100644 --- a/framework/sdk-parent/sdk/src/main/resources/commons.properties +++ b/framework/sdk-parent/sdk/src/main/resources/commons.properties @@ -89,6 +89,8 @@ spring.servlet.multipart.max-request-size=500MB management.server.port=8083 management.endpoints.web.exposure.include=* management.endpoints.enabled-by-default=false +management.metrics.tags.application:${spring.application.name} +management.metrics.tags.region:metersphere-region #spring.freemarker.checkTemplateLocation=false spring.session.timeout=43200s spring.session.store-type=none