Skip to content

Commit 11fcaff

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 11fcaff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ $ docker-compose restart telegraf
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.
251251

252+
This result in the Telegraf service depending on the Modquitto service, as such
253+
you may want to edit `docker-compose.yml` and add `- mosquitto` to the
254+
`depends_on:` of the mosquitto service.
255+
252256
## <a name="cleanSlate"></a>Getting a clean slate
253257

254258
### <a name="resetDB"></a>Erasing the persistent storage area

0 commit comments

Comments
 (0)