Update win_perf_counters sample config (#6286)

Remove extra percent from win_perf_counters sample config and have it
mirror the config provided in the Windows package.
This commit is contained in:
Daniel Nelson 2019-08-20 17:12:21 -07:00 committed by GitHub
parent d3cf7d669b
commit ac66838f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 73 additions and 11 deletions

View File

@ -244,8 +244,8 @@
"% Disk Time", "% Disk Time",
"% Disk Read Time", "% Disk Read Time",
"% Disk Write Time", "% Disk Write Time",
"Current Disk Queue Length",
"% Free Space", "% Free Space",
"Current Disk Queue Length",
"Free Megabytes", "Free Megabytes",
] ]
Measurement = "win_disk" Measurement = "win_disk"
@ -311,7 +311,6 @@
"Standby Cache Reserve Bytes", "Standby Cache Reserve Bytes",
"Standby Cache Normal Priority Bytes", "Standby Cache Normal Priority Bytes",
"Standby Cache Core Bytes", "Standby Cache Core Bytes",
] ]
# Use 6 x - to remove the Instance bit from the query. # Use 6 x - to remove the Instance bit from the query.
Instances = ["------"] Instances = ["------"]

View File

@ -36,9 +36,12 @@ var sampleConfig = `
ObjectName = "Processor" ObjectName = "Processor"
Instances = ["*"] Instances = ["*"]
Counters = [ Counters = [
"%% Idle Time", "%% Interrupt Time", "% Idle Time",
"%% Privileged Time", "%% User Time", "% Interrupt Time",
"%% Processor Time" "% Privileged Time",
"% User Time",
"% Processor Time",
"% DPC 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 (*).
@ -51,14 +54,56 @@ var sampleConfig = `
ObjectName = "LogicalDisk" ObjectName = "LogicalDisk"
Instances = ["*"] Instances = ["*"]
Counters = [ Counters = [
"%% Idle Time", "%% Disk Time","%% Disk Read Time", "% Idle Time",
"%% Disk Write Time", "%% User Time", "Current Disk Queue Length" "% Disk Time",
"% Disk Read Time",
"% Disk Write Time",
"% User Time",
"% Free Space",
"Current Disk Queue Length",
"Free Megabytes",
] ]
Measurement = "win_disk" Measurement = "win_disk"
[[inputs.win_perf_counters.object]]
ObjectName = "PhysicalDisk"
Instances = ["*"]
Counters = [
"Disk Read Bytes/sec",
"Disk Write Bytes/sec",
"Current Disk Queue Length",
"Disk Reads/sec",
"Disk Writes/sec",
"% Disk Time",
"% Disk Read Time",
"% Disk Write Time",
]
Measurement = "win_diskio"
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Instances = ["*"]
Counters = [
"Bytes Received/sec",
"Bytes Sent/sec",
"Packets Received/sec",
"Packets Sent/sec",
"Packets Received Discarded",
"Packets Outbound Discarded",
"Packets Received Errors",
"Packets Outbound Errors",
]
Measurement = "win_net"
[[inputs.win_perf_counters.object]] [[inputs.win_perf_counters.object]]
ObjectName = "System" ObjectName = "System"
Counters = ["Context Switches/sec","System Calls/sec"] Counters = [
"Context Switches/sec",
"System Calls/sec",
"Processor Queue Length",
"System Up Time",
]
Instances = ["------"] Instances = ["------"]
Measurement = "win_system" Measurement = "win_system"
@ -67,12 +112,30 @@ var sampleConfig = `
# such as from the Memory object. # such as from the Memory object.
ObjectName = "Memory" ObjectName = "Memory"
Counters = [ Counters = [
"Available Bytes", "Cache Faults/sec", "Demand Zero Faults/sec", "Available Bytes",
"Page Faults/sec", "Pages/sec", "Transition Faults/sec", "Cache Faults/sec",
"Pool Nonpaged Bytes", "Pool Paged Bytes" "Demand Zero Faults/sec",
"Page Faults/sec",
"Pages/sec",
"Transition Faults/sec",
"Pool Nonpaged Bytes",
"Pool Paged Bytes",
"Standby Cache Reserve Bytes",
"Standby Cache Normal Priority Bytes",
"Standby Cache Core Bytes",
] ]
Instances = ["------"] # Use 6 x - to remove the Instance bit from the counterPath. Instances = ["------"] # Use 6 x - to remove the Instance bit from the counterPath.
Measurement = "win_mem" Measurement = "win_mem"
[[inputs.win_perf_counters.object]]
# Example query where the Instance portion must be removed to get data back,
# such as from the Paging File object.
ObjectName = "Paging File"
Counters = [
"% Usage",
]
Instances = ["_Total"]
Measurement = "win_swap"
` `
type Win_PerfCounters struct { type Win_PerfCounters struct {