Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .templates/telegraf/service.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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 }