spring-attic/spring-cloud-gcp

Health Indicator for Cloud Spanner

Closed this issue · 2 comments

I think Spring Boot's DataSourceHealthIndicator does not work for spring-cloud-gcp-data-spanner because it does not use JDBC DataSource.
A custom health indicator Such as SpannerHealthIndicator and its auto configures should be added into spring-cloud-gcp-data-spanner to avoid boilerplate.

https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.health.writing-custom-health-indicators

I copied this feature request to GoogleCloudPlatform/spring-cloud-gcp#640 (newer repository)

Closing this one; will discuss on the new repo issue.