Skip to content

Commit

Permalink
improve config file exemple for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien PLENARD committed Aug 15, 2019
1 parent 5895ec1 commit a21cdf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ docker build \
--tag influxdb-relay:latest \
.
docker run \
--volume /path/to/influxdb-relay.conf:/etc/influxdb-relay/influxdb-relay.conf
--rm
--volume /path/to/influxdb-relay.conf:/etc/influxdb-relay/influxdb-relay.conf \
--publish 9096:9096 \
--rm \
influxdb-relay:latest
```

Expand All @@ -76,8 +77,9 @@ Docker pull our image.
```sh
docker pull vptech/influxdb-relay:latest
docker run \
--volume /path/to/influxdb-relay.conf:/etc/influxdb-relay/influxdb-relay.conf
--rm
--volume /path/to/influxdb-relay.conf:/etc/influxdb-relay/influxdb-relay.conf \
--publish 9096:9096 \
--rm \
vptech/influxdb-relay:latest
```

Expand Down Expand Up @@ -106,7 +108,7 @@ You can find some configurations in [examples](examples) folder.
name = "example-http"

# TCP address to bind to, for HTTP server.
bind-addr = "127.0.0.1:9096"
bind-addr = "0.0.0.0:9096"

# Timeout for /health route
# After this time, the host may be considered down
Expand Down Expand Up @@ -168,7 +170,7 @@ timeout = "10s"
name = "example-udp"

# UDP address to bind to.
bind-addr = "127.0.0.1:9096"
bind-addr = "0.0.0.0:9096"

# Socket buffer size for incoming connections.
read-buffer = 0 # default
Expand Down Expand Up @@ -221,7 +223,7 @@ bodies will not be forwarded back to the clients.
#### /health endpoint

This endpoint provides a quick way to check the state of all the backends.
It will return a JSON object detailing the status of the backends like this :
It will return a JSON object detailing the status of the backends like this :

```json
{
Expand Down
4 changes: 2 additions & 2 deletions examples/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# InfluxDB && Prometheus
[[http]]
name = "example-http-influxdb"
bind-addr = "127.0.0.1:9096"
bind-addr = "0.0.0.0:9096"

[[http.output]]
name = "local-influxdb01"
Expand All @@ -19,7 +19,7 @@ timeout = "10s"

[[udp]]
name = "example-udp"
bind-addr = "127.0.0.1:9096"
bind-addr = "0.0.0.0:9096"
read-buffer = 0 # default

[[udp.output]]
Expand Down

0 comments on commit a21cdf8

Please sign in to comment.