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