Update readme for varnish input
This commit is contained in:
parent
3f158429bc
commit
bd54e4a002
|
@ -5,22 +5,25 @@ 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
|
|
||||||
|
|
||||||
## 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 = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
|
## stats may also be set to ["*"], which will collect all stats
|
||||||
|
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:
|
||||||
|
|
Loading…
Reference in New Issue