Tweak formatting of varnish README

This commit is contained in:
Daniel Nelson 2017-08-09 11:48:12 -07:00
parent 3c14b46f6f
commit 84ce9629a8
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 5 additions and 6 deletions

View File

@ -374,18 +374,17 @@ other::---
``` ```
**Sudo privileges**: **Sudo privileges**:
```bash If you use this method, you will need the following in your telegraf config:
# If you use this method, you will need the following in your telegraf config: ```toml
[[inputs.varnish]] [[inputs.varnish]]
use_sudo = true use_sudo = true
```
You will also need to update your sudoers file:
```bash
$ visudo $ visudo
# Add the following line: # Add the following line:
telegraf ALL=(ALL) NOPASSWD: /usr/bin/varnishstat telegraf ALL=(ALL) NOPASSWD: /usr/bin/varnishstat
$ grep varnish /etc/sudoers
telegraf ALL = NOPASSWD: /usr/bin/varnishstat
``` ```
Please use the solution you see as most appropriate. Please use the solution you see as most appropriate.