spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
813 stars 541 forks source link

Make Health Check Name Configurable #717

Open jdeex opened 3 years ago

jdeex commented 3 years ago

New configuration option: spring.cloud.consul.discovery.health-check-name

Checks are being named as: Service 'your-project-name' check and this cannot be set by configuration. In the discovery configuration options you may set health-check path, url, ... why not adding the name? This can be useful when using the Consul REST API to query services' status or when you want to distinguish your own created Check from others. Also, the the current name could be tricky due to the quotes in it.

spencergibb commented 3 years ago

PRs welcome