What would you like to be added:
Provide a FileHealthCheckPublisher which creates an empty temporary file (at a configured path) if health check passes, and removes the file if health check fails.
Why is this needed:
Using the existence of a file for health check purposes is a common practice in cloud-native scenarios. As an example, the Kubernetes documentation on health probes uses this approach for illustration purposes.
I can provide a PR to implement this if the idea is OK.
What would you like to be added:
Provide a
FileHealthCheckPublisherwhich creates an empty temporary file (at a configured path) if health check passes, and removes the file if health check fails.Why is this needed:
Using the existence of a file for health check purposes is a common practice in cloud-native scenarios. As an example, the Kubernetes documentation on health probes uses this approach for illustration purposes.
I can provide a PR to implement this if the idea is OK.