Skip to content

Commit

Permalink
Clarifies default behavior of blank service addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackpad committed Apr 20, 2016
1 parent f97afda commit 963916e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/source/docs/agent/http/agent.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,13 @@ in the case of a collision.

`Tags`, `Address`, `Port` and `Check` are optional.

`Address` will default to that of the agent if not provided.
If `Address` is not provided or left empty, then the agent's address will be used
as the address for the service during DNS queries. When querying for services using
HTTP endpoints such as [service health](/docs/agent/http/health.html#health_service)
or [service catalog](/docs/agent/http/catalog.html#catalog_service) and encountering
an empty `Address` field for a service, use the `Address` field of the agent node
associated with that instance of the service, which is returned alongside the service
information.

If `Check` is provided, only one of `Script`, `HTTP`, or `TTL` should be specified.
`Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>".
Expand Down

0 comments on commit 963916e

Please sign in to comment.