add datasource health check to the healthcheck endpoint (#10588)

(cherry picked from commit 1111371c9a)
This commit is contained in:
xiangzihao 2022-06-24 13:29:49 +08:00 committed by Jiajie Zhong
parent b0113a9b64
commit 5e129d478e
5 changed files with 45 additions and 0 deletions

View File

@ -48,6 +48,15 @@ management:
web:
exposure:
include: '*'
endpoint:
health:
enabled: true
show-details: always
health:
db:
enabled: true
defaults:
enabled: false
metrics:
tags:
application: ${spring.application.name}

View File

@ -84,6 +84,15 @@ management:
web:
exposure:
include: '*'
endpoint:
health:
enabled: true
show-details: always
health:
db:
enabled: true
defaults:
enabled: false
metrics:
tags:
application: ${spring.application.name}

View File

@ -122,6 +122,15 @@ management:
web:
exposure:
include: '*'
endpoint:
health:
enabled: true
show-details: always
health:
db:
enabled: true
defaults:
enabled: false
metrics:
tags:
application: ${spring.application.name}

View File

@ -199,6 +199,15 @@ management:
web:
exposure:
include: '*'
endpoint:
health:
enabled: true
show-details: always
health:
db:
enabled: true
defaults:
enabled: false
metrics:
tags:
application: ${spring.application.name}

View File

@ -85,6 +85,15 @@ management:
web:
exposure:
include: '*'
endpoint:
health:
enabled: true
show-details: always
health:
db:
enabled: true
defaults:
enabled: false
metrics:
tags:
application: ${spring.application.name}