Skip to content

fixed management.context-path placeholder name #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed management.context-path placeholder name
  • Loading branch information
Abderrazak (عبدالرزاق) authored Feb 28, 2017
commit 51601e25f89a450fcc66447fce58edf6427fc0d0
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/spring-cloud-consul.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ The default service name, instance id and port, taken from the `Environment`, ar

=== HTTP Health Check

The health check for a Consul instance defaults to "/health", which is the default locations of a useful endpoint in a Spring Boot Actuator application. You need to change these, even for an Actuator application if you use a non-default context path or servlet path (e.g. `server.servletPath=/foo`) or management endpoint path (e.g. `management.contextPath=/admin`). The interval that Consul uses to check the health endpoint may also be configured. "10s" and "1m" represent 10 seconds and 1 minute respectively. Example:
The health check for a Consul instance defaults to "/health", which is the default locations of a useful endpoint in a Spring Boot Actuator application. You need to change these, even for an Actuator application if you use a non-default context path or servlet path (e.g. `server.servletPath=/foo`) or management endpoint path (e.g. `management.context-path=/admin`). The interval that Consul uses to check the health endpoint may also be configured. "10s" and "1m" represent 10 seconds and 1 minute respectively. Example:

.application.yml
----
spring:
cloud:
consul:
discovery:
healthCheckPath: ${management.contextPath}/health
healthCheckPath: ${management.context-path}/health
healthCheckInterval: 15s
----

Expand Down