Skip to content

Commit 705ffa1

Browse files
authored
Merge pull request #572 from ukkopahis/telegraf-fix-deprecated
Telegraf: fix deprecated options and doc typos
2 parents 759aad4 + d0018a5 commit 705ffa1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.templates/telegraf/iotstack_defaults/auto_include/inputs.docker.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
[[inputs.docker]]
44
endpoint = "unix:///var/run/docker.sock"
55
gather_services = false
6-
container_names = []
76
source_tag = false
87
container_name_include = []
98
container_name_exclude = []
109
timeout = "5s"
1110
perdevice = false
12-
total = true
11+
total_include = ["cpu", "blkio", "network"]
1312
docker_label_include = []
1413
docker_label_exclude = []
1514
tag_env = ["HEAP_SIZE"]

docs/Containers/Telegraf.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ The first time you launch the Telegraf container, the following structure will b
181181
```
182182
~/IOTstack/volumes/telegraf
183183
├── [drwxr-xr-x root ] additions
184-
│   ├── [-rw-r--r-- root ] inputs.docker.conf
185184
│   └── [-rw-r--r-- root ] inputs.mqtt_consumer.conf
186185
├── [-rw-r--r-- root ] telegraf.conf
187186
└── [-r--r--r-- root ] telegraf-reference.conf
@@ -200,7 +199,7 @@ The file:
200199
- 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.
201200
- is less than 30 lines and is significantly easier to understand than `telegraf-reference.conf`.
202201

203-
* `inputs.docker.conf` – see [Applying optional additions](#optionalAdditions) below.
202+
* `inputs.mqtt_consumer.conf` – see [Applying optional additions](#optionalAdditions) below.
204203

205204
The intention of this structure is that you:
206205

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

228227
### Applying optional additions { #optionalAdditions }
229228

0 commit comments

Comments
 (0)