From 2f73f9581924f2ec5467e388229baa80d5e3a4cf Mon Sep 17 00:00:00 2001 From: Christoph Wegener Date: Sat, 30 Jan 2016 17:50:30 +1100 Subject: [PATCH] Replace all single percentage characters with double percentage characters in sampleConfig string so that fmt.Printf will interpret them as literal percentage characters when running 'telegraf.exe -sample-config' closes #620 --- plugins/inputs/win_perf_counters/win_perf_counters.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/inputs/win_perf_counters/win_perf_counters.go b/plugins/inputs/win_perf_counters/win_perf_counters.go index e1ad45e09..ff6e1d725 100644 --- a/plugins/inputs/win_perf_counters/win_perf_counters.go +++ b/plugins/inputs/win_perf_counters/win_perf_counters.go @@ -31,9 +31,9 @@ var sampleConfig string = ` ObjectName = "Processor" Instances = ["*"] Counters = [ - "% Idle Time", "% Interrupt Time", - "% Privileged Time", "% User Time", - "% Processor Time" + "%% Idle Time", "%% Interrupt Time", + "%% Privileged Time", "%% User Time", + "%% Processor Time" ] Measurement = "win_cpu" # Set to true to include _Total instance when querying for all (*). @@ -46,8 +46,8 @@ var sampleConfig string = ` ObjectName = "LogicalDisk" Instances = ["*"] Counters = [ - "% Idle Time", "% Disk Time","% Disk Read Time", - "% Disk Write Time", "% User Time", "Current Disk Queue Length" + "%% Idle Time", "%% Disk Time","%% Disk Read Time", + "%% Disk Write Time", "%% User Time", "Current Disk Queue Length" ] Measurement = "win_disk"