Skip to content

Commit

Permalink
Update docker discovery snippet
Browse files Browse the repository at this point in the history
Usually we will have ${discovery.private.ip} and only if public ip attached to container we could use ${discovery.ip}.
  • Loading branch information
brushknight committed Aug 17, 2021
1 parent 6686a62 commit 0822107
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ These examples (for Docker-only environments and for Kubernetes) show how to con
- name: nginx-server-metrics
command: metrics
env:
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
STATUS_MODULE: discover
REMOTE_MONITORING: true
Expand Down

0 comments on commit 0822107

Please sign in to comment.