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 May 5, 2022
1 parent 732889a commit e4a4c99
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 @@ -248,6 +248,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.

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

Expand Down

0 comments on commit e4a4c99

Please sign in to comment.