From 3714b84e1ecf471a16c4829a0bdf054d3b5c5a3b Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Sat, 26 Mar 2022 01:00:05 +0800 Subject: [PATCH] Dynamic thread pool access Prometheus monitoring, add test cases (#96) --- .../pom.xml | 10 ++++++++++ .../src/main/resources/bootstrap.yaml | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/pom.xml b/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/pom.xml index eba6f719..8cca93a2 100644 --- a/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/pom.xml +++ b/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/pom.xml @@ -49,6 +49,16 @@ spring-cloud-starter-alibaba-nacos-config 2.2.5.RELEASE + + + io.micrometer + micrometer-registry-prometheus + + + + org.springframework.boot + spring-boot-starter-actuator + diff --git a/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/src/main/resources/bootstrap.yaml b/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/src/main/resources/bootstrap.yaml index f651432e..70a0a9ad 100644 --- a/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/src/main/resources/bootstrap.yaml +++ b/hippo4j-example/hippo4j-core-nacos-spring-boot-starter-example/src/main/resources/bootstrap.yaml @@ -3,6 +3,18 @@ server: servlet: context-path: /example +management: + metrics: + export: + prometheus: + enabled: true + server: + port: 29999 + endpoints: + web: + exposure: + include: '*' + spring: profiles: active: dev