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 SensorsIot#550
  • Loading branch information
ukkopahis committed Apr 30, 2022
1 parent 732889a commit 11fcaff
Show file tree
Hide file tree
Showing 2 changed files with 4 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

4 changes: 4 additions & 0 deletions docs/Containers/Telegraf.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ $ 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 Modquitto service, as such
you may want to edit `docker-compose.yml` and add `- mosquitto` to the
`depends_on:` of the mosquitto service.

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

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

0 comments on commit 11fcaff

Please sign in to comment.