From 5e129d478e13f736b6569f5c2f570d63be5fef39 Mon Sep 17 00:00:00 2001 From: xiangzihao <460888207@qq.com> Date: Fri, 24 Jun 2022 13:29:49 +0800 Subject: [PATCH] add datasource health check to the healthcheck endpoint (#10588) (cherry picked from commit 1111371c9ab30420c2effa03e6f94a6d268a4e1f) --- .../src/main/resources/application.yaml | 9 +++++++++ dolphinscheduler-api/src/main/resources/application.yaml | 9 +++++++++ .../src/main/resources/application.yaml | 9 +++++++++ .../src/main/resources/application.yaml | 9 +++++++++ .../src/main/resources/application.yaml | 9 +++++++++ 5 files changed, 45 insertions(+) diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml index e707f96041..40cb4c7ce5 100644 --- a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml +++ b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml @@ -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} diff --git a/dolphinscheduler-api/src/main/resources/application.yaml b/dolphinscheduler-api/src/main/resources/application.yaml index 542b8048ed..3fff4539dd 100644 --- a/dolphinscheduler-api/src/main/resources/application.yaml +++ b/dolphinscheduler-api/src/main/resources/application.yaml @@ -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} diff --git a/dolphinscheduler-master/src/main/resources/application.yaml b/dolphinscheduler-master/src/main/resources/application.yaml index b559806d28..9f191ccd25 100644 --- a/dolphinscheduler-master/src/main/resources/application.yaml +++ b/dolphinscheduler-master/src/main/resources/application.yaml @@ -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} diff --git a/dolphinscheduler-standalone-server/src/main/resources/application.yaml b/dolphinscheduler-standalone-server/src/main/resources/application.yaml index 8411360275..12cdfe1e0d 100644 --- a/dolphinscheduler-standalone-server/src/main/resources/application.yaml +++ b/dolphinscheduler-standalone-server/src/main/resources/application.yaml @@ -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} diff --git a/dolphinscheduler-worker/src/main/resources/application.yaml b/dolphinscheduler-worker/src/main/resources/application.yaml index 7d653edc24..0442057ff4 100644 --- a/dolphinscheduler-worker/src/main/resources/application.yaml +++ b/dolphinscheduler-worker/src/main/resources/application.yaml @@ -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}