Skip to content

Commit d074e9e

Browse files
sfox-xmattersrobinpercy-xm
authored andcommitted
Adding Varnish HTTP Cache input plugin
1 parent 36b9e2e commit d074e9e

File tree

5 files changed

+952
-0
lines changed

5 files changed

+952
-0
lines changed

etc/telegraf.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,3 +1505,13 @@
15051505
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
15061506
# data_format = "influx"
15071507

1508+
# a plugin to collect stats from varnish
1509+
# [[inputs.varnish]]
1510+
# ## The default location of the varnishstat binary can be overridden with:
1511+
# binary = "/usr/bin/varnishstat"
1512+
#
1513+
# ## By default, telegraf gather stats for 3 metric points.
1514+
# ## Setting stats will override the defaults (["MAIN.cache_hit","MAIN.cache_miss","MAIN.uptime"]).
1515+
# ## stats may also be set to ["all"], which will collect all stats
1516+
# stats = ["MAIN.cache_hit","MAIN.cache_miss","MAIN.uptime"]
1517+

plugins/inputs/all/all.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import (
6161
_ "github.com/influxdata/telegraf/plugins/inputs/trig"
6262
_ "github.com/influxdata/telegraf/plugins/inputs/twemproxy"
6363
_ "github.com/influxdata/telegraf/plugins/inputs/udp_listener"
64+
_ "github.com/influxdata/telegraf/plugins/inputs/varnish"
6465
_ "github.com/influxdata/telegraf/plugins/inputs/win_perf_counters"
6566
_ "github.com/influxdata/telegraf/plugins/inputs/zfs"
6667
_ "github.com/influxdata/telegraf/plugins/inputs/zookeeper"

0 commit comments

Comments
 (0)