Code

Enable the write_mongodb plugin, libmongoc is now available.
[pkg-collectd.git] / debian / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
7 # before enabling any more plugins.
9 ##############################################################################
10 # Global                                                                     #
11 #----------------------------------------------------------------------------#
12 # Global settings for the daemon.                                            #
13 ##############################################################################
15 #Hostname "localhost"
16 FQDNLookup true
17 #BaseDir "/var/lib/collectd"
18 #PluginDir "/usr/lib/collectd"
19 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
21 #----------------------------------------------------------------------------#
22 # When enabled, plugins are loaded automatically with the default options    #
23 # when an appropriate <Plugin ...> block is encountered.                     #
24 # Disabled by default.                                                       #
25 #----------------------------------------------------------------------------#
26 #AutoLoadPlugin false
28 #----------------------------------------------------------------------------#
29 # When enabled, internal statistics are collected, using "collectd" as the   #
30 # plugin name.                                                               #
31 # Disabled by default.                                                       #
32 #----------------------------------------------------------------------------#
33 #CollectInternalStats false
35 #----------------------------------------------------------------------------#
36 # Interval at which to query values. This may be overwritten on a per-plugin #
37 # base by using the 'Interval' option of the LoadPlugin block:               #
38 #   <LoadPlugin foo>                                                         #
39 #       Interval 60                                                          #
40 #   </LoadPlugin>                                                            #
41 #----------------------------------------------------------------------------#
42 #Interval 10
44 #MaxReadInterval 86400
45 #Timeout         2
46 #ReadThreads     5
47 #WriteThreads    5
49 # Limit the size of the write queue. Default is no limit. Setting up a limit
50 # is recommended for servers handling a high volume of traffic.
51 #WriteQueueLimitHigh 1000000
52 #WriteQueueLimitLow   800000
54 ##############################################################################
55 # Logging                                                                    #
56 #----------------------------------------------------------------------------#
57 # Plugins which provide logging functions should be loaded first, so log     #
58 # messages generated when loading or configuring other plugins can be        #
59 # accessed.                                                                  #
60 ##############################################################################
62 #LoadPlugin logfile
63 LoadPlugin syslog
64 #LoadPlugin log_logstash
66 #<Plugin logfile>
67 #       LogLevel "info"
68 #       File STDOUT
69 #       Timestamp true
70 #       PrintSeverity false
71 #</Plugin>
73 <Plugin syslog>
74         LogLevel info
75 </Plugin>
77 #<Plugin log_logstash>
78 #       LogLevel info
79 #       File "/var/log/collectd.json.log"
80 #</Plugin>
82 ##############################################################################
83 # LoadPlugin section                                                         #
84 #----------------------------------------------------------------------------#
85 # Specify what features to activate.                                         #
86 ##############################################################################
88 #LoadPlugin aggregation
89 #LoadPlugin amqp
90 #LoadPlugin apache
91 #LoadPlugin apcups
92 #LoadPlugin ascent
93 #LoadPlugin barometer
94 LoadPlugin battery
95 #LoadPlugin bind
96 #LoadPlugin ceph
97 #LoadPlugin cgroups
98 #LoadPlugin chrony
99 #LoadPlugin conntrack
100 #LoadPlugin contextswitch
101 LoadPlugin cpu
102 #LoadPlugin cpufreq
103 #LoadPlugin cpusleep
104 #LoadPlugin csv
105 #LoadPlugin curl
106 #LoadPlugin curl_json
107 #LoadPlugin curl_xml
108 #LoadPlugin dbi
109 LoadPlugin df
110 LoadPlugin disk
111 #LoadPlugin dns
112 #LoadPlugin dpdkstat
113 #LoadPlugin drbd
114 #LoadPlugin email
115 LoadPlugin entropy
116 #LoadPlugin ethstat
117 #LoadPlugin exec
118 #LoadPlugin fhcount
119 #LoadPlugin filecount
120 #LoadPlugin fscache
121 #LoadPlugin gmond
122 #LoadPlugin gps
123 #LoadPlugin hugepages
124 #LoadPlugin hddtemp
125 LoadPlugin interface
126 #LoadPlugin ipc
127 #LoadPlugin ipmi
128 #LoadPlugin iptables
129 #LoadPlugin ipvs
130 LoadPlugin irq
131 #LoadPlugin java
132 LoadPlugin load
133 #LoadPlugin lua
134 #LoadPlugin lvm
135 #LoadPlugin madwifi
136 #LoadPlugin mbmon
137 #LoadPlugin md
138 #LoadPlugin memcachec
139 #LoadPlugin memcached
140 LoadPlugin memory
141 #LoadPlugin modbus
142 #LoadPlugin mqtt
143 #LoadPlugin multimeter
144 #LoadPlugin mysql
145 #LoadPlugin netlink
146 #LoadPlugin network
147 #LoadPlugin nfs
148 #LoadPlugin nginx
149 #LoadPlugin notify_desktop
150 #LoadPlugin notify_email
151 #LoadPlugin notify_nagios
152 #LoadPlugin ntpd
153 #LoadPlugin numa
154 #LoadPlugin nut
155 #LoadPlugin olsrd
156 #LoadPlugin onewire
157 #LoadPlugin openldap
158 #LoadPlugin openvpn
159 #LoadPlugin perl
160 #LoadPlugin pinba
161 #LoadPlugin ping
162 #LoadPlugin postgresql
163 #LoadPlugin powerdns
164 LoadPlugin processes
165 #LoadPlugin protocols
166 #LoadPlugin python
167 #LoadPlugin redis
168 #LoadPlugin rrdcached
169 LoadPlugin rrdtool
170 #LoadPlugin sensors
171 #LoadPlugin serial
172 #LoadPlugin sigrok
173 #LoadPlugin smart
174 #LoadPlugin snmp
175 #LoadPlugin statsd
176 LoadPlugin swap
177 #LoadPlugin table
178 #LoadPlugin tail
179 #LoadPlugin tail_csv
180 #LoadPlugin tcpconns
181 #LoadPlugin teamspeak2
182 #LoadPlugin ted
183 #LoadPlugin thermal
184 #LoadPlugin tokyotyrant
185 #LoadPlugin turbostat
186 #LoadPlugin unixsock
187 #LoadPlugin uptime
188 LoadPlugin users
189 #LoadPlugin uuid
190 #LoadPlugin varnish
191 #LoadPlugin virt
192 #LoadPlugin vmem
193 #LoadPlugin vserver
194 #LoadPlugin wireless
195 #LoadPlugin write_graphite
196 #LoadPlugin write_http
197 #LoadPlugin write_kafka
198 #LoadPlugin write_log
199 #LoadPlugin write_mongodb
200 #LoadPlugin write_prometheus
201 #LoadPlugin write_redis
202 #LoadPlugin write_riemann
203 #LoadPlugin write_sensu
204 #LoadPlugin write_tsdb
205 #LoadPlugin xencpu
206 #LoadPlugin zfs_arc
207 #LoadPlugin zookeeper
209 ##############################################################################
210 # Plugin configuration                                                       #
211 #----------------------------------------------------------------------------#
212 # In this section configuration stubs for each plugin are provided. A desc-  #
213 # ription of those options is available in the collectd.conf(5) manual page. #
214 ##############################################################################
216 #<Plugin aggregation>
217 #       <Aggregation>
218 #               #Host "unspecified"
219 #               Plugin "cpu"
220 #               PluginInstance "/[0,2,4,6,8]$/"
221 #               Type "cpu"
222 #               #TypeInstance "unspecified"
224 #               SetPlugin "cpu"
225 #               SetPluginInstance "even-%{aggregation}"
227 #               GroupBy "Host"
228 #               GroupBy "TypeInstance"
230 #               CalculateNum false
231 #               CalculateSum false
232 #               CalculateAverage true
233 #               CalculateMinimum false
234 #               CalculateMaximum false
235 #               CalculateStddev false
236 #       </Aggregation>
237 #</Plugin>
239 #<Plugin amqp>
240 #       <Publish "name">
241 #               Host "localhost"
242 #               Port "5672"
243 #               VHost "/"
244 #               User "guest"
245 #               Password "guest"
246 #               Exchange "amq.fanout"
247 #               RoutingKey "collectd"
248 #               Persistent false
249 #               StoreRates false
250 #               ConnectionRetryDelay 0
251 #       </Publish>
252 #</Plugin>
254 #<Plugin apache>
255 #       <Instance "foo">
256 #               URL "http://localhost/server-status?auto"
257 #               User "www-user"
258 #               Password "secret"
259 #               VerifyPeer false
260 #               VerifyHost false
261 #               CACert "/etc/ssl/ca.crt"
262 #               Server "apache"
263 #       </Instance>
265 #       <Instance "bar">
266 #               URL "http://some.domain.tld/status?auto"
267 #               Host "some.domain.tld"
268 #               Server "lighttpd"
269 #       </Instance>
270 #</Plugin>
272 #<Plugin apcups>
273 #       Host "localhost"
274 #       Port "3551"
275 #       ReportSeconds true
276 #       PersistentConnection true
277 #</Plugin>
279 #<Plugin ascent>
280 #       URL "http://localhost/ascent/status/"
281 #       User "www-user"
282 #       Password "secret"
283 #       VerifyPeer false
284 #       VerifyHost false
285 #       CACert "/etc/ssl/ca.crt"
286 #</Plugin>
288 #<Plugin barometer>
289 #       Device            "/dev/i2c-0";
290 #       Oversampling      512
291 #       PressureOffset    0.0
292 #       TemperatureOffset 0.0
293 #       Normalization     2
294 #       Altitude          238.0
295 #       TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
296 #</Plugin>
298 #<Plugin battery>
299 #       ValuesPercentage false
300 #       ReportDegraded false
301 #       QueryStateFS false
302 #</Plugin>
304 #<Plugin bind>
305 #       URL "http://localhost:8053/"
307 #       ParseTime false
309 #       OpCodes true
310 #       QTypes true
311 #       ServerStats true
312 #       ZoneMaintStats true
313 #       ResolverStats false
314 #       MemoryStats true
316 #       <View "_default">
317 #               QTypes true
318 #               ResolverStats true
319 #               CacheRRSets true
321 #               Zone "127.in-addr.arpa/IN"
322 #       </View>
323 #</Plugin>
325 #<Plugin ceph>
326 #       LongRunAvgLatency false
327 #       ConvertSpecialMetricTypes true
328 #       <Daemon "osd.0">
329 #               SocketPath "/var/run/ceph/ceph-osd.0.asok"
330 #       </Daemon>
331 #       <Daemon "osd.1">
332 #               SocketPath "/var/run/ceph/ceph-osd.1.asok"
333 #       </Daemon>
334 #       <Daemon "mon.a">
335 #               SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
336 #       </Daemon>
337 #       <Daemon "mds.a">
338 #               SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
339 #       </Daemon>
340 #</Plugin>
342 #<Plugin chrony>
343 #       Host    "localhost"
344 #       Port    "323"
345 #       Timeout "2"
346 #</Plugin>
348 #<Plugin cgroups>
349 #       CGroup "libvirt"
350 #       IgnoreSelected false
351 #</Plugin>
353 #<Plugin cpu>
354 #       ReportByCpu true
355 #       ReportByState true
356 #       ValuesPercentage false
357 #</Plugin>
359 #<Plugin csv>
360 #       DataDir "/var/lib/collectd/csv"
361 #       StoreRates false
362 #</Plugin>
364 #<Plugin curl>
365 #       <Page "stock_quotes">
366 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
367 #               User "foo"
368 #               Password "bar"
369 #               Digest false
370 #               VerifyPeer true
371 #               VerifyHost true
372 #               CACert "/path/to/ca.crt"
373 #               Header "X-Custom-Header: foobar"
374 #               Post "foo=bar"
376 #               MeasureResponseTime false
377 #               MeasureResponseCode false
378 #               <Match>
379 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
380 #                       DSType "GaugeAverage"
381 #                       Type "stock_value"
382 #                       Instance "AMD"
383 #               </Match>
384 #       </Page>
385 #</Plugin>
387 #<Plugin curl_json>
388 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
389 #  <URL "http://localhost:5984/_stats">
390 #    Instance "httpd"
391 #    <Key "httpd/requests/count">
392 #      Type "http_requests"
393 #    </Key>
395 #    <Key "httpd_request_methods/*/count">
396 #      Type "http_request_methods"
397 #    </Key>
399 #    <Key "httpd_status_codes/*/count">
400 #      Type "http_response_codes"
401 #    </Key>
402 #  </URL>
403 ## Database status metrics:
404 #  <URL "http://localhost:5984/_all_dbs">
405 #    Instance "dbs"
406 #    <Key "*/doc_count">
407 #      Type "gauge"
408 #    </Key>
409 #    <Key "*/doc_del_count">
410 #      Type "counter"
411 #    </Key>
412 #    <Key "*/disk_size">
413 #      Type "bytes"
414 #    </Key>
415 #  </URL>
416 #</Plugin>
418 #<Plugin curl_xml>
419 #       <URL "http://localhost/stats.xml">
420 #               Host "my_host"
421 #               Instance "some_instance"
422 #               User "collectd"
423 #               Password "thaiNg0I"
424 #               Digest false
425 #               VerifyPeer true
426 #               VerifyHost true
427 #               CACert "/path/to/ca.crt"
428 #               Header "X-Custom-Header: foobar"
429 #               Post "foo=bar"
431 #               <XPath "table[@id=\"magic_level\"]/tr">
432 #                       Type "magic_level"
433 #                       InstancePrefix "prefix-"
434 #                       InstanceFrom "td[1]"
435 #                       ValuesFrom "td[2]/span[@class=\"level\"]"
436 #               </XPath>
437 #       </URL>
438 #</Plugin>
440 #<Plugin dbi>
441 #       <Query "num_of_customers">
442 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
443 #                               FROM customers_tbl"
444 #               MinVersion 40102
445 #               MaxVersion 50042
446 #               <Result>
447 #                       Type "gauge"
448 #                       InstancePrefix "customer"
449 #                       InstancesFrom "c_key"
450 #                       ValuesFrom "c_value"
451 #               </Result>
452 #       </Query>
454 #       <Database "customers_db">
455 #               Driver "mysql"
456 #               DriverOption "host" "localhost"
457 #               DriverOption "username" "collectd"
458 #               DriverOption "password" "secret"
459 #               DriverOption "dbname" "custdb0"
460 #               SelectDB "custdb0"
461 #               Query "num_of_customers"
462 #               Query "..."
463 #               Host "..."
464 #       </Database>
465 #</Plugin>
467 <Plugin df>
468 #       Device "/dev/sda1"
469 #       Device "192.168.0.2:/mnt/nfs"
470 #       MountPoint "/home"
471 #       FSType "ext3"
473         # ignore rootfs; else, the root file-system would appear twice, causing
474         # one of the updates to fail and spam the log
475         FSType rootfs
476         # ignore the usual virtual / temporary file-systems
477         FSType sysfs
478         FSType proc
479         FSType devtmpfs
480         FSType devpts
481         FSType tmpfs
482         FSType fusectl
483         FSType cgroup
484         IgnoreSelected true
486 #       ReportByDevice false
487 #       ReportInodes false
489 #       ValuesAbsolute true
490 #       ValuesPercentage false
491 </Plugin>
493 #<Plugin disk>
494 #       Disk "hda"
495 #       Disk "/sda[23]/"
496 #       IgnoreSelected false
497 #       UseBSDName false
498 #       UdevNameAttr "DEVNAME"
499 #</Plugin>
501 #<Plugin dns>
502 #       Interface "eth0"
503 #       IgnoreSource "192.168.0.1"
504 #       SelectNumericQueryTypes false
505 #</Plugin>
507 #<Plugin dpdkstat>
508 #       Interval 1
509 #       Coremask "0xf"
510 #       ProcessType "secondary"
511 #       FilePrefix "rte"
512 #       EnabledPortMask 0xffff
513 #       PortName "interface1"
514 #       PortName "interface2"
515 #</Plugin>
517 #<Plugin email>
518 #       SocketFile "/var/run/collectd-email"
519 #       SocketGroup "collectd"
520 #       SocketPerms "0770"
521 #       MaxConns 5
522 #</Plugin>
524 #<Plugin ethstat>
525 #       Interface "eth0"
526 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
527 #       Map "multicast" "if_multicast"
528 #       MappedOnly false
529 #</Plugin>
531 #<Plugin exec>
532 #       Exec user "/path/to/exec"
533 #       Exec "user:group" "/path/to/exec"
534 #       NotificationExec user "/path/to/exec"
535 #</Plugin>
537 #<Plugin fhcount>
538 #       ValuesAbsolute true
539 #       ValuesPercentage false
540 #</Plugin>
542 #<Plugin filecount>
543 #       <Directory "/path/to/dir">
544 #               Instance "foodir"
545 #               Name "*.conf"
546 #               MTime "-5m"
547 #               Size "+10k"
548 #               Recursive true
549 #               IncludeHidden false
550 #       </Directory>
551 #</Plugin>
553 #<Plugin gmond>
554 #       MCReceiveFrom "239.2.11.71" "8649"
556 #       <Metric "swap_total">
557 #               Type "swap"
558 #               TypeInstance "total"
559 #               DataSource "value"
560 #       </Metric>
562 #       <Metric "swap_free">
563 #               Type "swap"
564 #               TypeInstance "free"
565 #               DataSource "value"
566 #       </Metric>
567 #</Plugin>
569 #<Plugin gps>
570 #       Host "127.0.0.1"
571 #       Port "2947"
572 #       Timeout 0.015
573 #       PauseConnect 5
574 #</Plugin>
576 #<Plugin hddtemp>
577 #       Host "127.0.0.1"
578 #       Port 7634
579 #</Plugin>
581 #<Plugin hugepages>
582 #    ReportPerNodeHP  true
583 #    ReportRootHP     true
584 #    ValuesPages      true
585 #    ValuesBytes      false
586 #    ValuesPercentage false
587 #</Plugin>
589 #<Plugin interface>
590 #       Interface "eth0"
591 #       IgnoreSelected false
592 #       ReportInactive true
593 #       UniqueName false
594 #</Plugin>
596 #<Plugin ipmi>
597 #       Sensor "some_sensor"
598 #       Sensor "another_one"
599 #       IgnoreSelected false
600 #       NotifySensorAdd false
601 #       NotifySensorRemove true
602 #       NotifySensorNotPresent false
603 #</Plugin>
605 #<Plugin iptables>
606 #       Chain "table" "chain"
607 #       Chain6 "table" "chain"
608 #</Plugin>
610 #<Plugin irq>
611 #       Irq 7
612 #       Irq 8
613 #       Irq 9
614 #       IgnoreSelected true
615 #</Plugin>
617 #<Plugin java>
618 #       JVMArg "-verbose:jni"
619 #       JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
621 #       LoadPlugin "org.collectd.java.GenericJMX"
622 #       <Plugin "GenericJMX">
623 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
624 #               # for an example config.
625 #       </Plugin>
626 #</Plugin>
628 #<Plugin load>
629 #       ReportRelative true
630 #</Plugin>
632 #<Plugin lua>
633 #       BasePath "/usr/share/collectd/lua"
634 #       Script "script1.lua"
635 #       Script "script2.lua"
636 #</Plugin>
638 #<Plugin madwifi>
639 #       Interface "wlan0"
640 #       IgnoreSelected false
641 #       Source "SysFS"
642 #       WatchSet "None"
643 #       WatchAdd "node_octets"
644 #       WatchAdd "node_rssi"
645 #       WatchAdd "is_rx_acl"
646 #       WatchAdd "is_scan_active"
647 #</Plugin>
649 #<Plugin mbmon>
650 #       Host "127.0.0.1"
651 #       Port 411
652 #</Plugin>
654 #<Plugin md>
655 #       Device "/dev/md0"
656 #       IgnoreSelected false
657 #</Plugin>
659 #<Plugin memcachec>
660 #       <Page "plugin_instance">
661 #               Server "localhost"
662 #               Key "page_key"
663 #               <Match>
664 #                       Regex "(\\d+) bytes sent"
665 #                       ExcludeRegex "<lines to be excluded>"
666 #                       DSType CounterAdd
667 #                       Type "ipt_octets"
668 #                       Instance "type_instance"
669 #               </Match>
670 #       </Page>
671 #</Plugin>
673 #<Plugin memcached>
674 #       <Instance "local">
675 #               Socket "/var/run/memcached.sock"
676 # or:
677 #               #Host "memcache.example.com"
678 #               Address "127.0.0.1"
679 #               Port "11211"
680 #       </Instance>
681 #</Plugin>
683 #<Plugin memory>
684 #       ValuesAbsolute true
685 #       ValuesPercentage false
686 #</Plugin>
688 #<Plugin modbus>
689 #       <Data "data_name">
690 #               RegisterBase 1234
691 #               RegisterCmd ReadHolding
692 #               RegisterType float
693 #               Type gauge
694 #               Instance "..."
695 #       </Data>
697 #       <Host "name">
698 #               Address "addr"
699 #               Port "1234"
700 #               Interval 60
702 #               <Slave 1>
703 #                       Instance "foobar" # optional
704 #                       Collect "data_name"
705 #               </Slave>
706 #       </Host>
707 #</Plugin>
709 #<Plugin mqtt>
710 #       <Publish "name">
711 #               Host "localhost"
712 #               Port 1883
713 #               ClientId "localhost"
714 #               User "user"
715 #               Password "secret"
716 #               QoS 0
717 #               Prefix "collectd"
718 #               StoreRates true
719 #               Retain false
720 #               CACert "/etc/ssl/ca.crt"
721 #               CertificateFile "/etc/ssl/client.crt"
722 #               CertificateKeyFile "/etc/ssl/client.pem"
723 #               TLSProtocol "tlsv1.2"
724 #               CipherSuite "ciphers"
725 #       <Publish>
726 #       <Subscribe "name">
727 #               Host "localhost"
728 #               Port 1883
729 #               ClientId "localhost"
730 #               User "user"
731 #               Password "secret"
732 #               QoS 2
733 #               Topic "collectd/#"
734 #               CleanSession true
735 #       </Subscribe>
736 #</Plugin>
738 #<Plugin mysql>
739 #       <Database db_name>
740 #               Host "database.serv.er"
741 #               Port "3306"
742 #               User "db_user"
743 #               Password "secret"
744 #               Database "db_name"
745 #               SSLKey "/path/to/key.pem"
746 #               SSLCert "/path/to/cert.pem"
747 #               SSLCA "/path/to/ca.pem"
748 #               SSLCAPath "/path/to/cas/"
749 #               SSLCipher "DHE-RSA-AES256-SHA"
750 #               MasterStats true
751 #               ConnectTimeout 10
752 #               InnodbStats true
753 #       </Database>
755 #       <Database db_name2>
756 #               Alias "squeeze"
757 #               Host "localhost"
758 #               Socket "/var/run/mysql/mysqld.sock"
759 #               SlaveStats true
760 #               SlaveNotifications true
761 #       </Database>
763 #       <Database galera>
764 #               Alias "galera"
765 #               Host "localhost"
766 #               Socket "/var/run/mysql/mysqld.sock"
767 #               WsrepStats true
768 #       </Database>
769 #</Plugin>
771 #<Plugin netlink>
772 #       Interface "All"
773 #       VerboseInterface "All"
774 #       QDisc "eth0" "pfifo_fast-1:0"
775 #       Class "ppp0" "htb-1:10"
776 #       Filter "ppp0" "u32-1:0"
777 #       IgnoreSelected false
778 #</Plugin>
780 #<Plugin network>
781 #       # client setup:
782 #       Server "ff18::efc0:4a42" "25826"
783 #       <Server "239.192.74.66" "25826">
784 #               SecurityLevel Encrypt
785 #               Username "user"
786 #               Password "secret"
787 #               Interface "eth0"
788 #               ResolveInterval 14400
789 #       </Server>
790 #       TimeToLive 128
792 #       # server setup:
793 #       Listen "ff18::efc0:4a42" "25826"
794 #       <Listen "239.192.74.66" "25826">
795 #               SecurityLevel Sign
796 #               AuthFile "/etc/collectd/passwd"
797 #               Interface "eth0"
798 #       </Listen>
799 #       MaxPacketSize 1452
801 #       # proxy setup (client and server as above):
802 #       Forward true
804 #       # statistics about the network plugin itself
805 #       ReportStats false
807 #       # "garbage collection"
808 #       CacheFlush 1800
809 #</Plugin>
811 #<Plugin nginx>
812 #       URL "http://localhost/status?auto"
813 #       User "www-user"
814 #       Password "secret"
815 #       VerifyPeer false
816 #       VerifyHost false
817 #       CACert "/etc/ssl/ca.crt"
818 #</Plugin>
820 #<Plugin notify_desktop>
821 #       OkayTimeout 1000
822 #       WarningTimeout 5000
823 #       FailureTimeout 0
824 #</Plugin>
826 #<Plugin notify_email>
827 #       SMTPServer "localhost"
828 #       SMTPPort 25
829 #       SMTPUser "my-username"
830 #       SMTPPassword "my-password"
831 #       From "collectd@main0server.com"
832 #       # <WARNING/FAILURE/OK> on <hostname>.
833 #       # Beware! Do not use not more than two placeholders (%)!
834 #       Subject "[collectd] %s on %s!"
835 #       Recipient "email1@domain1.net"
836 #       Recipient "email2@domain2.com"
837 #</Plugin>
839 #<Plugin notify_nagios>
840 #       CommandFile "/var/lib/icinga/rw/icinga.cmd"
841 #</Plugin>
843 #<Plugin ntpd>
844 #       Host "localhost"
845 #       Port 123
846 #       ReverseLookups false
847 #       IncludeUnitID true
848 #</Plugin>
850 #<Plugin nut>
851 #       UPS "upsname@hostname:port"
852 #</Plugin>
854 #<Plugin olsrd>
855 #       Host "127.0.0.1"
856 #       Port "2006"
857 #       CollectLinks "Summary"
858 #       CollectRoutes "Summary"
859 #       CollectTopology "Summary"
860 #</Plugin>
862 #<Plugin onewire>
863 #       Device "-s localhost:4304"
864 #       Sensor "F10FCA000800"
865 #       IgnoreSelected false
866 #</Plugin>
868 #<Plugin openldap>
869 #       <Instance "localhost">
870 #               URL "ldap://localhost:389"
871 #               StartTLS false
872 #               VerifyHost true
873 #               CACert "/path/to/ca.crt"
874 #               Timeout -1
875 #               Version 3
876 #       </Instance>
877 #</Plugin>
879 #<Plugin openvpn>
880 #       StatusFile "/etc/openvpn/openvpn-status.log"
881 #       ImprovedNamingSchema false
882 #       CollectCompression true
883 #       CollectIndividualUsers true
884 #       CollectUserCount false
885 #</Plugin>
887 #<Plugin perl>
888 #       IncludeDir "/my/include/path"
889 #       BaseName "Collectd::Plugins"
890 #       EnableDebugger ""
891 #       LoadPlugin Monitorus
892 #       LoadPlugin OpenVZ
894 #       <Plugin foo>
895 #               Foo "Bar"
896 #               Qux "Baz"
897 #       </Plugin>
898 #</Plugin>
900 #<Plugin pinba>
901 #       Address "::0"
902 #       Port "30002"
903 #       <View "name">
904 #               Host "host name"
905 #               Server "server name"
906 #               Script "script name"
907 #       <View>
908 #</Plugin>
910 #<Plugin ping>
911 #       Host "host.foo.bar"
912 #       Host "host.baz.qux"
913 #       Interval 1.0
914 #       Timeout 0.9
915 #       TTL 255
916 #       SourceAddress "1.2.3.4"
917 #       Device "eth0"
918 #       MaxMissed -1
919 #</Plugin>
921 #<Plugin postgresql>
922 #       <Query magic>
923 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
924 #               Param hostname
926 #               <Result>
927 #                       Type gauge
928 #                       InstancePrefix "magic"
929 #                       ValuesFrom "magic"
930 #               </Result>
931 #       </Query>
933 #       <Query rt36_tickets>
934 #               Statement "SELECT COUNT(type) AS count, type \
935 #                                 FROM (SELECT CASE \
936 #                                              WHEN resolved = 'epoch' THEN 'open' \
937 #                                              ELSE 'resolved' END AS type \
938 #                                              FROM tickets) type \
939 #                                 GROUP BY type;"
941 #               <Result>
942 #                       Type counter
943 #                       InstancePrefix "rt36_tickets"
944 #                       InstancesFrom "type"
945 #                       ValuesFrom "count"
946 #               </Result>
947 #       </Query>
949 #       <Writer sqlstore>
950 #               # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
951 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
952 #               StoreRates true
953 #       </Writer>
955 #       <Database foo>
956 #               Host "hostname"
957 #               Port 5432
958 #               User "username"
959 #               Password "secret"
961 #               SSLMode "prefer"
962 #               KRBSrvName "kerberos_service_name"
964 #               Query magic
965 #       </Database>
967 #       <Database bar>
968 #               Interval 60
969 #               Service "service_name"
971 #               Query backend # predefined
972 #               Query rt36_tickets
973 #       </Database>
975 #       <Database qux>
976 #               Service "collectd_store"
977 #               Writer sqlstore
978 #               # see collectd.conf(5) for details
979 #               CommitInterval 30
980 #       </Database>
981 #</Plugin>
983 #<Plugin powerdns>
984 #       <Server "server_name">
985 #               Collect "latency"
986 #               Collect "udp-answers" "udp-queries"
987 #               Socket "/var/run/pdns.controlsocket"
988 #       </Server>
989 #       <Recursor "recursor_name">
990 #               Collect "questions"
991 #               Collect "cache-hits" "cache-misses"
992 #               Socket "/var/run/pdns_recursor.controlsocket"
993 #       </Recursor>
994 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
995 #</Plugin>
997 #<Plugin processes>
998 #       Process "name"
999 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
1000 #</Plugin>
1002 #<Plugin protocols>
1003 #       Value "/^Tcp:/"
1004 #       IgnoreSelected false
1005 #</Plugin>
1007 #<Plugin python>
1008 #       ModulePath "/path/to/your/python/modules"
1009 #       LogTraces true
1010 #       Interactive true
1011 #       Import "spam"
1013 #       <Module spam>
1014 #               spam "wonderful" "lovely"
1015 #       </Module>
1016 #</Plugin>
1018 #<Plugin redis>
1019 #       <Node example>
1020 #               Host "redis.example.com"
1021 #               Port "6379"
1022 #               Timeout 2000
1023 #       </Node>
1024 #</Plugin>
1026 #<Plugin rrdcached>
1027 #       DaemonAddress "unix:/var/run/rrdcached.sock"
1028 #       DataDir "/var/lib/rrdcached/db/collectd"
1029 #       CreateFiles true
1030 #       CreateFilesAsync false
1031 #       CollectStatistics true
1033 # The following settings are rather advanced
1034 # and should usually not be touched:
1035 #       StepSize 10
1036 #       HeartBeat 20
1037 #       RRARows 1200
1038 #       RRATimespan 158112000
1039 #       XFF 0.1
1040 #</Plugin>
1042 <Plugin rrdtool>
1043         DataDir "/var/lib/collectd/rrd"
1044 #       CacheTimeout 120
1045 #       CacheFlush 900
1046 #       WritesPerSecond 30
1047 #       CreateFilesAsync false
1048 #       RandomTimeout 0
1050 # The following settings are rather advanced
1051 # and should usually not be touched:
1052 #       StepSize 10
1053 #       HeartBeat 20
1054 #       RRARows 1200
1055 #       RRATimespan 158112000
1056 #       XFF 0.1
1057 </Plugin>
1059 #<Plugin sensors>
1060 #       SensorConfigFile "/etc/sensors3.conf"
1061 #       Sensor "it8712-isa-0290/temperature-temp1"
1062 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1063 #       Sensor "it8712-isa-0290/voltage-in8"
1064 #       IgnoreSelected false
1065 #</Plugin>
1067 #<Plugin sigrok>
1068 #       LogLevel 3
1069 #       <Device "AC Voltage">
1070 #               Driver "fluke-dmm"
1071 #               MinimumInterval 10
1072 #               Conn "/dev/ttyUSB2"
1073 #       </Device>
1074 #       <Device "Sound Level">
1075 #               Driver "cem-dt-885x"
1076 #               Conn "/dev/ttyUSB1"
1077 #       </Device>
1078 #</Plugin>
1080 #<Plugin smart>
1081 #       Disk "/^[hs]d[a-f][0-9]?$/"
1082 #       IgnoreSelected false
1083 #</Plugin>
1085 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
1086 # comprehensive sample configuration.
1087 #<Plugin snmp>
1088 #       <Data "powerplus_voltge_input">
1089 #               Type "voltage"
1090 #               Table false
1091 #               Instance "input_line1"
1092 #               Scale 0.1
1093 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1094 #       </Data>
1095 #       <Data "hr_users">
1096 #               Type "users"
1097 #               Table false
1098 #               Instance ""
1099 #               Shift -1
1100 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1101 #       </Data>
1102 #       <Data "std_traffic">
1103 #               Type "if_octets"
1104 #               Table true
1105 #               InstancePrefix "traffic"
1106 #               Instance "IF-MIB::ifDescr"
1107 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1108 #       </Data>
1110 #       <Host "some.switch.mydomain.org">
1111 #               Address "192.168.0.2"
1112 #               Version 1
1113 #               Community "community_string"
1114 #               Collect "std_traffic"
1115 #               Inverval 120
1116 #       </Host>
1117 #       <Host "some.server.mydomain.org">
1118 #               Address "192.168.0.42"
1119 #               Version 2
1120 #               Community "another_string"
1121 #               Collect "std_traffic" "hr_users"
1122 #       </Host>
1123 #       <Host "some.ups.mydomain.org">
1124 #               Address "192.168.0.3"
1125 #               Version 1
1126 #               Community "more_communities"
1127 #               Collect "powerplus_voltge_input"
1128 #               Interval 300
1129 #       </Host>
1130 #</Plugin>
1132 #<Plugin statsd>
1133 #       Host "::"
1134 #       Port "8125"
1135 #       DeleteCounters false
1136 #       DeleteTimers   false
1137 #       DeleteGauges   false
1138 #       DeleteSets     false
1139 #       CounterSum     false
1140 #       TimerPercentile 90.0
1141 #       TimerPercentile 95.0
1142 #       TimerPercentile 99.0
1143 #       TimerLower     false
1144 #       TimerUpper     false
1145 #       TimerSum       false
1146 #       TimerCount     false
1147 #</Plugin>
1149 #<Plugin swap>
1150 #       ReportByDevice false
1151 #       ReportBytes true
1152 #</Plugin>
1154 #<Plugin table>
1155 #       <Table "/proc/slabinfo">
1156 #               Instance "slabinfo"
1157 #               Separator " "
1158 #               <Result>
1159 #                       Type gauge
1160 #                       InstancePrefix "active_objs"
1161 #                       InstancesFrom 0
1162 #                       ValuesFrom 1
1163 #               </Result>
1164 #               <Result>
1165 #                       Type gauge
1166 #                       InstancePrefix "objperslab"
1167 #                       InstancesFrom 0
1168 #                       ValuesFrom 4
1169 #               </Result>
1170 #       </Table>
1171 #</Plugin>
1173 #<Plugin tail>
1174 #       <File "/var/log/exim4/mainlog">
1175 #               Instance "exim"
1176 #               Interval 60
1177 #               <Match>
1178 #                       Regex "S=([1-9][0-9]*)"
1179 #                       DSType "CounterAdd"
1180 #                       Type "ipt_bytes"
1181 #                       Instance "total"
1182 #               </Match>
1183 #               <Match>
1184 #                       Regex "\\<R=local_user\\>"
1185 #                       ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1186 #                       DSType "CounterInc"
1187 #                       Type "counter"
1188 #                       Instance "local_user"
1189 #               </Match>
1190 #       </File>
1191 #       <File "/var/log/nginx/apache-time.log">
1192 #               #Use the following log format in nginx:
1193 #               #log_format response_time '[$host] "$upstream_response_time" ...'
1194 #               Instance "apache"
1195 #               <Match>
1196 #                       Regex "^\\S+ \"([0-9.]+)\""
1197 #                       <DSType Distribution>
1198 #                               Percentile 80    # -> latency-foo-80
1199 #                               Percentile 95    # -> latency-foo-95
1200 #                               Percentile 99    # -> latency-foo-99
1201 #                               Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1202 #                               Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1203 #                               Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1204 #                               Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1205 #                               Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1206 #                               Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1207 #                       </DSType>
1208 #                       Type "latency"
1209 #                       Instance "foo"
1210 #               </Match>
1211 #       </File>
1212 #</Plugin>
1214 #<Plugin tail_csv>
1215 #       <Metric "dropped">
1216 #               Type "percent"
1217 #               Instance "dropped"
1218 #               ValueFrom 1
1219 #       </Metric>
1220 #       <Metric "mbps">
1221 #               Type "bytes"
1222 #               Instance "wire-realtime"
1223 #               ValueFrom 2
1224 #       </Metric>
1225 #       <Metric "alerts">
1226 #               Type "alerts_per_second"
1227 #               ValueFrom 3
1228 #       </Metric>
1229 #       <Metric "kpps">
1230 #               Type "kpackets_wire_per_sec.realtime"
1231 #               ValueFrom 4
1232 #       </Metric>
1233 #       <File "/var/log/snort/snort.stats">
1234 #               Instance "snort-eth0"
1235 #               Interval 600
1236 #               Collect "dropped" "mbps" "alerts" "kpps"
1237 #               TimeFrom 0
1238 #       </File>
1239 #</Plugin>
1241 #<Plugin tcpconns>
1242 #       ListeningPorts false
1243 #       AllPortsSummary false
1244 #       LocalPort "25"
1245 #       RemotePort "25"
1246 #</Plugin>
1248 #<Plugin teamspeak2>
1249 #       Host "127.0.0.1"
1250 #       Port "51234"
1251 #       Server "8767"
1252 #</Plugin>
1254 #<Plugin ted>
1255 #       Device "/dev/ttyUSB0"
1256 #       Retries 0
1257 #</Plugin>
1259 #<Plugin thermal>
1260 #       ForceUseProcfs false
1261 #       Device "THRM"
1262 #       IgnoreSelected false
1263 #</Plugin>
1265 #<Plugin tokyotyrant>
1266 #       Host "localhost"
1267 #       Port "1978"
1268 #</Plugin>
1270 #<Plugin turbostat>
1271 ##      None of the following option should be set manually
1272 ##      This plugin automatically detect most optimal options
1273 ##      Only set values here if:
1274 ##      - The module asks you to
1275 ##      - You want to disable the collection of some data
1276 ##      - Your (Intel) CPU is not supported (yet) by the module
1277 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1278 ##      In the last two cases, please open a bug request
1280 #       TCCActivationTemp "100"
1281 #       CoreCstates "392"
1282 #       PackageCstates "396"
1283 #       SystemManagementInterrupt true
1284 #       DigitalTemperatureSensor true
1285 #       PackageThermalManagement true
1286 #       RunningAveragePowerLimit "7"
1287 #</Plugin>
1289 #<Plugin unixsock>
1290 #       SocketFile "/var/run/collectd-unixsock"
1291 #       SocketGroup "collectd"
1292 #       SocketPerms "0660"
1293 #       DeleteSocket false
1294 #</Plugin>
1296 #<Plugin uuid>
1297 #       UUIDFile "/etc/uuid"
1298 #</Plugin>
1300 #<Plugin varnish>
1301 #       <Instance>
1302 #               CollectBackend true
1303 #               CollectBan false           # Varnish 3 and above
1304 #               CollectCache true
1305 #               CollectConnections true
1306 #               CollectDirectorDNS false   # Varnish 3 only
1307 #               CollectESI false
1308 #               CollectFetch false
1309 #               CollectHCB false
1310 #               CollectObjects false
1311 #               CollectPurge false         # Varnish 2 only
1312 #               CollectSession false
1313 #               CollectSHM true
1314 #               CollectSMA false           # Varnish 2 only
1315 #               CollectSMS false
1316 #               CollectSM false            # Varnish 2 only
1317 #               CollectStruct false
1318 #               CollectTotals false
1319 #               CollectUptime false        # Varnish 3 and above
1320 #               CollectdVCL false
1321 #               CollectVSM false           # Varnish 4 only
1322 #               CollectWorkers false
1323 #       </Instance>
1325 #       <Instance "myinstance">
1326 #               CollectCache true
1327 #       </Instance>
1328 #</Plugin>
1330 #<Plugin virt>
1331 #       Connection "xen:///"
1332 #       RefreshInterval 60
1333 #       Domain "name"
1334 #       BlockDevice "name:device"
1335 #       BlockDeviceFormat target
1336 #       BlockDeviceFormatBasename false
1337 #       InterfaceDevice "name:device"
1338 #       IgnoreSelected false
1339 #       HostnameFormat name
1340 #       InterfaceFormat name
1341 #       PluginInstanceFormat name
1342 #</Plugin>
1344 #<Plugin vmem>
1345 #       Verbose false
1346 #</Plugin>
1348 #<Plugin write_graphite>
1349 #       <Node "example">
1350 #               Host "localhost"
1351 #               Port "2003"
1352 #               Protocol "tcp"
1353 #               ReconnectInterval 0
1354 #               LogSendErrors true
1355 #               Prefix "collectd"
1356 #               Postfix "collectd"
1357 #               StoreRates true
1358 #               AlwaysAppendDS false
1359 #               EscapeCharacter "_"
1360 #               SeparateInstances false
1361 #               PreserveSeparator false
1362 #               DropDuplicateFields false
1363 #       </Node>
1364 #</Plugin>
1366 #<Plugin write_http>
1367 #       <Node "example">
1368 #               URL "http://example.com/collectd-post"
1369 #               User "collectd"
1370 #               Password "secret"
1371 #               VerifyPeer true
1372 #               VerifyHost true
1373 #               CACert "/etc/ssl/ca.crt"
1374 #               CAPath "/etc/ssl/certs/"
1375 #               ClientKey "/etc/ssl/client.pem"
1376 #               ClientCert "/etc/ssl/client.crt"
1377 #               ClientKeyPass "secret"
1378 #               Header "X-Custom-Header: custom_value"
1379 #               SSLVersion "TLSv1"
1380 #               Format "Command"
1381 #               Metrics true
1382 #               Notifications false
1383 #               StoreRates false
1384 #               BufferSize 4096
1385 #               LowSpeedLimit 0
1386 #               Timeout 0
1387 #               Prefix "collectd/"
1388 #       </Node>
1389 #</Plugin>
1391 #<Plugin write_kafka>
1392 #       Property "metadata.broker.list" "localhost:9092"
1393 #       <Topic "collectd">
1394 #               Format JSON
1395 #       </Topic>
1396 #</Plugin>
1398 #<Plugin write_mongodb>
1399 #       <Node "example">
1400 #               Host "localhost"
1401 #               Port "27017"
1402 #               Timeout 1000
1403 #               StoreRates false
1404 #               Database "auth_db"
1405 #               User "auth_user"
1406 #               Password "auth_passwd"
1407 #       </Node>
1408 #</Plugin>
1410 #<Plugin write_prometheus>
1411 #       Port "9103"
1412 #</Plugin>
1414 #<Plugin write_redis>
1415 #       <Node "example">
1416 #               Host "localhost"
1417 #               Port "6379"
1418 #               Timeout 1000
1419 #       <Node>
1420 #</Plugin>
1422 #<Plugin write_riemann>
1423 #       <Node "example">
1424 #               Host "localhost"
1425 #               Port 5555
1426 #               Protocol TCP
1427 #               Batch true
1428 #               BatchMaxSize 8192
1429 #               StoreRates true
1430 #               AlwaysAppendDS false
1431 #               TTLFactor 2.0
1432 #               Notifications true
1433 #               CheckThresholds false
1434 #               EventServicePrefix ""
1435 #       </Node>
1436 #       Tag "foobar"
1437 #       Attribute "foo" "bar"
1438 #</Plugin>
1440 #<Plugin write_sensu>
1441 #       <Node "example">
1442 #               Host "localhost"
1443 #               Port 3030
1444 #               StoreRates true
1445 #               AlwaysAppendDS false
1446 #               Notifications true
1447 #               Metrics true
1448 #               EventServicePrefix ""
1449 #               MetricHandler "influx"
1450 #               MetricHandler "default"
1451 #               NotificationHandler "flapjack"
1452 #               NotificationHandler "howling_monkey"
1453 #       </Node>
1454 #       Tag "foobar"
1455 #       Attribute "foo" "bar"
1456 #</Plugin>
1458 #<Plugin write_tsdb>
1459 #       <Node>
1460 #               Host "localhost"
1461 #               Port "4242"
1462 #               HostTags "status=production"
1463 #               StoreRates false
1464 #               AlwaysAppendDS false
1465 #       </Node>
1466 #</Plugin>
1468 #<Plugin zookeeper>
1469 #       Host "localhost"
1470 #       Port "2181"
1471 #</Plugin>
1473 <Include "/etc/collectd/collectd.conf.d">
1474         Filter "*.conf"
1475 </Include>