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