The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Telegraf
By Guest on 8th November 2022 02:55:26 AM | Syntax: TEXT | Views: 1



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1.  
  2. # Telegraf Configuration
  3. #
  4. # Telegraf is entirely plugin driven. All metrics are gathered from the
  5. # declared inputs, and sent to the declared outputs.
  6. #
  7. # Plugins must be declared in here to be active.
  8. # To deactivate a plugin, comment out the name and any variables.
  9. #
  10. # Use 'telegraf -config telegraf.conf -test' to see what metrics a config
  11. # file would generate.
  12. #
  13. # Environment variables can be used anywhere in this config file, simply prepend
  14. # them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
  15. # for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
  16.  
  17.  
  18. # Global tags can be specified here in key="value" format.
  19. [global_tags]
  20.   # dc = "us-east-1" # will tag all metrics with dc=us-east-1
  21.   # rack = "1a"
  22.   ## Environment variables can be used as tags, and throughout the config file
  23.   # user = "$USER"
  24.  
  25.  
  26. # Configuration for telegraf agent
  27. [agent]
  28.   ## Default data collection interval for all inputs
  29.   interval = "1s"
  30.   ## Rounds collection interval to 'interval'
  31.   ## ie, if interval="10s" then always collect on :00, :10, :20, etc.
  32.   round_interval = false
  33.  
  34.   ## Telegraf will send metrics to outputs in batches of at
  35.   ## most metric_batch_size metrics.
  36.   metric_batch_size = 1000
  37.   ## For failed writes, telegraf will cache metric_buffer_limit metrics for each
  38.   ## output, and will flush this buffer on a successful write. Oldest metrics
  39.   ## are dropped first when this buffer fills.
  40.   metric_buffer_limit = 10000
  41.  
  42.   ## Collection jitter is used to jitter the collection by a random amount.
  43.   ## Each plugin will sleep for a random time within jitter before collecting.
  44.   ## This can be used to avoid many plugins querying things like sysfs at the
  45.   ## same time, which can have a measurable effect on the system.
  46.   collection_jitter = "0s"
  47.  
  48.   ## Default flushing interval for all outputs. You shouldn't set this below
  49.   ## interval. Maximum flush_interval will be flush_interval + flush_jitter
  50.   flush_interval = "30s"
  51.   ## Jitter the flush interval by a random amount. This is primarily to avoid
  52.   ## large write spikes for users running a large number of telegraf instances.
  53.   ## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
  54.   flush_jitter = "0s"
  55.  
  56.   ## By default, precision will be set to the same timestamp order as the
  57.   ## collection interval, with the maximum being 1s.
  58.   ## Precision will NOT be used for service inputs, such as logparser and statsd.
  59.   ## Valid values are "Nns", "Nus" (or "Nµs"), "Nms", "Ns".
  60.   precision = ""
  61.   ## Run telegraf in debug mode
  62.   debug = false
  63.   ## Run telegraf in quiet mode
  64.   quiet = true
  65.   ## Override default hostname, if empty use os.Hostname()
  66.   ## hostname = ""
  67.   ## If set to true, do no set the "host" tag in the telegraf agent.
  68.   omit_hostname = false
  69.   logfile = "/Program Files/Telegraf/telegraf.log"
  70.  
  71.  
  72. ###############################################################################
  73. #                            OUTPUT PLUGINS                                   #
  74. ###############################################################################
  75.  
  76. # # Configuration for Wavefront proxy to send metrics to
  77. [[outputs.wavefront]]
  78.   # UPDATE THIS TO PROPER HOST FOR WAVEFRONT PROXY
  79.   # host = "CBD-DIR-PERF-VM"
  80.   # port = 2878
  81.   url = "https://vmwareprod.wavefront.com"
  82.   token = "59fd91a2-9a95-44a4-8a46-aaf4d9012148"
  83.  
  84. ###############################################################################
  85. #                            INPUT PLUGINS                                    #
  86. ###############################################################################
  87. [[inputs.win_perf_counters]]
  88.   [[inputs.win_perf_counters.object]]
  89.     ObjectName = "Processor"
  90.     Instances = ["*"]
  91.     Counters = ["% Idle Time", "% Interrupt Time", "% Privileged Time", "% Processor Time", "% User Time", "Interrupts/sec"]
  92.     Measurement = "win.cpu"
  93.     IncludeTotal = true
  94.  
  95.   [[inputs.win_perf_counters.object]]
  96.     ObjectName = "LogicalDisk"
  97.     Instances = ["*"]
  98.     Counters = ["% Disk Read Time", "% Disk Write Time", "% Free Space", "% Idle Time", "Avg. Disk Bytes/Read", "Avg. Disk Bytes/Write", "Avg. Disk Queue Length", "Avg. Disk sec/Read", "Avg. Disk sec/Write", "Avg. Disk Write Queue Length", "Free Megabytes", "Split IO/Sec"]
  99.     Measurement = "win.disk"
  100.  
  101.   [[inputs.win_perf_counters.object]]  
  102.     ObjectName = "Memory"      
  103.     Counters = ["Available Bytes", "Cache Bytes", "Committed Bytes", "Cache Faults/sec", "Demand Zero Faults/sec", "Page Faults/sec", "Pages/sec", "Transition Faults/sec", "Pool Nonpaged Bytes", "Pool Paged Bytes"] 
  104.     Instances = ["------"]     
  105.     Measurement = "win.mem"
  106.  
  107.   [[inputs.win_perf_counters.object]]
  108.     ObjectName = "Network Interface"
  109.     Counters = ["Bytes Received/sec", "Bytes Sent/sec", "Packets Outbound Discarded", "Packets Outbound Errors", "Packets Received Discarded", "Packets Received Errors", "Packets Received/sec", "Packets Sent/sec"]
  110.     Instances = ["*"]
  111.     Measurement = "win.net"
  112.     IncludeTotal = true
  113.        
  114.   [[inputs.win_perf_counters.object]]
  115.     ObjectName = "Paging File"
  116.     Counters = ["% Usage"]
  117.     Instances = ["*"]
  118.     Measurement = "win.paging"
  119.     IncludeTotal = true
  120.        
  121.   [[inputs.win_perf_counters.object]]
  122.     ObjectName = "Process"
  123.     Counters = ["% Privileged Time", "% Processor Time", "% User Time", "Elapsed Time", "Handle Count", "IO Read Bytes/sec", "IO Read Operations/sec", "IO Write Bytes/sec", "IO Write Operations/sec", "Page File Bytes", "Pool Nonpaged Bytes", "Pool Paged Bytes", "Private Bytes", "Thread Count", "Virtual Bytes", "Working Set", "Working Set - Private"]
  124.     Instances = ["_Total", "telegraf", "RepMgr", "RepUtils", "RepUx", "RepWSC"]         # Replace this with a list of process names that you want to monitor. "_Total" is all processes combined
  125.     Measurement = "win.process"
  126.      
  127.   [[inputs.win_perf_counters.object]]
  128.     ObjectName = "System"
  129.     Counters = ["Context Switches/sec", "Processes", "Processor Queue Length", "System Calls/sec", "System Up Time", "Threads"]
  130.     Instances = ["------"]
  131.     Measurement = "win.system"
  132.  
  133.   [[inputs.win_perf_counters.object]]
  134.     ObjectName = "TCPv4"
  135.     Counters = ["Connection Failures", "Connections Active", "Connections Established", "Connections Passive", "Connection Reset", "Segments Received/sec", "Segments Retransmitted/sec", "Segments Sent/sec"]
  136.     Instances = ["------"]
  137.     Measurement = "win.net.tcp"
  138.  
  139.   [[inputs.win_perf_counters.object]]
  140.     ObjectName = "TCPv6"
  141.     Counters = ["Connection Failures", "Connections Active", "Connections Established", "Connections Passive", "Connection Reset", "Segments Received/sec", "Segments Retransmitted/sec", "Segments Sent/sec"]
  142.     Instances = ["------"]
  143.     Measurement = "win.net.tcp"
  144.  
  145.   [[inputs.win_perf_counters.object]]
  146.     ObjectName = "UDPv4"
  147.     Counters = ["Datagrams No Port/sec", "Datagrams Received/Errors", "Datagrams Received/sec", "Datagrams Sent/sec"]
  148.     Instances = ["------"]
  149.     Measurement = "win.net.udp"
  150.  
  151.   [[inputs.win_perf_counters.object]]
  152.     ObjectName = "UDPv6"
  153.     Counters = ["Datagrams No Port/sec", "Datagrams Received/Errors", "Datagrams Received/sec", "Datagrams Sent/sec"]
  154.     Instances = ["------"]
  155.     Measurement = "win.net.udp"



  • Recent Pastes