diff --git a/hippo4j-common/src/main/java/cn/hippo4j/common/model/PoolRunStateInfo.java b/hippo4j-common/src/main/java/cn/hippo4j/common/model/PoolRunStateInfo.java
index 41746348..b29bcb2b 100644
--- a/hippo4j-common/src/main/java/cn/hippo4j/common/model/PoolRunStateInfo.java
+++ b/hippo4j-common/src/main/java/cn/hippo4j/common/model/PoolRunStateInfo.java
@@ -95,4 +95,12 @@ public class PoolRunStateInfo extends PoolBaseInfo implements Serializable {
*/
private Long timestamp;
+ public Integer getSimpleCurrentLoad() {
+ return Integer.parseInt(getCurrentLoad().replace("%", ""));
+ }
+
+ public Integer getSimplePeakLoad() {
+ return Integer.parseInt(getPeakLoad().replace("%", ""));
+ }
+
}
diff --git a/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/pom.xml b/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/pom.xml
index 6bcdd2ed..062a4b44 100644
--- a/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/pom.xml
+++ b/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/pom.xml
@@ -55,6 +55,16 @@
spring-cloud-context
2.2.5.RELEASE
+
+
+ io.micrometer
+ micrometer-registry-prometheus
+
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
diff --git a/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/src/main/resources/bootstrap.properties b/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/src/main/resources/bootstrap.properties
index 0a7011c7..c84bce04 100644
--- a/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/src/main/resources/bootstrap.properties
+++ b/hippo4j-example/hippo4j-core-apollo-spring-boot-starter-example/src/main/resources/bootstrap.properties
@@ -12,6 +12,10 @@ apollo.bootstrap.eagerLoad.enabled=true
spring.profiles.active=dev
spring.application.name=dynamic-threadpool-example
+management.metrics.export.prometheus.enabled=true
+management.server.port=29998
+management.endpoints.web.exposure.include=*
+
spring.dynamic.thread-pool.enable=true
spring.dynamic.thread-pool.banner=true
spring.dynamic.thread-pool.check-state-interval=3