Update readme for varnish input

This commit is contained in:
Daniel Nelson 2019-01-03 11:35:13 -08:00
parent 3f158429bc
commit bd54e4a002
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 16 additions and 13 deletions

View File

@ -5,7 +5,6 @@ This plugin gathers stats from [Varnish HTTP Cache](https://varnish-cache.org/)
### Configuration: ### Configuration:
```toml ```toml
# A plugin to collect stats from Varnish HTTP Cache
[[inputs.varnish]] [[inputs.varnish]]
## If running as a restricted user you can prepend sudo for additional access: ## If running as a restricted user you can prepend sudo for additional access:
#use_sudo = false #use_sudo = false
@ -13,14 +12,18 @@ This plugin gathers stats from [Varnish HTTP Cache](https://varnish-cache.org/)
## The default location of the varnishstat binary can be overridden with: ## The default location of the varnishstat binary can be overridden with:
binary = "/usr/bin/varnishstat" binary = "/usr/bin/varnishstat"
## By default, telegraf gathers stats for 3 metric points. ## By default, telegraf gather stats for 3 metric points.
## Setting stats will override the defaults shown below. ## Setting stats will override the defaults shown below.
## stats may also be set to ["all"], which will collect all stats ## Glob matching can be used, ie, stats = ["MAIN.*"]
## stats may also be set to ["*"], which will collect all stats
stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"] stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
## Optional name for the varnish instance (or working directory) to query ## Optional name for the varnish instance (or working directory) to query
## Usually appened after -n in varnish cli ## Usually appened after -n in varnish cli
# instance_name = instanceName # instance_name = instanceName
## Timeout for varnishstat command
# timeout = "1s"
``` ```
### Measurements & Fields: ### Measurements & Fields: