Document how to increase the file limit in the ping input

This commit is contained in:
Daniel Nelson 2019-02-20 17:57:08 -08:00
parent 0a01713bcc
commit f8cc9719a2
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 21 additions and 0 deletions

View File

@ -40,6 +40,27 @@ apt-get install iputils-ping
# arguments = ["-c", "3"]
```
#### File Limit
Since this plugin runs the ping command, it may need to open several files per
host. With a large host list you may receive a `too many open files` error.
To increase this limit on platforms using systemd it must be done in the
service file.
Find the service unit file:
```
$ systemctl show telegraf.service -p FragmentPath
FragmentPath=/lib/systemd/system/telegraf.service
```
Set the file number limit:
```
[Service]
LimitNOFILE=4096
```
### Metrics:
- ping