Skip to content

Telegraf: fix deprecated options and doc typos #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
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
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