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