Skip to content

Commit 0a8da4f

Browse files
committed
Polish "Provide health for an AbstractRoutingDataSource's resolved targets"
See gh-25708
1 parent 13600c3 commit 0a8da4f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/jdbc/DataSourceHealthContributorAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,15 @@ TIP: You can use `@Qualifier("groupname")` if you need to register custom `Statu
989989

990990

991991

992+
[[production-ready-health-datasource]]
993+
==== DataSource Health
994+
The `DataSource` health indicator shows the health of both standard data source and routing data source beans.
995+
The health of a routing data source includes the health of each of its target data sources.
996+
In the health endpoint's response, each of a routing data source's targets is named using its routing key.
997+
If you prefer not to include routing data sources in the indicator's output, set configprop:management.health.db.ignore-routing-data-sources[] to `true`.
998+
999+
1000+
9921001
[[production-ready-kubernetes-probes]]
9931002
=== Kubernetes Probes
9941003
Applications deployed on Kubernetes can provide information about their internal state with https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes[Container Probes].

0 commit comments

Comments
 (0)