Skip to content

Instantly share code, notes, and snippets.

@nheath
Created September 13, 2017 17:08
Show Gist options
  • Select an option

  • Save nheath/fa3daa527c12b8b654c6188f1e1a9401 to your computer and use it in GitHub Desktop.

Select an option

Save nheath/fa3daa527c12b8b654c6188f1e1a9401 to your computer and use it in GitHub Desktop.

Revisions

  1. Nick Heath created this gist Sep 13, 2017.
    32 changes: 32 additions & 0 deletions telegraf.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    [agent]
    interval = "10s"
    round_interval = true
    metric_buffer_limit = 5000
    flush_buffer_when_full = true
    collection_jitter = "0s"
    flush_interval = "10s"
    flush_jitter = "0s"
    debug = true
    quiet = false
    logfile = "/logs/telegraf.log"
    hostname = ""

    [[outputs.influxdb]]
    urls = ["http://influxdb-server:8086"]
    database = "test"
    precision = "s"
    timeout = "5s"

    [[inputs.win_perf_counters]]
    [[inputs.win_perf_counters.tags]]
    test = "foo"
    [[inputs.win_perf_counters.object]]
    ObjectName = "System"
    Measurement = "Processor"
    Counters = [
    "Context Switches/sec",
    "Processor Queue Length",
    "System Calls/sec",
    "Threads",
    ]
    Instances = ["------"]