Dynamic thread pool access Prometheus monitoring, add test cases (#96)

pull/160/head
chen.ma 3 years ago
parent d189b28210
commit 3714b84e1e

@ -49,6 +49,16 @@
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<version>2.2.5.RELEASE</version> <version>2.2.5.RELEASE</version>
</dependency> </dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

@ -3,6 +3,18 @@ server:
servlet: servlet:
context-path: /example context-path: /example
management:
metrics:
export:
prometheus:
enabled: true
server:
port: 29999
endpoints:
web:
exposure:
include: '*'
spring: spring:
profiles: profiles:
active: dev active: dev

Loading…
Cancel
Save