diff --git a/.templates/telegraf/service.yml b/.templates/telegraf/service.yml index 1b5b97e9..2e0eb2b9 100644 --- a/.templates/telegraf/service.yml +++ b/.templates/telegraf/service.yml @@ -13,5 +13,4 @@ telegraf: - /var/run/docker.sock:/var/run/docker.sock:ro depends_on: - influxdb - - mosquitto diff --git a/docs/Containers/Telegraf.md b/docs/Containers/Telegraf.md index 83e27142..5c6cd75b 100644 --- a/docs/Containers/Telegraf.md +++ b/docs/Containers/Telegraf.md @@ -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 }