开启应用监控

This commit is contained in:
Guoqs
2025-07-17 11:50:46 +08:00
parent 0b19fb888d
commit 1cce23cdf0
4 changed files with 44 additions and 4 deletions

View File

@@ -131,6 +131,14 @@
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-registry-nacos</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
</dependencies>

View File

@@ -1,7 +1,7 @@
# 项目相关配置
jsowell:
# 名称
name: jsowell-service
name: wcc-service
# 版本
version: 1.0.0
# 版权年份
@@ -51,6 +51,8 @@ user:
# Spring配置
spring:
application:
name: jsowell-charger-web
# 资源信息
messages:
# 国际化资源文件路径
@@ -71,6 +73,21 @@ spring:
# 热部署开关
enabled: true
# 监控配置
management:
server:
port: 8091
endpoints:
web:
exposure:
include: '*'
metrics:
tags:
application: ${spring.application.name}
export:
prometheus:
enabled: true
# MyBatis配置
mybatis:
# 搜索指定包别名