build: 添加程序内部监控方便排查

This commit is contained in:
CaptainB 2023-04-20 11:02:54 +08:00 committed by 刘瑞斌
parent 39ba51a2a7
commit 90cd249a52
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,10 @@
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-starter.version}</version> <version>${mybatis-starter.version}</version>
</dependency> </dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.mysql</groupId> <groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId> <artifactId>mysql-connector-j</artifactId>

View File

@ -89,6 +89,8 @@ spring.servlet.multipart.max-request-size=500MB
management.server.port=8083 management.server.port=8083
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*
management.endpoints.enabled-by-default=false management.endpoints.enabled-by-default=false
management.metrics.tags.application:${spring.application.name}
management.metrics.tags.region:metersphere-region
#spring.freemarker.checkTemplateLocation=false #spring.freemarker.checkTemplateLocation=false
spring.session.timeout=43200s spring.session.timeout=43200s
spring.session.store-type=none spring.session.store-type=none