Windows Overview

Dashboard

Windows metrics Dashboard using telegraf
Last updated: 3 months ago

Downloads: 129

  • win3.png
    win3.png
  • win2.png
    win2.png
  • win1.png
    win1.png

A dashboard using Telegraf and the Windows Performance Counters to display windows performance metrics.

Collector Configuration Details

# Telegraf configuration
[global_tags]
[agent]
  interval = "10s"
  round_interval = true

  metric_buffer_limit = 1000
  flush_buffer_when_full = true
  collection_jitter = "0s"

  flush_interval = "10s"
  flush_jitter = "0s"

  debug = false
  quiet = false
  logfile = "/Program Files/Telegraf/telegraf.log"

  hostname = ""


###############################################################################
#                                  OUTPUTS                                    #
###############################################################################

# Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
  urls = ["http://influxserver:8086"] # required
  database = "telegraf"
  precision = "s"
  timeout = "5s"

###############################################################################
#                                  INPUTS                                                                                                               #
###############################################################################

# Windows Performance Counters plugin.
# See more configuration examples at:
#   https://github.com/influxdata/telegraf/tree/master/plugins/inputs/win_perf_counters

[[inputs.win_perf_counters]]
  PrintValid = false
  [[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"
    # Set to true to include _Total instance when querying for all (*).
    #IncludeTotal=false
    
    [[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"

    [[inputs.win_perf_counters.object]]
      # Disk times and queues
      ObjectName = "PhysicalDisk"
      Instances = ["*"]
      Counters = [
        "Disk Read Bytes/sec",
    "Disk Write Bytes/sec",
    "Avg. Disk Queue Length",
    "Current Disk Queue Length",
    "Avg. Disk sec/Read",
    "Avg. Disk sec/Write",
    "Split IO/sec",
      ]
      Measurement = "win_physdisk"
      # Set to true to include _Total instance when querying for all (*).
      #IncludeTotal=false

    [[inputs.win_perf_counters.object]]
      # Disk times and queues
      ObjectName = "Network Interface"
      Instances = ["*"]
      Counters = [
        "Bytes Received/sec",
    "Bytes Sent/sec",
    "Packets Sent/sec",
    "Packets Received/sec",
      ]
      Measurement = "win_net"
      # Set to true to include _Total instance when querying for all (*).
      #IncludeTotal=false

  [[inputs.win_perf_counters.object]]
    ObjectName = "System"
    Counters = [
      "Context Switches/sec",
      "System Calls/sec",
      "Processor Queue Length",
    ]
    Instances = ["------"]
    Measurement = "win_system"
    # Set to true to include _Total instance when querying for all (*).
    #IncludeTotal=false

  [[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",
     "Page Reads/sec",
     "Page Writes/sec",
      "Transition Faults/sec",
      "Pool Nonpaged Bytes",
      "Pool Paged Bytes",
     "Cache Bytes",
    ]
    # Use 6 x - to remove the Instance bit from the query.
    Instances = ["------"]
    Measurement = "win_mem"
    # Set to true to include _Total instance when querying for all (*).
    #IncludeTotal=false
Dependencies: