Skip to content

Commit bbcb34c

Browse files
committed
telegraf: remove unused mosquitto dependency
Seems like remnant misconfiguration from the beginning. Fixes docker-compose.yml to be valid even if you don't choose mosquitto fron the menu. Added documentation about adding the mosquitto 'depends_on' back if you use the mqtt_consumer addition. Resolves #550
1 parent 19786e8 commit bbcb34c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.templates/telegraf/service.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ telegraf:
1313
- /var/run/docker.sock:/var/run/docker.sock:ro
1414
depends_on:
1515
- influxdb
16-
- mosquitto
1716

docs/Containers/Telegraf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ $ docker-compose restart telegraf
244244
```
245245

246246
The `grep` strips comment lines and the `sudo tee` is a safe way of appending the result to `telegraf.conf`. The `restart` causes Telegraf to notice the change.
247+
This result in the Telegraf service depending on the Mosquitto service, as such
248+
you may want to edit `docker-compose.yml` and add `- mosquitto` to the
249+
`depends_on:` of the telegraf service.
247250

248251
## Getting a clean slate { #cleanSlate }
249252

0 commit comments

Comments
 (0)