diff --git a/austin-support/pom.xml b/austin-support/pom.xml index 59ff73b..fc2a758 100644 --- a/austin-support/pom.xml +++ b/austin-support/pom.xml @@ -63,6 +63,25 @@ spring-boot-starter-data-redis + + + + org.springframework.boot + spring-boot-starter-actuator + + + io.micrometer + micrometer-registry-prometheus + runtime + + + + + com.ctrip.framework.apollo + apollo-client + + + \ No newline at end of file diff --git a/austin-web/src/main/resources/application.yml b/austin-web/src/main/resources/application.yml index f8b24cd..8dcf29b 100644 --- a/austin-web/src/main/resources/application.yml +++ b/austin-web/src/main/resources/application.yml @@ -44,9 +44,29 @@ spring: port: password: + # tomcat / HikariPool(数据库连接池 配置) TODO # 消息topicName TODO austin: topic: - name: austin \ No newline at end of file + name: austin + +# 监控配置 TODO +management: + endpoint: + health: + show-details: always + metrics: + enabled: true + prometheus: + enabled: true + endpoints: + web: + exposure: + include: '*' + metrics: + export: + prometheus: + enabled: true + diff --git a/pom.xml b/pom.xml index 990dc0a..854be52 100644 --- a/pom.xml +++ b/pom.xml @@ -74,6 +74,15 @@ tencentcloud-sdk-java 3.1.390 + + + + com.ctrip.framework.apollo + apollo-client + 1.9.1 + + +