From 90cd249a52711bd6cda395ac6da59823ee1cd6a3 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 20 Apr 2023 11:02:54 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=86=85=E9=83=A8=E7=9B=91=E6=8E=A7=E6=96=B9=E4=BE=BF=E6=8E=92?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/sdk-parent/sdk/pom.xml | 4 ++++ .../sdk-parent/sdk/src/main/resources/commons.properties | 2 ++ 2 files changed, 6 insertions(+) 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