From 5b1e59a48c03133ee4bd2c06a676a41b107e58a5 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Fri, 22 Apr 2016 19:15:07 -0600 Subject: [PATCH] filestat plugin config fixup --- etc/telegraf.conf | 6 +++--- plugins/inputs/filestat/filestat.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/telegraf.conf b/etc/telegraf.conf index 627f6d64c..dc41eaa96 100644 --- a/etc/telegraf.conf +++ b/etc/telegraf.conf @@ -459,7 +459,7 @@ # ## Collection Delay (required - must account for metrics availability via CloudWatch API) # delay = '1m' # -# ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid +# ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid # ## gaps or overlap in pulled data # interval = '1m' # @@ -471,7 +471,7 @@ # ## Refreshes Namespace available metrics every 1h # #[[inputs.cloudwatch.metrics]] # # names = ['Latency', 'RequestCount'] -# # +# # # # ## Dimension filters for Metric (optional) # # [[inputs.cloudwatch.metrics.dimensions]] # # name = 'LoadBalancerName' @@ -585,7 +585,7 @@ # ## Files to gather stats about. # ## These accept standard unix glob matching rules, but with the addition of # ## ** as a "super asterisk". See https://github.com/gobwas/glob. -# ["/etc/telegraf/telegraf.conf", "/var/log/**.log"] +# files = ["/etc/telegraf/telegraf.conf", "/var/log/**.log"] # ## If true, read the entire file and calculate an md5 checksum. # md5 = false diff --git a/plugins/inputs/filestat/filestat.go b/plugins/inputs/filestat/filestat.go index c0b70c878..e280cbb1b 100644 --- a/plugins/inputs/filestat/filestat.go +++ b/plugins/inputs/filestat/filestat.go @@ -20,7 +20,7 @@ const sampleConfig = ` ## Files to gather stats about. ## These accept standard unix glob matching rules, but with the addition of ## ** as a "super asterisk". See https://github.com/gobwas/glob. - ["/etc/telegraf/telegraf.conf", "/var/log/**.log"] + files = ["/etc/telegraf/telegraf.conf", "/var/log/**.log"] ## If true, read the entire file and calculate an md5 checksum. md5 = false `