tail plugin: Allow to set "bucket" metrics type
[collectd.git] / src / collectd.conf.in
1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
6
7 ##############################################################################
8 # Global                                                                     #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon.                                            #
11 ##############################################################################
12
13 #Hostname    "localhost"
14 #FQDNLookup   true
15 #BaseDir     "@localstatedir@/lib/@PACKAGE_NAME@"
16 #PIDFile     "@localstatedir@/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@libdir@/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19
20 #----------------------------------------------------------------------------#
21 # When enabled, plugins are loaded automatically with the default options    #
22 # when an appropriate <Plugin ...> block is encountered.                     #
23 # Disabled by default.                                                       #
24 #----------------------------------------------------------------------------#
25 #AutoLoadPlugin false
26
27 #----------------------------------------------------------------------------#
28 # When enabled, internal statistics are collected, using "collectd" as the   #
29 # plugin name.                                                               #
30 # Disabled by default.                                                       #
31 #----------------------------------------------------------------------------#
32 #CollectInternalStats false
33
34 #----------------------------------------------------------------------------#
35 # Interval at which to query values. This may be overwritten on a per-plugin #
36 # base by using the 'Interval' option of the LoadPlugin block:               #
37 #   <LoadPlugin foo>                                                         #
38 #       Interval 60                                                          #
39 #   </LoadPlugin>                                                            #
40 #----------------------------------------------------------------------------#
41 #Interval     10
42
43 #MaxReadInterval 86400
44 #Timeout         2
45 #ReadThreads     5
46 #WriteThreads    5
47
48 # Limit the size of the write queue. Default is no limit. Setting up a limit is
49 # recommended for servers handling a high volume of traffic.
50 #WriteQueueLimitHigh 1000000
51 #WriteQueueLimitLow   800000
52
53 ##############################################################################
54 # Logging                                                                    #
55 #----------------------------------------------------------------------------#
56 # Plugins which provide logging functions should be loaded first, so log     #
57 # messages generated when loading or configuring other plugins can be        #
58 # accessed.                                                                  #
59 ##############################################################################
60
61 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
62 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
63 @LOAD_PLUGIN_LOG_LOGSTASH@LoadPlugin log_logstash
64
65 #<Plugin logfile>
66 #       LogLevel @DEFAULT_LOG_LEVEL@
67 #       File STDOUT
68 #       Timestamp true
69 #       PrintSeverity false
70 #</Plugin>
71
72 #<Plugin log_logstash>
73 #       LogLevel @DEFAULT_LOG_LEVEL@
74 #       File "@localstatedir@/log/@PACKAGE_NAME@.json.log"
75 #</Plugin>
76
77 #<Plugin syslog>
78 #       LogLevel @DEFAULT_LOG_LEVEL@
79 #</Plugin>
80
81 ##############################################################################
82 # LoadPlugin section                                                         #
83 #----------------------------------------------------------------------------#
84 # Lines beginning with a single `#' belong to plugins which have been built  #
85 # but are disabled by default.                                               #
86 #                                                                            #
87 # Lines beginning with `##' belong to plugins which have not been built due  #
88 # to missing dependencies or because they have been deactivated explicitly.  #
89 ##############################################################################
90
91 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
92 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
93 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
94 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
95 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
96 #@BUILD_PLUGIN_AQUAERO_TRUE@LoadPlugin aquaero
97 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
98 #@BUILD_PLUGIN_BAROMETER_TRUE@LoadPlugin barometer
99 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
100 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
101 #@BUILD_PLUGIN_CEPH_TRUE@LoadPlugin ceph
102 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
103 #@BUILD_PLUGIN_CHRONY_TRUE@LoadPlugin chrony
104 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
105 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
106 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
107 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
108 #@BUILD_PLUGIN_CPUSLEEP_TRUE@LoadPlugin cpusleep
109 @LOAD_PLUGIN_CSV@LoadPlugin csv
110 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
111 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
112 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
113 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
114 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
115 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
116 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
117 #@BUILD_PLUGIN_DPDKEVENTS_TRUE@LoadPlugin dpdkevents
118 #@BUILD_PLUGIN_DPDKSTAT_TRUE@LoadPlugin dpdkstat
119 #@BUILD_PLUGIN_DRBD_TRUE@LoadPlugin drbd
120 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
121 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
122 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
123 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
124 #@BUILD_PLUGIN_FHCOUNT_TRUE@LoadPlugin fhcount
125 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
126 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
127 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
128 #@BUILD_PLUGIN_GPS_TRUE@LoadPlugin gps
129 #@BUILD_PLUGIN_GRPC_TRUE@LoadPlugin grpc
130 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
131 #@BUILD_PLUGIN_HUGEPAGES_TRUE@LoadPlugin hugepages
132 #@BUILD_PLUGIN_INTEL_PMU_TRUE@LoadPlugin intel_pmu
133 #@BUILD_PLUGIN_INTEL_RDT_TRUE@LoadPlugin intel_rdt
134 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
135 #@BUILD_PLUGIN_IPC_TRUE@LoadPlugin ipc
136 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
137 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
138 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
139 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
140 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
141 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
142 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
143 #@BUILD_PLUGIN_LUA_TRUE@LoadPlugin lua
144 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
145 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
146 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
147 #@BUILD_PLUGIN_MCELOG_TRUE@LoadPlugin mcelog
148 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
149 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
150 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
151 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
152 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
153 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
154 #@BUILD_PLUGIN_MQTT_TRUE@LoadPlugin mqtt
155 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
156 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
157 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
158 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
159 @LOAD_PLUGIN_NETWORK@LoadPlugin network
160 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
161 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
162 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
163 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
164 #@BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE@LoadPlugin notify_nagios
165 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
166 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
167 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
168 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
169 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
170 #@BUILD_PLUGIN_OPENLDAP_TRUE@LoadPlugin openldap
171 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
172 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
173 #@BUILD_PLUGIN_OVS_EVENTS_TRUE@LoadPlugin ovs_events
174 #@BUILD_PLUGIN_OVS_STATS_TRUE@LoadPlugin ovs_stats
175 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
176 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
177 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
178 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
179 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
180 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
181 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
182 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
183 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
184 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
185 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
186 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
187 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
188 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
189 #@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
190 #@BUILD_PLUGIN_SMART_TRUE@LoadPlugin smart
191 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
192 #@BUILD_PLUGIN_SNMP_AGENT_TRUE@LoadPlugin snmp_agent
193 #@BUILD_PLUGIN_STATSD_TRUE@LoadPlugin statsd
194 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
195 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
196 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
197 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
198 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
199 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
200 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
201 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
202 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
203 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
204 #@BUILD_PLUGIN_TURBOSTAT_TRUE@LoadPlugin turbostat
205 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
206 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
207 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
208 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
209 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
210 #@BUILD_PLUGIN_VIRT_TRUE@LoadPlugin virt
211 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
212 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
213 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
214 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
215 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
216 #@BUILD_PLUGIN_WRITE_KAFKA_TRUE@LoadPlugin write_kafka
217 #@BUILD_PLUGIN_WRITE_LOG_TRUE@LoadPlugin write_log
218 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
219 #@BUILD_PLUGIN_WRITE_PROMETHEUS_TRUE@LoadPlugin write_prometheus
220 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
221 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
222 #@BUILD_PLUGIN_WRITE_SENSU_TRUE@LoadPlugin write_sensu
223 #@BUILD_PLUGIN_WRITE_TSDB_TRUE@LoadPlugin write_tsdb
224 #@BUILD_PLUGIN_XENCPU_TRUE@LoadPlugin xencpu
225 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
226 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
227 #@BUILD_PLUGIN_ZONE_TRUE@LoadPlugin zone
228 #@BUILD_PLUGIN_ZOOKEEPER_TRUE@LoadPlugin zookeeper
229
230 ##############################################################################
231 # Plugin configuration                                                       #
232 #----------------------------------------------------------------------------#
233 # In this section configuration stubs for each plugin are provided. A desc-  #
234 # ription of those options is available in the collectd.conf(5) manual page. #
235 ##############################################################################
236
237 #<Plugin aggregation>
238 #  <Aggregation>
239 #    #Host "unspecified"
240 #    Plugin "cpu"
241 #    #PluginInstance "unspecified"
242 #    Type "cpu"
243 #    #TypeInstance "unspecified"
244 #
245 #    GroupBy "Host"
246 #    GroupBy "TypeInstance"
247 #
248 #    CalculateNum false
249 #    CalculateSum false
250 #    CalculateAverage true
251 #    CalculateMinimum false
252 #    CalculateMaximum false
253 #    CalculateStddev false
254 #  </Aggregation>
255 #</Plugin>
256
257 #<Plugin amqp>
258 #  <Publish "name">
259 #    Host "localhost"
260 #    Port "5672"
261 #    VHost "/"
262 #    User "guest"
263 #    Password "guest"
264 #    Exchange "amq.fanout"
265 #    RoutingKey "collectd"
266 #    Persistent false
267 #    StoreRates false
268 #    ConnectionRetryDelay 0
269 #  </Publish>
270 #</Plugin>
271
272 #<Plugin apache>
273 #  <Instance "local">
274 #    URL "http://localhost/status?auto"
275 #    User "www-user"
276 #    Password "secret"
277 #    CACert "/etc/ssl/ca.crt"
278 #  </Instance>
279 #</Plugin>
280
281 #<Plugin apcups>
282 #       Host "localhost"
283 #       Port "3551"
284 #       ReportSeconds true
285 #       PersistentConnection true
286 #</Plugin>
287
288 #<Plugin aquaero>
289 #       Device ""
290 #</Plugin>
291
292 #<Plugin ascent>
293 #       URL "http://localhost/ascent/status/"
294 #       User "www-user"
295 #       Password "secret"
296 #       CACert "/etc/ssl/ca.crt"
297 #</Plugin>
298
299 #<Plugin "barometer">
300 #   Device            "/dev/i2c-0";
301 #   Oversampling      512
302 #   PressureOffset    0.0
303 #   TemperatureOffset 0.0
304 #   Normalization     2
305 #   Altitude          238.0
306 #   TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
307 #</Plugin>
308
309 #<Plugin "battery">
310 #  ValuesPercentage false
311 #  ReportDegraded false
312 #  QueryStateFS false
313 #</Plugin>
314
315 #<Plugin "bind">
316 #  URL "http://localhost:8053/"
317 #  ParseTime       false
318 #  OpCodes         true
319 #  QTypes          true
320 #
321 #  ServerStats     true
322 #  ZoneMaintStats  true
323 #  ResolverStats   false
324 #  MemoryStats     true
325 #
326 #  <View "_default">
327 #    QTypes        true
328 #    ResolverStats true
329 #    CacheRRSets   true
330 #
331 #    Zone "127.in-addr.arpa/IN"
332 #  </View>
333 #</Plugin>
334
335 #<Plugin ceph>
336 #  LongRunAvgLatency false
337 #  ConvertSpecialMetricTypes true
338 #  <Daemon "osd.0">
339 #    SocketPath "/var/run/ceph/ceph-osd.0.asok"
340 #  </Daemon>
341 #  <Daemon "osd.1">
342 #    SocketPath "/var/run/ceph/ceph-osd.1.asok"
343 #  </Daemon>
344 #  <Daemon "mon.a">
345 #    SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
346 #  </Daemon>
347 #  <Daemon "mds.a">
348 #    SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
349 #  </Daemon>
350 #</Plugin>
351
352 #<Plugin chrony>
353 #       Host    "localhost"
354 #       Port    "323"
355 #       Timeout "2"
356 #</Plugin>
357
358 #<Plugin cgroups>
359 #  CGroup "libvirt"
360 #  IgnoreSelected false
361 #</Plugin>
362
363 #<Plugin cpu>
364 #  ReportByCpu true
365 #  ReportByState true
366 #  ValuesPercentage false
367 #  ReportNumCpu false
368 #  ReportGuestState false
369 #  SubtractGuestState true
370 #</Plugin>
371 #
372 #<Plugin csv>
373 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
374 #       StoreRates false
375 #</Plugin>
376
377 #<Plugin curl>
378 #  <Page "stock_quotes">
379 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
380 #    User "foo"
381 #    Password "bar"
382 #    Digest false
383 #    VerifyPeer true
384 #    VerifyHost true
385 #    CACert "/path/to/ca.crt"
386 #    Header "X-Custom-Header: foobar"
387 #    Post "foo=bar"
388 #
389 #    MeasureResponseTime false
390 #    MeasureResponseCode false
391 #    <Match>
392 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
393 #      DSType "GaugeAverage"
394 #      Type "stock_value"
395 #      Instance "AMD"
396 #    </Match>
397 #  </Page>
398 #</Plugin>
399
400 #<Plugin curl_json>
401 #  <URL "http://localhost:80/test.json">
402 #    Instance "test_http_json"
403 #    <Key "testArray/0">
404 #      Type "gauge"
405 #      # Expect: 1
406 #    </Key>
407 #    <Key "testArray/1">
408 #      Type "gauge"
409 #      # Expect: 2
410 #    </Key>
411 #    <Key "testArrayInbetween/0/blarg">
412 #      Type "gauge"
413 #      # Expect: 3
414 #    </Key>
415 #    <Key "testArrayInbetween/1/blub">
416 #      Type "gauge"
417 #      # Expect: 4
418 #    </Key>
419 #    <Key "testDirectHit">
420 #      Type "gauge"
421 #      # Expect: 5
422 #    </Key>
423 #    <Key "testSubLevelHit/oneMoreLevel">
424 #      Type "gauge"
425 #      # Expect: 6
426 #    </Key>
427 #  </URL>
428 # put this as test.json on your webserver, the above config demonstraces
429 # how to match them.
430 # {
431 #  "testArray":[1,2],
432 #  "testArrayInbetween":[{"blarg":3},{"blub":4}],
433 #  "testDirectHit":5,
434 #  "testSubLevelHit":{"oneMoreLevel":6}
435 # }
436 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
437 #  <URL "http://localhost:5984/_stats">
438 #    Instance "httpd"
439 #    <Key "httpd/requests/count">
440 #      Type "http_requests"
441 #    </Key>
442 #
443 #    <Key "httpd_request_methods/*/count">
444 #      Type "http_request_methods"
445 #    </Key>
446 #
447 #    <Key "httpd_status_codes/*/count">
448 #      Type "http_response_codes"
449 #    </Key>
450 #  </URL>
451 ## Database status metrics:
452 #  <URL "http://localhost:5984/_all_dbs">
453 #    Instance "dbs"
454 #    <Key "*/doc_count">
455 #      Type "gauge"
456 #    </Key>
457 #    <Key "*/doc_del_count">
458 #      Type "counter"
459 #    </Key>
460 #    <Key "*/disk_size">
461 #      Type "bytes"
462 #    </Key>
463 #  </URL>
464 #</Plugin>
465
466 #<Plugin curl_xml>
467 #  <URL "http://localhost/stats.xml">
468 #    Host "my_host"
469 #    Instance "some_instance"
470 #    User "collectd"
471 #    Password "thaiNg0I"
472 #    Digest false
473 #    VerifyPeer true
474 #    VerifyHost true
475 #    CACert "/path/to/ca.crt"
476 #    Header "X-Custom-Header: foobar"
477 #    Post "foo=bar"
478 #
479 #    <XPath "table[@id=\"magic_level\"]/tr">
480 #      Type "magic_level"
481 #      #InstancePrefix "prefix-"
482 #      InstanceFrom "td[1]"
483 #      ValuesFrom "td[2]/span[@class=\"level\"]"
484 #    </XPath>
485 #  </URL>
486 #</Plugin>
487
488 #<Plugin dbi>
489 #       <Query "num_of_customers">
490 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
491 #               <Result>
492 #                       Type "gauge"
493 #                       InstancesFrom "c_key"
494 #                       ValuesFrom "c_value"
495 #               </Result>
496 #       </Query>
497 #       <Database "customers_db">
498 #               Driver "mysql"
499 #               DriverOption "host" "localhost"
500 #               DriverOption "username" "collectd"
501 #               DriverOption "password" "AeXohy0O"
502 #               DriverOption "dbname" "custdb0"
503 #               #SelectDB "custdb0"
504 #               Query "num_of_customers"
505 #               #Query "..."
506 #               #Host "..."
507 #       </Database>
508 #</Plugin>
509
510 #<Plugin df>
511 #       Device "/dev/hda1"
512 #       Device "192.168.0.2:/mnt/nfs"
513 #       MountPoint "/home"
514 #       FSType "ext3"
515 #       IgnoreSelected false
516 #       ReportByDevice false
517 #       ReportInodes false
518 #       ValuesAbsolute true
519 #       ValuesPercentage false
520 #</Plugin>
521
522 #<Plugin disk>
523 #       Disk "/^[hs]d[a-f][0-9]?$/"
524 #       IgnoreSelected false
525 #       UseBSDName false
526 #       UdevNameAttr "DEVNAME"
527 #</Plugin>
528
529 #<Plugin dns>
530 #       Interface "eth0"
531 #       IgnoreSource "192.168.0.1"
532 #       SelectNumericQueryTypes true
533 #</Plugin>
534
535 #<Plugin "dpdkevents">
536 #  <EAL>
537 #    Coremask "0x1"
538 #    MemoryChannels "4"
539 #    FilePrefix "rte"
540 #  </EAL>
541 #  <Event "link_status">
542 #    SendEventsOnUpdate true
543 #    EnabledPortMask 0xffff
544 #    PortName "interface1"
545 #    PortName "interface2"
546 #    SendNotification false
547 #  </Event>
548 #  <Event "keep_alive">
549 #    SendEventsOnUpdate true
550 #    LCoreMask "0xf"
551 #    KeepAliveShmName "/dpdk_keepalive_shm_name"
552 #    SendNotification false
553 #  </Event>
554 #</Plugin>
555
556 #<Plugin dpdkstat>
557 #  <EAL>
558 #    Coremask "0x2"
559 #    MemoryChannels "4"
560 #    FilePrefix "rte"
561 #  </EAL>
562 #  SharedMemObj "dpdk_collectd_stats_0"
563 #  EnabledPortMask 0xffff
564 #  PortName "interface1"
565 #  PortName "interface2"
566 #</Plugin>
567
568 #<Plugin email>
569 #       SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
570 #       SocketGroup "collectd"
571 #       SocketPerms "0770"
572 #       MaxConns 5
573 #</Plugin>
574
575 #<Plugin ethstat>
576 #       Interface "eth0"
577 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
578 #       Map "multicast" "if_multicast"
579 #       MappedOnly false
580 #</Plugin>
581
582 #<Plugin exec>
583 #       Exec "user:group" "/path/to/exec"
584 #       NotificationExec "user:group" "/path/to/exec"
585 #</Plugin>
586
587 #<Plugin fhcount>
588 #       ValuesAbsolute true
589 #       ValuesPercentage false
590 #</Plugin>
591
592 #<Plugin filecount>
593 #       <Directory "/path/to/dir">
594 #               Instance "foodir"
595 #               Name "*.conf"
596 #               MTime "-5m"
597 #               Size "+10k"
598 #               Recursive true
599 #               IncludeHidden false
600 #       </Directory>
601 #</Plugin>
602
603 #<Plugin gmond>
604 #  MCReceiveFrom "239.2.11.71" "8649"
605 #  <Metric "swap_total">
606 #    Type "swap"
607 #    TypeInstance "total"
608 #    DataSource "value"
609 #  </Metric>
610 #  <Metric "swap_free">
611 #    Type "swap"
612 #    TypeInstance "free"
613 #    DataSource "value"
614 #  </Metric>
615 #</Plugin>
616
617 #<Plugin gps>
618 #  Host "127.0.0.1"
619 #  Port "2947"
620 #  Timeout 0.015
621 #  PauseConnect 5
622 #</Plugin>
623
624 #<Plugin grpc>
625 #       <Server "example.com" "50051">
626 #               EnableSSL true
627 #               SSLCACertificateFile "/path/to/root.pem"
628 #               SSLCertificateFile "/path/to/server.pem"
629 #               SSLCertificateKeyFile "/path/to/server.key"
630 #       </Server>
631 #       <Listen "0.0.0.0" "50051">
632 #               EnableSSL true
633 #               SSLCACertificateFile "/path/to/root.pem"
634 #               SSLCertificateFile "/path/to/client.pem"
635 #               SSLCertificateKeyFile "/path/to/client.key"
636 #       </Listen>
637 #</Plugin>
638
639 #<Plugin hddtemp>
640 #  Host "127.0.0.1"
641 #  Port "7634"
642 #</Plugin>
643
644 #<Plugin hugepages>
645 #    ReportPerNodeHP  true
646 #    ReportRootHP     true
647 #    ValuesPages      true
648 #    ValuesBytes      false
649 #    ValuesPercentage false
650 #</Plugin>
651
652 #<Plugin intel_pmu>
653 #    ReportHardwareCacheEvents true
654 #    ReportKernelPMUEvents true
655 #    ReportSoftwareEvents true
656 #    EventList "/var/cache/pmu/GenuineIntel-6-2D-core.json"
657 #    HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
658 #</Plugin>
659
660 #<Plugin "intel_rdt">
661 #  Cores "0-2"
662 #</Plugin>
663
664 #<Plugin interface>
665 #       Interface "eth0"
666 #       IgnoreSelected false
667 #       ReportInactive true
668 #       UniqueName false
669 #</Plugin>
670
671 #<Plugin ipmi>
672 #       Sensor "some_sensor"
673 #       Sensor "another_one"
674 #       IgnoreSelected false
675 #       NotifySensorAdd false
676 #       NotifySensorRemove true
677 #       NotifySensorNotPresent false
678 #</Plugin>
679
680 #<Plugin iptables>
681 #       Chain table chain
682 #       Chain6 table chain
683 #</Plugin>
684
685 #<Plugin irq>
686 #       Irq 7
687 #       Irq 8
688 #       Irq 9
689 #       IgnoreSelected true
690 #</Plugin>
691
692 #<Plugin java>
693 #       JVMArg "-verbose:jni"
694 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
695 #
696 #       LoadPlugin "org.collectd.java.Foobar"
697 #       <Plugin "org.collectd.java.Foobar">
698 #         # To be parsed by the plugin
699 #       </Plugin>
700 #</Plugin>
701
702 #<Plugin load>
703 #        ReportRelative true
704 #</Plugin>
705
706 #<Plugin lpar>
707 #       CpuPoolStats   false
708 #       ReportBySerial false
709 #</Plugin>
710
711 #<Plugin lua>
712 #       BasePath "@prefix@/share/@PACKAGE_NAME@/lua"
713 #       Script "script1.lua"
714 #       Script "script2.lua"
715 #</Plugin>
716
717 #<Plugin madwifi>
718 #       Interface "wlan0"
719 #       IgnoreSelected false
720 #       Source "SysFS"
721 #       WatchSet "None"
722 #       WatchAdd "node_octets"
723 #       WatchAdd "node_rssi"
724 #       WatchAdd "is_rx_acl"
725 #       WatchAdd "is_scan_active"
726 #</Plugin>
727
728 #<Plugin mbmon>
729 #       Host "127.0.0.1"
730 #       Port "411"
731 #</Plugin>
732
733 #<Plugin mcelog>
734 #  <Memory>
735 #    McelogClientSocket "/var/run/mcelog-client"
736 #    PersistentNotification false
737 #  </Memory>
738 #  McelogLogfile "/var/log/mcelog"
739 #</Plugin>
740
741 #<Plugin md>
742 #       Device "/dev/md0"
743 #       IgnoreSelected false
744 #</Plugin>
745
746 #<Plugin memcachec>
747 #       <Page "plugin_instance">
748 #               Server "localhost"
749 #               Key "page_key"
750 #               <Match>
751 #                       Regex "(\\d+) bytes sent"
752 #                       ExcludeRegex "<lines to be excluded>"
753 #                       DSType CounterAdd
754 #                       Type "ipt_octets"
755 #                       Instance "type_instance"
756 #               </Match>
757 #       </Page>
758 #</Plugin>
759
760 #<Plugin memcached>
761 #       <Instance "local">
762 #               #Host "memcache.example.com"
763 #               Address "127.0.0.1"
764 #               Port "11211"
765 #       </Instance>
766 #</Plugin>
767
768 #<Plugin memory>
769 #       ValuesAbsolute true
770 #       ValuesPercentage false
771 #</Plugin>
772
773 #<Plugin modbus>
774 #       <Data "data_name">
775 #               RegisterBase 1234
776 #               RegisterCmd ReadHolding
777 #               RegisterType float
778 #               Type gauge
779 #               Instance "..."
780 #       </Data>
781 #
782 #       <Host "name">
783 #               Address "addr"
784 #               Port "1234"
785 #               Interval 60
786 #
787 #               <Slave 1>
788 #                       Instance "foobar" # optional
789 #                       Collect "data_name"
790 #               </Slave>
791 #       </Host>
792 #</Plugin>
793
794 #<Plugin mqtt>
795 #       <Publish "name">
796 #               Host "localhost"
797 #               Port 1883
798 #               ClientId "localhost"
799 #               User "user"
800 #               Password "secret"
801 #               QoS 0
802 #               Prefix "collectd"
803 #               StoreRates true
804 #               Retain false
805 #               CACert "/etc/ssl/ca.crt"
806 #               CertificateFile "/etc/ssl/client.crt"
807 #               CertificateKeyFile "/etc/ssl/client.pem"
808 #               TLSProtocol "tlsv1.2"
809 #               CipherSuite "ciphers"
810 #       </Publish>
811 #       <Subscribe "name">
812 #               Host "localhost"
813 #               Port 1883
814 #               ClientId "localhost"
815 #               User "user"
816 #               Password "secret"
817 #               QoS 2
818 #               Topic "collectd/#"
819 #               CleanSession true
820 #               CACert "/etc/ssl/ca.crt"
821 #               CertificateFile "/etc/ssl/client.crt"
822 #               CertificateKeyFile "/etc/ssl/client.pem"
823 #               TLSProtocol "tlsv1.2"
824 #               CipherSuite "ciphers"
825 #       </Subscribe>
826 #</Plugin>
827
828 #<Plugin mysql>
829 #       <Database db_name>
830 #               Host "database.serv.er"
831 #               User "db_user"
832 #               Password "secret"
833 #               Database "db_name"
834 #               SSLKey "/path/to/key.pem"
835 #               SSLCert "/path/to/cert.pem"
836 #               SSLCA "/path/to/ca.pem"
837 #               SSLCAPath "/path/to/cas/"
838 #               SSLCipher "DHE-RSA-AES256-SHA"
839 #               MasterStats true
840 #               ConnectTimeout 10
841 #               InnodbStats true
842 #       </Database>
843 #
844 #       <Database db_name2>
845 #               Alias "squeeze"
846 #               Host "localhost"
847 #               Socket "/var/run/mysql/mysqld.sock"
848 #               SlaveStats true
849 #               SlaveNotifications true
850 #       </Database>
851 #       <Database galera>
852 #               Alias "galera"
853 #               Host "localhost"
854 #               Socket "/var/run/mysql/mysqld.sock"
855 #               WsrepStats true
856 #       </Database>
857 #</Plugin>
858
859 #<Plugin netapp>
860 #       <Host "netapp1.example.com">
861 #               Protocol      "https"
862 #               Address       "10.0.0.1"
863 #               Port          443
864 #               User          "username"
865 #               Password      "aef4Aebe"
866 #               Interval      30
867 #
868 #               <WAFL>
869 #                       Interval 30
870 #                       GetNameCache   true
871 #                       GetDirCache    true
872 #                       GetBufferCache true
873 #                       GetInodeCache  true
874 #               </WAFL>
875 #
876 #               <Disks>
877 #                       Interval 30
878 #                       GetBusy true
879 #               </Disks>
880 #
881 #               <VolumePerf>
882 #                       Interval 30
883 #                       GetIO      "volume0"
884 #                       IgnoreSelectedIO      false
885 #                       GetOps     "volume0"
886 #                       IgnoreSelectedOps     false
887 #                       GetLatency "volume0"
888 #                       IgnoreSelectedLatency false
889 #               </VolumePerf>
890 #
891 #               <VolumeUsage>
892 #                       Interval 30
893 #                       GetCapacity "vol0"
894 #                       GetCapacity "vol1"
895 #                       IgnoreSelectedCapacity false
896 #                       GetSnapshot "vol1"
897 #                       GetSnapshot "vol3"
898 #                       IgnoreSelectedSnapshot false
899 #               </VolumeUsage>
900 #
901 #               <System>
902 #                       Interval 30
903 #                       GetCPULoad     true
904 #                       GetInterfaces  true
905 #                       GetDiskOps     true
906 #                       GetDiskIO      true
907 #               </System>
908 #       </Host>
909 #</Plugin>
910
911 #<Plugin netlink>
912 #       Interface "All"
913 #       VerboseInterface "All"
914 #       QDisc "eth0" "pfifo_fast-1:0"
915 #       Class "ppp0" "htb-1:10"
916 #       Filter "ppp0" "u32-1:0"
917 #       IgnoreSelected false
918 #</Plugin>
919
920 @LOAD_PLUGIN_NETWORK@<Plugin network>
921 #       # client setup:
922 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
923 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
924 #               SecurityLevel Encrypt
925 #               Username "user"
926 #               Password "secret"
927 #               Interface "eth0"
928 #               ResolveInterval 14400
929 @LOAD_PLUGIN_NETWORK@   </Server>
930 #       TimeToLive 128
931 #
932 #       # server setup:
933 #       Listen "ff18::efc0:4a42" "25826"
934 #       <Listen "239.192.74.66" "25826">
935 #               SecurityLevel Sign
936 #               AuthFile "/etc/collectd/passwd"
937 #               Interface "eth0"
938 #       </Listen>
939 #       MaxPacketSize 1452
940 #
941 #       # proxy setup (client and server as above):
942 #       Forward true
943 #
944 #       # statistics about the network plugin itself
945 #       ReportStats false
946 #
947 #       # "garbage collection"
948 #       CacheFlush 1800
949 @LOAD_PLUGIN_NETWORK@</Plugin>
950
951 #<Plugin nfs>
952 #       ReportV2 false
953 #       #ReportV3 false
954 #       #ReportV4 false
955 #</Plugin>
956
957 #<Plugin nginx>
958 #       URL "http://localhost/status?auto"
959 #       User "www-user"
960 #       Password "secret"
961 #       CACert "/etc/ssl/ca.crt"
962 #</Plugin>
963
964 #<Plugin notify_desktop>
965 #       OkayTimeout 1000
966 #       WarningTimeout 5000
967 #       FailureTimeout 0
968 #</Plugin>
969
970 #<Plugin notify_email>
971 #       SMTPServer "localhost"
972 #       SMTPPort 25
973 #       SMTPUser "my-username"
974 #       SMTPPassword "my-password"
975 #       From "collectd@main0server.com"
976 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
977 #       Subject "Aaaaaa!! %s on %s!!!!!"
978 #       Recipient "email1@domain1.net"
979 #       Recipient "email2@domain2.com"
980 #</Plugin>
981
982 #<Plugin notify_nagios>
983 #       CommandFile "/usr/local/nagios/var/rw/nagios.cmd"
984 #</Plugin>
985
986 #<Plugin ntpd>
987 #       Host "localhost"
988 #       Port 123
989 #       ReverseLookups false
990 #       IncludeUnitID true
991 #</Plugin>
992
993 #<Plugin nut>
994 #       UPS "upsname@hostname:port"
995 #       ForceSSL true
996 #       VerifyPeer true
997 #       CAPath "/path/to/folder"
998 #       #ConnectTimeout 5000
999 #</Plugin>
1000
1001 #<Plugin olsrd>
1002 #       Host "127.0.0.1"
1003 #       Port "2006"
1004 #       CollectLinks "Summary"
1005 #       CollectRoutes "Summary"
1006 #       CollectTopology "Summary"
1007 #</Plugin>
1008
1009 #<Plugin onewire>
1010 #       Device "-s localhost:4304"
1011 #       Sensor "F10FCA000800"
1012 #       IgnoreSelected false
1013 #</Plugin>
1014
1015 #<Plugin openldap>
1016 #  <Instance "localhost">
1017 #    URL "ldap://localhost:389"
1018 #    StartTLS false
1019 #    VerifyHost true
1020 #    CACert "/path/to/ca.crt"
1021 #    Timeout -1
1022 #    Version 3
1023 #  </Instance>
1024 #</Plugin>
1025
1026 #<Plugin openvpn>
1027 #       StatusFile "/etc/openvpn/openvpn-status.log"
1028 #       ImprovedNamingSchema false
1029 #       CollectCompression true
1030 #       CollectIndividualUsers true
1031 #       CollectUserCount false
1032 #</Plugin>
1033
1034 #<Plugin oracle>
1035 #  <Query "out_of_stock">
1036 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
1037 #    <Result>
1038 #      Type "gauge"
1039 #      InstancesFrom "category"
1040 #      ValuesFrom "value"
1041 #    </Result>
1042 #  </Query>
1043 #  <Database "product_information">
1044 #    ConnectID "db01"
1045 #    Username "oracle"
1046 #    Password "secret"
1047 #    Query "out_of_stock"
1048 #  </Database>
1049 #</Plugin>
1050
1051 #<Plugin ovs_events>
1052 #  Port "6640"
1053 #  Address "127.0.0.1"
1054 #  Socket "/var/run/openvswitch/db.sock"
1055 #  Interfaces "br0" "veth0"
1056 #  SendNotification true
1057 #  DispatchValues false
1058 #</Plugin>
1059
1060 #<Plugin ovs_stats>
1061 #  Port "6640"
1062 #  Address "127.0.0.1"
1063 #  Socket "/var/run/openvswitch/db.sock"
1064 #  Bridges "br0" "br_ext"
1065 #</Plugin>
1066
1067 #<Plugin perl>
1068 #       IncludeDir "/my/include/path"
1069 #       BaseName "Collectd::Plugins"
1070 #       EnableDebugger ""
1071 #       LoadPlugin Monitorus
1072 #       LoadPlugin OpenVZ
1073 #
1074 #       <Plugin foo>
1075 #               Foo "Bar"
1076 #               Qux "Baz"
1077 #       </Plugin>
1078 #</Plugin>
1079
1080 #<Plugin pinba>
1081 #       Address "::0"
1082 #       Port "30002"
1083 #       <View "name">
1084 #               Host "host name"
1085 #               Server "server name"
1086 #               Script "script name"
1087 #       </View>
1088 #</Plugin>
1089
1090 #<Plugin ping>
1091 #       Host "host.foo.bar"
1092 #       Interval 1.0
1093 #       Timeout 0.9
1094 #       TTL 255
1095 #       SourceAddress "1.2.3.4"
1096 #       Device "eth0"
1097 #       MaxMissed -1
1098 #</Plugin>
1099
1100 #<Plugin postgresql>
1101 #       <Query magic>
1102 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
1103 #               Param hostname
1104 #               <Result>
1105 #                       Type gauge
1106 #                       InstancePrefix "magic"
1107 #                       ValuesFrom magic
1108 #               </Result>
1109 #       </Query>
1110 #       <Query rt36_tickets>
1111 #               Statement "SELECT COUNT(type) AS count, type \
1112 #                                 FROM (SELECT CASE \
1113 #                                              WHEN resolved = 'epoch' THEN 'open' \
1114 #                                              ELSE 'resolved' END AS type \
1115 #                                              FROM tickets) type \
1116 #                                 GROUP BY type;"
1117 #               <Result>
1118 #                       Type counter
1119 #                       InstancePrefix "rt36_tickets"
1120 #                       InstancesFrom "type"
1121 #                       ValuesFrom "count"
1122 #               </Result>
1123 #       </Query>
1124 #       <Writer sqlstore>
1125 #               # See contrib/postgresql/collectd_insert.sql for details
1126 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
1127 #               StoreRates true
1128 #       </Writer>
1129 #       <Database foo>
1130 #               Host "hostname"
1131 #               Port "5432"
1132 #               User "username"
1133 #               Password "secret"
1134 #               SSLMode "prefer"
1135 #               KRBSrvName "kerberos_service_name"
1136 #               Query magic
1137 #       </Database>
1138 #       <Database bar>
1139 #               Interval 60
1140 #               Service "service_name"
1141 #               Query backend # predefined
1142 #               Query rt36_tickets
1143 #       </Database>
1144 #       <Database qux>
1145 #               Service "collectd_store"
1146 #               Writer sqlstore
1147 #               # see collectd.conf(5) for details
1148 #               CommitInterval 30
1149 #       </Database>
1150 #</Plugin>
1151
1152 #<Plugin powerdns>
1153 #  <Server "server_name">
1154 #    Collect "latency"
1155 #    Collect "udp-answers" "udp-queries"
1156 #    Socket "/var/run/pdns.controlsocket"
1157 #  </Server>
1158 #  <Recursor "recursor_name">
1159 #    Collect "questions"
1160 #    Collect "cache-hits" "cache-misses"
1161 #    Socket "/var/run/pdns_recursor.controlsocket"
1162 #  </Recursor>
1163 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1164 #</Plugin>
1165
1166 #<Plugin processes>
1167 #       CollectFileDescriptor true
1168 #       CollectContextSwitch true
1169 #       Process "name"
1170 #       ProcessMatch "name" "regex"
1171 #       <Process "collectd">
1172 #               CollectFileDescriptor false
1173 #               CollectContextSwitch false
1174 #       </Process>
1175 #       <ProcessMatch "name" "regex">
1176 #               CollectFileDescriptor false
1177 #               CollectContextSwitch true
1178 #       </Process>
1179 #</Plugin>
1180
1181 #<Plugin protocols>
1182 #       Value "/^Tcp:/"
1183 #       IgnoreSelected false
1184 #</Plugin>
1185
1186 #<Plugin python>
1187 #       ModulePath "/path/to/your/python/modules"
1188 #       LogTraces true
1189 #       Interactive true
1190 #       Import "spam"
1191 #
1192 #       <Module spam>
1193 #               spam "wonderful" "lovely"
1194 #       </Module>
1195 #</Plugin>
1196
1197 #<Plugin redis>
1198 #   <Node example>
1199 #      Host "redis.example.com"
1200 #      Port "6379"
1201 #      Timeout 2000
1202 #   </Node>
1203 #</Plugin>
1204
1205 #<Plugin routeros>
1206 #       <Router>
1207 #               Host "router.example.com"
1208 #               Port "8728"
1209 #               User "admin"
1210 #               Password "dozaiTh4"
1211 #               CollectInterface true
1212 #               CollectRegistrationTable true
1213 #               CollectCPULoad true
1214 #               CollectMemory true
1215 #               CollectDF true
1216 #               CollectDisk true
1217 #       </Router>
1218 #</Plugin>
1219
1220 #<Plugin rrdcached>
1221 #       DaemonAddress "unix:/tmp/rrdcached.sock"
1222 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1223 #       CreateFiles true
1224 #       CreateFilesAsync false
1225 #       CollectStatistics true
1226 #</Plugin>
1227
1228 #<Plugin rrdtool>
1229 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1230 #       CreateFilesAsync false
1231 #       CacheTimeout 120
1232 #       CacheFlush   900
1233 #       WritesPerSecond 50
1234 #</Plugin>
1235
1236 #<Plugin sensors>
1237 #       SensorConfigFile "/etc/sensors.conf"
1238 #       Sensor "it8712-isa-0290/temperature-temp1"
1239 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1240 #       Sensor "it8712-isa-0290/voltage-in8"
1241 #       IgnoreSelected false
1242 #</Plugin>
1243
1244 #<Plugin sigrok>
1245 #  LogLevel 3
1246 #  <Device "AC Voltage">
1247 #    Driver "fluke-dmm"
1248 #    MinimumInterval 10
1249 #    Conn "/dev/ttyUSB2"
1250 #  </Device>
1251 #  <Device "Sound Level">
1252 #    Driver "cem-dt-885x"
1253 #    Conn "/dev/ttyUSB1"
1254 #  </Device>
1255 #</Plugin>
1256
1257 #<Plugin smart>
1258 #  Disk "/^[hs]d[a-f][0-9]?$/"
1259 #  IgnoreSelected false
1260 #</Plugin>
1261
1262 #<Plugin snmp>
1263 #   <Data "powerplus_voltge_input">
1264 #       Type "voltage"
1265 #       Table false
1266 #       Instance "input_line1"
1267 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1268 #   </Data>
1269 #   <Data "hr_users">
1270 #       Type "users"
1271 #       Table false
1272 #       Instance ""
1273 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1274 #   </Data>
1275 #   <Data "std_traffic">
1276 #       Type "if_octets"
1277 #       Table true
1278 #       Instance "IF-MIB::ifDescr"
1279 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1280 #   </Data>
1281 #
1282 #   <Host "some.switch.mydomain.org">
1283 #       Address "192.168.0.2"
1284 #       Version 1
1285 #       Community "community_string"
1286 #       Collect "std_traffic"
1287 #       Interval 120
1288 #   </Host>
1289 #   <Host "some.server.mydomain.org">
1290 #       Address "192.168.0.42"
1291 #       Version 2
1292 #       Community "another_string"
1293 #       Collect "std_traffic" "hr_users"
1294 #   </Host>
1295 #   <Host "some.ups.mydomain.org">
1296 #       Address "192.168.0.3"
1297 #       Version 1
1298 #       Community "more_communities"
1299 #       Collect "powerplus_voltge_input"
1300 #       Interval 300
1301 #   </Host>
1302 #</Plugin>
1303
1304 #<Plugin snmp_agent>
1305 #  <Data "memAvailReal">
1306 #    Plugin "memory"
1307 #    Type "memory"
1308 #    TypeInstance "free"
1309 #    OIDs "1.3.6.1.4.1.2021.4.6.0"
1310 #  </Data>
1311 #  <Table "ifTable">
1312 #    IndexOID "IF-MIB::ifIndex"
1313 #    SizeOID "IF-MIB::ifNumber"
1314 #    <Data "ifDescr">
1315 #      Instance true
1316 #      Plugin "interface"
1317 #      OIDs "IF-MIB::ifDescr"
1318 #    </Data>
1319 #    <Data "ifOctets">
1320 #      Plugin "interface"
1321 #      Type "if_octets"
1322 #      TypeInstance ""
1323 #      OIDs "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1324 #    </Data>
1325 #  </Table>
1326 #</Plugin>
1327
1328 #<Plugin statsd>
1329 #  Host "::"
1330 #  Port "8125"
1331 #  DeleteCounters false
1332 #  DeleteTimers   false
1333 #  DeleteGauges   false
1334 #  DeleteSets     false
1335 #  CounterSum     false
1336 #  TimerPercentile 90.0
1337 #  TimerPercentile 95.0
1338 #  TimerPercentile 99.0
1339 #  TimerLower     false
1340 #  TimerUpper     false
1341 #  TimerSum       false
1342 #  TimerCount     false
1343 #</Plugin>
1344
1345 #<Plugin swap>
1346 #       ReportByDevice false
1347 #       ReportBytes true
1348 #       ValuesAbsolute true
1349 #       ValuesPercentage false
1350 #       ReportIO true
1351 #</Plugin>
1352
1353 #<Plugin table>
1354 #       <Table "/proc/slabinfo">
1355 #               #Plugin "table"
1356 #               Instance "slabinfo"
1357 #               Separator " "
1358 #               <Result>
1359 #                       Type gauge
1360 #                       InstancePrefix "active_objs"
1361 #                       InstancesFrom 0
1362 #                       ValuesFrom 1
1363 #               </Result>
1364 #               <Result>
1365 #                       Type gauge
1366 #                       InstancePrefix "objperslab"
1367 #                       InstancesFrom 0
1368 #                       ValuesFrom 4
1369 #               </Result>
1370 #       </Table>
1371 #</Plugin>
1372
1373 #<Plugin tail>
1374 #  <File "/var/log/exim4/mainlog">
1375 #    Instance "exim"
1376 #    Interval 60
1377 #    <Match>
1378 #      Regex "S=([1-9][0-9]*)"
1379 #      DSType "CounterAdd"
1380 #      Type "ipt_bytes"
1381 #      Instance "total"
1382 #    </Match>
1383 #    <Match>
1384 #      Regex "\\<R=local_user\\>"
1385 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1386 #      DSType "CounterInc"
1387 #      Type "counter"
1388 #      Instance "local_user"
1389 #    </Match>
1390 #  </File>
1391 #  <File "/var/log/nginx/apache-time.log">
1392 #    #Use the following log format in nginx:
1393 #    #log_format response_time '[$host] "$upstream_response_time" ...'
1394 #    Instance "apache"
1395 #    <Match>
1396 #      Regex "^\\S+ \"([0-9.]+)\""
1397 #      <DSType Distribution>
1398 #        Percentile 80    # -> latency-foo-80
1399 #        Percentile 95    # -> latency-foo-95
1400 #        Percentile 99    # -> latency-foo-99
1401 #        Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1402 #        Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1403 #        Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1404 #        Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1405 #        Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1406 #        Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1407 #        #BucketType "bucket"
1408 #      </DSType>
1409 #      Type "latency"
1410 #      Instance "foo"
1411 #    </Match>
1412 #  </File>
1413 #</Plugin>
1414
1415 #<Plugin tail_csv>
1416 #   <Metric "dropped">
1417 #       Type "percent"
1418 #       Instance "dropped"
1419 #       ValueFrom 1
1420 #   </Metric>
1421 #   <Metric "mbps">
1422 #       Type "bytes"
1423 #       Instance "wire-realtime"
1424 #       ValueFrom 2
1425 #   </Metric>
1426 #   <Metric "alerts">
1427 #       Type "alerts_per_second"
1428 #       ValueFrom 3
1429 #   </Metric>
1430 #   <Metric "kpps">
1431 #       Type "kpackets_wire_per_sec.realtime"
1432 #       ValueFrom 4
1433 #   </Metric>
1434 #   <File "/var/log/snort/snort.stats">
1435 #       Instance "snort-eth0"
1436 #       Interval 600
1437 #       Collect "dropped" "mbps" "alerts" "kpps"
1438 #       TimeFrom 0
1439 #   </File>
1440 #</Plugin>
1441
1442 #<Plugin tcpconns>
1443 #       ListeningPorts false
1444 #       AllPortsSummary false
1445 #       LocalPort "25"
1446 #       RemotePort "25"
1447 #</Plugin>
1448
1449 #<Plugin teamspeak2>
1450 #       Host "127.0.0.1"
1451 #       Port "51234"
1452 #       Server "8767"
1453 #</Plugin>
1454
1455 #<Plugin ted>
1456 #       Device "/dev/ttyUSB0"
1457 #       Retries 0
1458 #</Plugin>
1459
1460 #<Plugin thermal>
1461 #       ForceUseProcfs false
1462 #       Device "THRM"
1463 #       IgnoreSelected false
1464 #</Plugin>
1465
1466 #<Plugin tokyotyrant>
1467 #       Host "localhost"
1468 #       Port "1978"
1469 #</Plugin>
1470
1471 #<Plugin turbostat>
1472 ##      None of the following option should be set manually
1473 ##      This plugin automatically detect most optimal options
1474 ##      Only set values here if:
1475 ##      - The module asks you to
1476 ##      - You want to disable the collection of some data
1477 ##      - Your (Intel) CPU is not supported (yet) by the module
1478 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1479 ##      In the last two cases, please open a bug request
1480 #
1481 #       TCCActivationTemp "100"
1482 #       CoreCstates "392"
1483 #       PackageCstates "396"
1484 #       SystemManagementInterrupt true
1485 #       DigitalTemperatureSensor true
1486 #       PackageThermalManagement true
1487 #       RunningAveragePowerLimit "7"
1488 #</Plugin>
1489
1490 #<Plugin unixsock>
1491 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1492 #       SocketGroup "collectd"
1493 #       SocketPerms "0660"
1494 #       DeleteSocket false
1495 #</Plugin>
1496
1497 #<Plugin uuid>
1498 #       UUIDFile "/etc/uuid"
1499 #</Plugin>
1500
1501 #<Plugin mic>
1502 #   ShowCPU true
1503 #   ShowCPUCores true
1504 #   ShowMemory true
1505 #   ShowTemperatures true
1506 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1507 ##  then inverted with a IgnoreSelectedTemperature.
1508 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1509 #   Temperature vddg
1510 #   IgnoreSelectedTemperature true
1511 #   ShowPower true
1512 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1513 ##  then inverted with a IgnoreSelectedTemperature.
1514 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1515 #   Power total1
1516 #   IgnoreSelectedPower true
1517 #</Plugin>
1518
1519 #<Plugin varnish>
1520 #   This tag support an argument if you want to
1521 #   monitor the local instance just use </Instance>
1522 #   If you prefer defining another instance you can do
1523 #   so by using <Instance "myinstance">
1524 #   <Instance>
1525 #      CollectBackend true
1526 #      CollectBan false           # Varnish 3 and above
1527 #      CollectCache true
1528 #      CollectConnections true
1529 #      CollectDirectorDNS false   # Varnish 3 only
1530 #      CollectESI false
1531 #      CollectFetch false
1532 #      CollectHCB false
1533 #      CollectObjects false
1534 #      CollectPurge false         # Varnish 2 only
1535 #      CollectSession false
1536 #      CollectSHM true
1537 #      CollectSMA false           # Varnish 2 only
1538 #      CollectSMS false
1539 #      CollectSM false            # Varnish 2 only
1540 #      CollectStruct false
1541 #      CollectTotals false
1542 #      CollectUptime false        # Varnish 3 and above
1543 #      CollectVCL false
1544 #      CollectVSM false           # Varnish 4 only
1545 #      CollectWorkers false
1546 #   </Instance>
1547 #</Plugin>
1548
1549 #<Plugin virt>
1550 #       Connection "xen:///"
1551 #       RefreshInterval 60
1552 #       Domain "name"
1553 #       BlockDevice "name:device"
1554 #       BlockDeviceFormat target
1555 #       BlockDeviceFormatBasename false
1556 #       InterfaceDevice "name:device"
1557 #       IgnoreSelected false
1558 #       HostnameFormat name
1559 #       InterfaceFormat name
1560 #       PluginInstanceFormat name
1561 #       Instances 1
1562 #       ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpupin"
1563 #</Plugin>
1564
1565 #<Plugin vmem>
1566 #       Verbose false
1567 #</Plugin>
1568
1569 #<Plugin write_graphite>
1570 #  <Node "example">
1571 #    Host "localhost"
1572 #    Port "2003"
1573 #    Protocol "tcp"
1574 #    ReconnectInterval 0
1575 #    LogSendErrors true
1576 #    Prefix "collectd"
1577 #    Postfix "collectd"
1578 #    StoreRates true
1579 #    AlwaysAppendDS false
1580 #    EscapeCharacter "_"
1581 #    SeparateInstances false
1582 #    PreserveSeparator false
1583 #    DropDuplicateFields false
1584 #  </Node>
1585 #</Plugin>
1586
1587 #<Plugin write_http>
1588 #       <Node "example">
1589 #               URL "http://example.com/collectd-post"
1590 #               User "collectd"
1591 #               Password "weCh3ik0"
1592 #               VerifyPeer true
1593 #               VerifyHost true
1594 #               CACert "/etc/ssl/ca.crt"
1595 #               CAPath "/etc/ssl/certs/"
1596 #               ClientKey "/etc/ssl/client.pem"
1597 #               ClientCert "/etc/ssl/client.crt"
1598 #               ClientKeyPass "secret"
1599 #               Header "X-Custom-Header: custom_value"
1600 #               SSLVersion "TLSv1"
1601 #               Format "Command"
1602 #               Attribute "key" "value"     # only available for KAIROSDB format
1603 #               TTL 0   # data ttl, only available for KAIROSDB format
1604 #               Metrics true
1605 #               Notifications false
1606 #               StoreRates false
1607 #               BufferSize 4096
1608 #               LowSpeedLimit 0
1609 #               Timeout 0
1610 #       </Node>
1611 #</Plugin>
1612
1613 #<Plugin write_kafka>
1614 #  Property "metadata.broker.list" "localhost:9092"
1615 #  <Topic "collectd">
1616 #    Format JSON
1617 #  </Topic>
1618 #</Plugin>
1619
1620 #<Plugin write_mongodb>
1621 #       <Node "example">
1622 #               Host "localhost"
1623 #               Port "27017"
1624 #               Timeout 1000
1625 #               StoreRates false
1626 #               Database "auth_db"
1627 #               User "auth_user"
1628 #               Password "auth_passwd"
1629 #       </Node>
1630 #</Plugin>
1631
1632 #<Plugin write_prometheus>
1633 #       Port "9103"
1634 #</Plugin>
1635
1636 #<Plugin write_redis>
1637 #       <Node "example">
1638 #               Host "localhost"
1639 #               Port "6379"
1640 #               Timeout 1000
1641 #               Prefix "collectd/"
1642 #       </Node>
1643 #</Plugin>
1644
1645 #<Plugin write_riemann>
1646 #       <Node "example">
1647 #               Host "localhost"
1648 #               Port 5555
1649 #               Protocol TCP
1650 #               Batch true
1651 #               BatchMaxSize 8192
1652 #               StoreRates true
1653 #               AlwaysAppendDS false
1654 #               TTLFactor 2.0
1655 #               Notifications true
1656 #               CheckThresholds false
1657 #               EventServicePrefix ""
1658 #       </Node>
1659 #       Tag "foobar"
1660 #       Attribute "foo" "bar"
1661 #</Plugin>
1662
1663 #<Plugin write_sensu>
1664 #       <Node "example">
1665 #               Host "localhost"
1666 #               Port 3030
1667 #               StoreRates true
1668 #               AlwaysAppendDS false
1669 #               Notifications true
1670 #               Metrics true
1671 #               EventServicePrefix ""
1672 #               MetricHandler "influx"
1673 #               MetricHandler "default"
1674 #               NotificationHandler "flapjack"
1675 #               NotificationHandler "howling_monkey"
1676 #       </Node>
1677 #       Tag "foobar"
1678 #       Attribute "foo" "bar"
1679 #</Plugin>
1680
1681 #<Plugin write_tsdb>
1682 #       <Node>
1683 #               Host "localhost"
1684 #               Port "4242"
1685 #               HostTags "status=production"
1686 #               StoreRates false
1687 #               AlwaysAppendDS false
1688 #       </Node>
1689 #</Plugin>
1690
1691 #<Plugin zookeeper>
1692 #    Host "localhost"
1693 #    Port "2181"
1694 #</Plugin>
1695
1696 ##############################################################################
1697 # Filter configuration                                                       #
1698 #----------------------------------------------------------------------------#
1699 # The following configures collectd's filtering mechanism. Before changing   #
1700 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1701 # in the collectd.conf(5) manual page.                                       #
1702 ##############################################################################
1703
1704 # Load required matches:
1705 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1706 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1707 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1708 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1709 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1710
1711 # Load required targets:
1712 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1713 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1714 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1715 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1716 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1717
1718 #----------------------------------------------------------------------------#
1719 # The following block demonstrates the default behavior if no filtering is   #
1720 # configured at all: All values will be sent to all available write plugins. #
1721 #----------------------------------------------------------------------------#
1722
1723 #<Chain "PostCache">
1724 #  Target "write"
1725 #</Chain>
1726
1727 ##############################################################################
1728 # Threshold configuration                                                    #
1729 #----------------------------------------------------------------------------#
1730 # The following outlines how to configure collectd's threshold checking      #
1731 # plugin. The plugin and possible configuration options are documented in    #
1732 # the collectd-threshold(5) manual page.                                     #
1733 ##############################################################################
1734
1735 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1736 #<Plugin threshold>
1737 #  <Type "foo">
1738 #    WarningMin    0.00
1739 #    WarningMax 1000.00
1740 #    FailureMin    0.00
1741 #    FailureMax 1200.00
1742 #    Invert false
1743 #    Instance "bar"
1744 #  </Type>
1745 #
1746 #  <Plugin "interface">
1747 #    Instance "eth0"
1748 #    <Type "if_octets">
1749 #      FailureMax 10000000
1750 #      DataSource "rx"
1751 #    </Type>
1752 #  </Plugin>
1753 #
1754 #  <Host "hostname">
1755 #    <Type "cpu">
1756 #      Instance "idle"
1757 #      FailureMin 10
1758 #    </Type>
1759 #
1760 #    <Plugin "memory">
1761 #      <Type "memory">
1762 #        Instance "cached"
1763 #        WarningMin 100000000
1764 #      </Type>
1765 #    </Plugin>
1766 #
1767 #    <Type "load">
1768 #       DataSource "midterm"
1769 #       FailureMax 4
1770 #       Hits 3
1771 #       Hysteresis 3
1772 #    </Type>
1773 #  </Host>
1774 #</Plugin>