Skip to content

Commit

Permalink
Merge pull request #572 from ukkopahis/telegraf-fix-deprecated
Browse files Browse the repository at this point in the history
Telegraf: fix deprecated options and doc typos
  • Loading branch information
Slyke authored Sep 11, 2022
2 parents 759aad4 + d0018a5 commit 705ffa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
[[inputs.docker]]
endpoint = "unix:///var/run/docker.sock"
gather_services = false
container_names = []
source_tag = false
container_name_include = []
container_name_exclude = []
timeout = "5s"
perdevice = false
total = true
total_include = ["cpu", "blkio", "network"]
docker_label_include = []
docker_label_exclude = []
tag_env = ["HEAP_SIZE"]
5 changes: 2 additions & 3 deletions docs/Containers/Telegraf.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ The first time you launch the Telegraf container, the following structure will b
```
~/IOTstack/volumes/telegraf
├── [drwxr-xr-x root ] additions
│   ├── [-rw-r--r-- root ] inputs.docker.conf
│   └── [-rw-r--r-- root ] inputs.mqtt_consumer.conf
├── [-rw-r--r-- root ] telegraf.conf
└── [-r--r--r-- root ] telegraf-reference.conf
Expand All @@ -200,7 +199,7 @@ The file:
- is created by removing all comment lines and blank lines from `telegraf-reference.conf`, leaving only the "active" configuration options, and then adding options necessary for IOTstack.
- is less than 30 lines and is significantly easier to understand than `telegraf-reference.conf`.

* `inputs.docker.conf` – see [Applying optional additions](#optionalAdditions) below.
* `inputs.mqtt_consumer.conf` – see [Applying optional additions](#optionalAdditions) below.

The intention of this structure is that you:

Expand All @@ -223,7 +222,7 @@ $ docker-compose restart telegraf
``` console
$ echo $(cat /boot/cmdline.txt) cgroup_memory=1 cgroup_enable=memory | sudo tee /boot/cmdline.txt
```
* `inputs.cpu_temp.conf' collects cpu temperature.
* `inputs.cpu_temp.conf` collects cpu temperature.

### Applying optional additions { #optionalAdditions }

Expand Down

0 comments on commit 705ffa1

Please sign in to comment.