Skip to content

Commit

Permalink
telegraf: remove unused mosquitto dependency
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ukkopahis committed Jun 15, 2022
1 parent 19786e8 commit bbcb34c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .templates/telegraf/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ telegraf:
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- influxdb
- mosquitto

3 changes: 3 additions & 0 deletions docs/Containers/Telegraf.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ $ docker-compose restart telegraf
```

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

## Getting a clean slate { #cleanSlate }

Expand Down

0 comments on commit bbcb34c

Please sign in to comment.