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