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