Skip to content

Commit e4a4c99

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 732889a commit e4a4c99

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
@@ -248,6 +248,9 @@ $ docker-compose restart telegraf
248248
```
249249

250250
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.
251+
This result in the Telegraf service depending on the Mosquitto service, as such
252+
you may want to edit `docker-compose.yml` and add `- mosquitto` to the
253+
`depends_on:` of the telegraf service.
251254

252255
## <a name="cleanSlate"></a>Getting a clean slate
253256

0 commit comments

Comments
 (0)