Windows Performance Counters

Total CPU

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        # Processor usage, alternative to native, reports on a per core.
        ObjectName = "Processor"
        Instances = ["*"]
        Counters = ["% Idle Time", "% Interrupt Time", "% Privileged Time", "% User Time", "% Processor Time"]
        Measurement = "win_cpu"
        #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
Example Output:
{
    "fields": {
        "Percent_DPC_Time": 0,
        "Percent_Idle_Time": 99.42594146728516,
        "Percent_Interrupt_Time": 0,
        "Percent_Privileged_Time": 0.19157950580120087,
        "Percent_Processor_Time": 0.5740617513656616,
        "Percent_User_Time": 0
    },
    "name": "win_cpu",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "instance": "_Total",
        "objectname": "Processor"
    },
    "timestamp": 1576052252
}

Total Logical DISK

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        # Disk times and queues
        ObjectName = "LogicalDisk"
        Instances = ["*"]
        Counters = ["% Idle Time", "% Disk Time","% Disk Read Time", "% Disk Write Time", "% User Time", "Current Disk Queue Length"]
        Measurement = "win_disk"
        #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
Example Output:
{
    "fields": {
        "Current_Disk_Queue_Length": 0,
        "Free_Megabytes": 6629,
        "Percent_Disk_Read_Time": 0,
        "Percent_Disk_Time": 0,
        "Percent_Disk_Write_Time": 0,
        "Percent_Free_Space": 12.948277473449707,
        "Percent_Idle_Time":
        98.8205795288086
    },
    "name": "win_disk",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "instance": "_Total",
        "objectname": "LogicalDisk"
    },
    "timestamp": 1576052252
}

Total Disk I/O

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        ObjectName = "PhysicalDisk"
        Instances = ["*"]
        Counters = [ "Disk Read Bytes/sec", "Disk Write Bytes/sec", "Disk Reads/sec", "Disk Writes/sec", "% Disk Time", "% Disk Read Time", "% Disk Write Time",]
        Measurement = "win_diskio"
Example Output:
{
    "fields": {
        "Current_Disk_Queue_Length": 0,
        "Disk_Read_Bytes_persec": 0,
        "Disk_Reads_persec": 0,
        "Disk_Write_Bytes_persec": 0,
        "Disk_Writes_persec": 0,
        "Percent_Disk_Read_Time": 0,
        "Percent_Disk_Time": 0,
        "Percent_Disk_Write_Time": 0
    },
    "name": "win_diskio",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "instance": "_Total",
        "objectname": "PhysicalDisk"
    },
    "timestamp": 1576052252
}

Network

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        # more counters for the Network Interface Object can be found at
        # https://msdn.microsoft.com/en-us/library/ms803962.aspx
        ObjectName = "Network Interface"
        Counters = ["Bytes Received/sec","Bytes Sent/sec","Packets Received/sec","Packets Sent/sec"]
        Instances = ["*"] # Use 6 x - to remove the Instance bit from the query.
        Measurement = "win_net"
        #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
Example Output:
{
    "fields": {
        "Bytes_Received_persec": 0,
        "Bytes_Sent_persec": 0,
        "Packets_Outbound_Discarded": 0,
        "Packets_Outbound_Errors": 0,
        "Packets_Received_Discarded": 0,
        "Packets_Received_Errors": 0,
        "Packets_Received_persec": 0,
        "Packets_Sent_persec": 0
    },
    "name": "win_net",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "instance": "Intel[R] PRO_1000 MT-Networkinterface",
        "objectname": "Network Interface"
    },
    "timestamp": 1576052580
}

Windows System

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        ObjectName = "System"
        Counters = ["Context Switches/sec","System Calls/sec", "Processor Queue Length"]
        Instances = ["------"]
        Measurement = "win_system"
        #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
Example Output:
{
    "fields": {
        "Context_Switches_persec": 1987.626953125,
        "Processor_Queue_Length": 0,
        "System_Calls_persec": 158895.703125,
        "System_Up_Time": 13216646
    },
    "name": "win_system",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "objectname": "System"
    },
    "timestamp": 1576052252
}

Windows Memory

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        # Example query where the Instance portion must be removed to get data back, such as from the Memory object.
        ObjectName = "Memory"
        Counters = ["Available Bytes","Cache Faults/sec","Demand Zero Faults/sec","Page Faults/sec","Pages/sec","Transition Faults/sec","Pool Nonpaged Bytes","Pool Paged Bytes"]
        Instances = ["------"] # Use 6 x - to remove the Instance bit from the query.
        Measurement = "win_mem"
        #IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
Example Output:
{
    "fields": {
        "Available_Bytes": 1430695936,
        "Cache_Faults_persec": 7.962451457977295,
        "Demand_Zero_Faults_persec": 1.9906128644943237,
        "Page_Faults_persec": 10.948370933532715,
        "Pages_persec": 0,
        "Pool_Nonpaged_Bytes": 136237056,
        "Pool_Paged_Bytes": 172158976,
        "Standby_Cache_Core_Bytes": 0,
        "Standby_Cache_Normal_Priority_Bytes": 1412927488,
        "Standby_Cache_Reserve_Bytes": 0,
        "Transition_Faults_persec": 8.957757949829102
    },
    "name": "win_mem",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "objectname": "Memory"
    },
    "timestamp": 1576052252
}

Windows Swap

Configuration:
[[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.object]]
        ObjectName = "Paging File"
        Counters = [ "% Usage",]
        Instances = ["_Total"]
        Measurement = "win_swap"
Example Output:
{
    "fields": {
        "Percent_Usage": 0.14376239478588104
    },
    "name": "win_swap",
    "tags": {
        "host": "VSWTIBADM01",
        "id": "VSWTIBADM01",
        "instance": "_Total",
        "objectname": "Paging File"
    },
    "timestamp": 1576052252
}