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
This commit is contained in:
parent
d4b09df410
commit
2f73f95819
|
@ -31,9 +31,9 @@ var sampleConfig string = `
|
||||||
ObjectName = "Processor"
|
ObjectName = "Processor"
|
||||||
Instances = ["*"]
|
Instances = ["*"]
|
||||||
Counters = [
|
Counters = [
|
||||||
"% Idle Time", "% Interrupt Time",
|
"%% Idle Time", "%% Interrupt Time",
|
||||||
"% Privileged Time", "% User Time",
|
"%% Privileged Time", "%% User Time",
|
||||||
"% Processor Time"
|
"%% Processor Time"
|
||||||
]
|
]
|
||||||
Measurement = "win_cpu"
|
Measurement = "win_cpu"
|
||||||
# Set to true to include _Total instance when querying for all (*).
|
# Set to true to include _Total instance when querying for all (*).
|
||||||
|
@ -46,8 +46,8 @@ var sampleConfig string = `
|
||||||
ObjectName = "LogicalDisk"
|
ObjectName = "LogicalDisk"
|
||||||
Instances = ["*"]
|
Instances = ["*"]
|
||||||
Counters = [
|
Counters = [
|
||||||
"% Idle Time", "% Disk Time","% Disk Read Time",
|
"%% Idle Time", "%% Disk Time","%% Disk Read Time",
|
||||||
"% Disk Write Time", "% User Time", "Current Disk Queue Length"
|
"%% Disk Write Time", "%% User Time", "Current Disk Queue Length"
|
||||||
]
|
]
|
||||||
Measurement = "win_disk"
|
Measurement = "win_disk"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue