build: 添加程序内部监控方便排查
This commit is contained in:
parent
39ba51a2a7
commit
90cd249a52
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue