Code

collectd.conf: update for new plugins and config options
[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_prometheus
200 #LoadPlugin write_redis
201 #LoadPlugin write_riemann
202 #LoadPlugin write_sensu
203 #LoadPlugin write_tsdb
204 #LoadPlugin xencpu
205 #LoadPlugin zfs_arc
206 #LoadPlugin zookeeper
208 ##############################################################################
209 # Plugin configuration                                                       #
210 #----------------------------------------------------------------------------#
211 # In this section configuration stubs for each plugin are provided. A desc-  #
212 # ription of those options is available in the collectd.conf(5) manual page. #
213 ##############################################################################
215 #<Plugin aggregation>
216 #       <Aggregation>
217 #               #Host "unspecified"
218 #               Plugin "cpu"
219 #               PluginInstance "/[0,2,4,6,8]$/"
220 #               Type "cpu"
221 #               #TypeInstance "unspecified"
223 #               SetPlugin "cpu"
224 #               SetPluginInstance "even-%{aggregation}"
226 #               GroupBy "Host"
227 #               GroupBy "TypeInstance"
229 #               CalculateNum false
230 #               CalculateSum false
231 #               CalculateAverage true
232 #               CalculateMinimum false
233 #               CalculateMaximum false
234 #               CalculateStddev false
235 #       </Aggregation>
236 #</Plugin>
238 #<Plugin amqp>
239 #       <Publish "name">
240 #               Host "localhost"
241 #               Port "5672"
242 #               VHost "/"
243 #               User "guest"
244 #               Password "guest"
245 #               Exchange "amq.fanout"
246 #               RoutingKey "collectd"
247 #               Persistent false
248 #               StoreRates false
249 #               ConnectionRetryDelay 0
250 #       </Publish>
251 #</Plugin>
253 #<Plugin apache>
254 #       <Instance "foo">
255 #               URL "http://localhost/server-status?auto"
256 #               User "www-user"
257 #               Password "secret"
258 #               VerifyPeer false
259 #               VerifyHost false
260 #               CACert "/etc/ssl/ca.crt"
261 #               Server "apache"
262 #       </Instance>
264 #       <Instance "bar">
265 #               URL "http://some.domain.tld/status?auto"
266 #               Host "some.domain.tld"
267 #               Server "lighttpd"
268 #       </Instance>
269 #</Plugin>
271 #<Plugin apcups>
272 #       Host "localhost"
273 #       Port "3551"
274 #       ReportSeconds true
275 #       PersistentConnection true
276 #</Plugin>
278 #<Plugin ascent>
279 #       URL "http://localhost/ascent/status/"
280 #       User "www-user"
281 #       Password "secret"
282 #       VerifyPeer false
283 #       VerifyHost false
284 #       CACert "/etc/ssl/ca.crt"
285 #</Plugin>
287 #<Plugin barometer>
288 #       Device            "/dev/i2c-0";
289 #       Oversampling      512
290 #       PressureOffset    0.0
291 #       TemperatureOffset 0.0
292 #       Normalization     2
293 #       Altitude          238.0
294 #       TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
295 #</Plugin>
297 #<Plugin battery>
298 #       ValuesPercentage false
299 #       ReportDegraded false
300 #       QueryStateFS false
301 #</Plugin>
303 #<Plugin bind>
304 #       URL "http://localhost:8053/"
306 #       ParseTime false
308 #       OpCodes true
309 #       QTypes true
310 #       ServerStats true
311 #       ZoneMaintStats true
312 #       ResolverStats false
313 #       MemoryStats true
315 #       <View "_default">
316 #               QTypes true
317 #               ResolverStats true
318 #               CacheRRSets true
320 #               Zone "127.in-addr.arpa/IN"
321 #       </View>
322 #</Plugin>
324 #<Plugin ceph>
325 #       LongRunAvgLatency false
326 #       ConvertSpecialMetricTypes true
327 #       <Daemon "osd.0">
328 #               SocketPath "/var/run/ceph/ceph-osd.0.asok"
329 #       </Daemon>
330 #       <Daemon "osd.1">
331 #               SocketPath "/var/run/ceph/ceph-osd.1.asok"
332 #       </Daemon>
333 #       <Daemon "mon.a">
334 #               SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
335 #       </Daemon>
336 #       <Daemon "mds.a">
337 #               SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
338 #       </Daemon>
339 #</Plugin>
341 #<Plugin chrony>
342 #       Host    "localhost"
343 #       Port    "323"
344 #       Timeout "2"
345 #</Plugin>
347 #<Plugin cgroups>
348 #       CGroup "libvirt"
349 #       IgnoreSelected false
350 #</Plugin>
352 #<Plugin cpu>
353 #       ReportByCpu true
354 #       ReportByState true
355 #       ValuesPercentage false
356 #</Plugin>
358 #<Plugin csv>
359 #       DataDir "/var/lib/collectd/csv"
360 #       StoreRates false
361 #</Plugin>
363 #<Plugin curl>
364 #       <Page "stock_quotes">
365 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
366 #               User "foo"
367 #               Password "bar"
368 #               Digest false
369 #               VerifyPeer true
370 #               VerifyHost true
371 #               CACert "/path/to/ca.crt"
372 #               Header "X-Custom-Header: foobar"
373 #               Post "foo=bar"
375 #               MeasureResponseTime false
376 #               MeasureResponseCode false
377 #               <Match>
378 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
379 #                       DSType "GaugeAverage"
380 #                       Type "stock_value"
381 #                       Instance "AMD"
382 #               </Match>
383 #       </Page>
384 #</Plugin>
386 #<Plugin curl_json>
387 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
388 #  <URL "http://localhost:5984/_stats">
389 #    Instance "httpd"
390 #    <Key "httpd/requests/count">
391 #      Type "http_requests"
392 #    </Key>
394 #    <Key "httpd_request_methods/*/count">
395 #      Type "http_request_methods"
396 #    </Key>
398 #    <Key "httpd_status_codes/*/count">
399 #      Type "http_response_codes"
400 #    </Key>
401 #  </URL>
402 ## Database status metrics:
403 #  <URL "http://localhost:5984/_all_dbs">
404 #    Instance "dbs"
405 #    <Key "*/doc_count">
406 #      Type "gauge"
407 #    </Key>
408 #    <Key "*/doc_del_count">
409 #      Type "counter"
410 #    </Key>
411 #    <Key "*/disk_size">
412 #      Type "bytes"
413 #    </Key>
414 #  </URL>
415 #</Plugin>
417 #<Plugin curl_xml>
418 #       <URL "http://localhost/stats.xml">
419 #               Host "my_host"
420 #               Instance "some_instance"
421 #               User "collectd"
422 #               Password "thaiNg0I"
423 #               Digest false
424 #               VerifyPeer true
425 #               VerifyHost true
426 #               CACert "/path/to/ca.crt"
427 #               Header "X-Custom-Header: foobar"
428 #               Post "foo=bar"
430 #               <XPath "table[@id=\"magic_level\"]/tr">
431 #                       Type "magic_level"
432 #                       InstancePrefix "prefix-"
433 #                       InstanceFrom "td[1]"
434 #                       ValuesFrom "td[2]/span[@class=\"level\"]"
435 #               </XPath>
436 #       </URL>
437 #</Plugin>
439 #<Plugin dbi>
440 #       <Query "num_of_customers">
441 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
442 #                               FROM customers_tbl"
443 #               MinVersion 40102
444 #               MaxVersion 50042
445 #               <Result>
446 #                       Type "gauge"
447 #                       InstancePrefix "customer"
448 #                       InstancesFrom "c_key"
449 #                       ValuesFrom "c_value"
450 #               </Result>
451 #       </Query>
453 #       <Database "customers_db">
454 #               Driver "mysql"
455 #               DriverOption "host" "localhost"
456 #               DriverOption "username" "collectd"
457 #               DriverOption "password" "secret"
458 #               DriverOption "dbname" "custdb0"
459 #               SelectDB "custdb0"
460 #               Query "num_of_customers"
461 #               Query "..."
462 #               Host "..."
463 #       </Database>
464 #</Plugin>
466 <Plugin df>
467 #       Device "/dev/sda1"
468 #       Device "192.168.0.2:/mnt/nfs"
469 #       MountPoint "/home"
470 #       FSType "ext3"
472         # ignore rootfs; else, the root file-system would appear twice, causing
473         # one of the updates to fail and spam the log
474         FSType rootfs
475         # ignore the usual virtual / temporary file-systems
476         FSType sysfs
477         FSType proc
478         FSType devtmpfs
479         FSType devpts
480         FSType tmpfs
481         FSType fusectl
482         FSType cgroup
483         IgnoreSelected true
485 #       ReportByDevice false
486 #       ReportInodes false
488 #       ValuesAbsolute true
489 #       ValuesPercentage false
490 </Plugin>
492 #<Plugin disk>
493 #       Disk "hda"
494 #       Disk "/sda[23]/"
495 #       IgnoreSelected false
496 #       UseBSDName false
497 #       UdevNameAttr "DEVNAME"
498 #</Plugin>
500 #<Plugin dns>
501 #       Interface "eth0"
502 #       IgnoreSource "192.168.0.1"
503 #       SelectNumericQueryTypes false
504 #</Plugin>
506 #<Plugin dpdkstat>
507 #       Interval 1
508 #       Coremask "0xf"
509 #       ProcessType "secondary"
510 #       FilePrefix "rte"
511 #       EnabledPortMask 0xffff
512 #       PortName "interface1"
513 #       PortName "interface2"
514 #</Plugin>
516 #<Plugin email>
517 #       SocketFile "/var/run/collectd-email"
518 #       SocketGroup "collectd"
519 #       SocketPerms "0770"
520 #       MaxConns 5
521 #</Plugin>
523 #<Plugin ethstat>
524 #       Interface "eth0"
525 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
526 #       Map "multicast" "if_multicast"
527 #       MappedOnly false
528 #</Plugin>
530 #<Plugin exec>
531 #       Exec user "/path/to/exec"
532 #       Exec "user:group" "/path/to/exec"
533 #       NotificationExec user "/path/to/exec"
534 #</Plugin>
536 #<Plugin fhcount>
537 #       ValuesAbsolute true
538 #       ValuesPercentage false
539 #</Plugin>
541 #<Plugin filecount>
542 #       <Directory "/path/to/dir">
543 #               Instance "foodir"
544 #               Name "*.conf"
545 #               MTime "-5m"
546 #               Size "+10k"
547 #               Recursive true
548 #               IncludeHidden false
549 #       </Directory>
550 #</Plugin>
552 #<Plugin gmond>
553 #       MCReceiveFrom "239.2.11.71" "8649"
555 #       <Metric "swap_total">
556 #               Type "swap"
557 #               TypeInstance "total"
558 #               DataSource "value"
559 #       </Metric>
561 #       <Metric "swap_free">
562 #               Type "swap"
563 #               TypeInstance "free"
564 #               DataSource "value"
565 #       </Metric>
566 #</Plugin>
568 #<Plugin gps>
569 #       Host "127.0.0.1"
570 #       Port "2947"
571 #       Timeout 0.015
572 #       PauseConnect 5
573 #</Plugin>
575 #<Plugin hddtemp>
576 #       Host "127.0.0.1"
577 #       Port 7634
578 #</Plugin>
580 #<Plugin hugepages>
581 #    ReportPerNodeHP  true
582 #    ReportRootHP     true
583 #    ValuesPages      true
584 #    ValuesBytes      false
585 #    ValuesPercentage false
586 #</Plugin>
588 #<Plugin interface>
589 #       Interface "eth0"
590 #       IgnoreSelected false
591 #       ReportInactive true
592 #       UniqueName false
593 #</Plugin>
595 #<Plugin ipmi>
596 #       Sensor "some_sensor"
597 #       Sensor "another_one"
598 #       IgnoreSelected false
599 #       NotifySensorAdd false
600 #       NotifySensorRemove true
601 #       NotifySensorNotPresent false
602 #</Plugin>
604 #<Plugin iptables>
605 #       Chain "table" "chain"
606 #       Chain6 "table" "chain"
607 #</Plugin>
609 #<Plugin irq>
610 #       Irq 7
611 #       Irq 8
612 #       Irq 9
613 #       IgnoreSelected true
614 #</Plugin>
616 #<Plugin java>
617 #       JVMArg "-verbose:jni"
618 #       JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
620 #       LoadPlugin "org.collectd.java.GenericJMX"
621 #       <Plugin "GenericJMX">
622 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
623 #               # for an example config.
624 #       </Plugin>
625 #</Plugin>
627 #<Plugin load>
628 #       ReportRelative true
629 #</Plugin>
631 #<Plugin lua>
632 #       BasePath "/usr/share/collectd/lua"
633 #       Script "script1.lua"
634 #       Script "script2.lua"
635 #</Plugin>
637 #<Plugin madwifi>
638 #       Interface "wlan0"
639 #       IgnoreSelected false
640 #       Source "SysFS"
641 #       WatchSet "None"
642 #       WatchAdd "node_octets"
643 #       WatchAdd "node_rssi"
644 #       WatchAdd "is_rx_acl"
645 #       WatchAdd "is_scan_active"
646 #</Plugin>
648 #<Plugin mbmon>
649 #       Host "127.0.0.1"
650 #       Port 411
651 #</Plugin>
653 #<Plugin md>
654 #       Device "/dev/md0"
655 #       IgnoreSelected false
656 #</Plugin>
658 #<Plugin memcachec>
659 #       <Page "plugin_instance">
660 #               Server "localhost"
661 #               Key "page_key"
662 #               <Match>
663 #                       Regex "(\\d+) bytes sent"
664 #                       ExcludeRegex "<lines to be excluded>"
665 #                       DSType CounterAdd
666 #                       Type "ipt_octets"
667 #                       Instance "type_instance"
668 #               </Match>
669 #       </Page>
670 #</Plugin>
672 #<Plugin memcached>
673 #       <Instance "local">
674 #               Socket "/var/run/memcached.sock"
675 # or:
676 #               #Host "memcache.example.com"
677 #               Address "127.0.0.1"
678 #               Port "11211"
679 #       </Instance>
680 #</Plugin>
682 #<Plugin memory>
683 #       ValuesAbsolute true
684 #       ValuesPercentage false
685 #</Plugin>
687 #<Plugin modbus>
688 #       <Data "data_name">
689 #               RegisterBase 1234
690 #               RegisterCmd ReadHolding
691 #               RegisterType float
692 #               Type gauge
693 #               Instance "..."
694 #       </Data>
696 #       <Host "name">
697 #               Address "addr"
698 #               Port "1234"
699 #               Interval 60
701 #               <Slave 1>
702 #                       Instance "foobar" # optional
703 #                       Collect "data_name"
704 #               </Slave>
705 #       </Host>
706 #</Plugin>
708 #<Plugin mqtt>
709 #       <Publish "name">
710 #               Host "localhost"
711 #               Port 1883
712 #               ClientId "localhost"
713 #               User "user"
714 #               Password "secret"
715 #               QoS 0
716 #               Prefix "collectd"
717 #               StoreRates true
718 #               Retain false
719 #               CACert "/etc/ssl/ca.crt"
720 #               CertificateFile "/etc/ssl/client.crt"
721 #               CertificateKeyFile "/etc/ssl/client.pem"
722 #               TLSProtocol "tlsv1.2"
723 #               CipherSuite "ciphers"
724 #       <Publish>
725 #       <Subscribe "name">
726 #               Host "localhost"
727 #               Port 1883
728 #               ClientId "localhost"
729 #               User "user"
730 #               Password "secret"
731 #               QoS 2
732 #               Topic "collectd/#"
733 #               CleanSession true
734 #       </Subscribe>
735 #</Plugin>
737 #<Plugin mysql>
738 #       <Database db_name>
739 #               Host "database.serv.er"
740 #               Port "3306"
741 #               User "db_user"
742 #               Password "secret"
743 #               Database "db_name"
744 #               SSLKey "/path/to/key.pem"
745 #               SSLCert "/path/to/cert.pem"
746 #               SSLCA "/path/to/ca.pem"
747 #               SSLCAPath "/path/to/cas/"
748 #               SSLCipher "DHE-RSA-AES256-SHA"
749 #               MasterStats true
750 #               ConnectTimeout 10
751 #               InnodbStats true
752 #       </Database>
754 #       <Database db_name2>
755 #               Alias "squeeze"
756 #               Host "localhost"
757 #               Socket "/var/run/mysql/mysqld.sock"
758 #               SlaveStats true
759 #               SlaveNotifications true
760 #       </Database>
762 #       <Database galera>
763 #               Alias "galera"
764 #               Host "localhost"
765 #               Socket "/var/run/mysql/mysqld.sock"
766 #               WsrepStats true
767 #       </Database>
768 #</Plugin>
770 #<Plugin netlink>
771 #       Interface "All"
772 #       VerboseInterface "All"
773 #       QDisc "eth0" "pfifo_fast-1:0"
774 #       Class "ppp0" "htb-1:10"
775 #       Filter "ppp0" "u32-1:0"
776 #       IgnoreSelected false
777 #</Plugin>
779 #<Plugin network>
780 #       # client setup:
781 #       Server "ff18::efc0:4a42" "25826"
782 #       <Server "239.192.74.66" "25826">
783 #               SecurityLevel Encrypt
784 #               Username "user"
785 #               Password "secret"
786 #               Interface "eth0"
787 #               ResolveInterval 14400
788 #       </Server>
789 #       TimeToLive 128
791 #       # server setup:
792 #       Listen "ff18::efc0:4a42" "25826"
793 #       <Listen "239.192.74.66" "25826">
794 #               SecurityLevel Sign
795 #               AuthFile "/etc/collectd/passwd"
796 #               Interface "eth0"
797 #       </Listen>
798 #       MaxPacketSize 1452
800 #       # proxy setup (client and server as above):
801 #       Forward true
803 #       # statistics about the network plugin itself
804 #       ReportStats false
806 #       # "garbage collection"
807 #       CacheFlush 1800
808 #</Plugin>
810 #<Plugin nginx>
811 #       URL "http://localhost/status?auto"
812 #       User "www-user"
813 #       Password "secret"
814 #       VerifyPeer false
815 #       VerifyHost false
816 #       CACert "/etc/ssl/ca.crt"
817 #</Plugin>
819 #<Plugin notify_desktop>
820 #       OkayTimeout 1000
821 #       WarningTimeout 5000
822 #       FailureTimeout 0
823 #</Plugin>
825 #<Plugin notify_email>
826 #       SMTPServer "localhost"
827 #       SMTPPort 25
828 #       SMTPUser "my-username"
829 #       SMTPPassword "my-password"
830 #       From "collectd@main0server.com"
831 #       # <WARNING/FAILURE/OK> on <hostname>.
832 #       # Beware! Do not use not more than two placeholders (%)!
833 #       Subject "[collectd] %s on %s!"
834 #       Recipient "email1@domain1.net"
835 #       Recipient "email2@domain2.com"
836 #</Plugin>
838 #<Plugin notify_nagios>
839 #       CommandFile "/var/lib/icinga/rw/icinga.cmd"
840 #</Plugin>
842 #<Plugin ntpd>
843 #       Host "localhost"
844 #       Port 123
845 #       ReverseLookups false
846 #       IncludeUnitID true
847 #</Plugin>
849 #<Plugin nut>
850 #       UPS "upsname@hostname:port"
851 #</Plugin>
853 #<Plugin olsrd>
854 #       Host "127.0.0.1"
855 #       Port "2006"
856 #       CollectLinks "Summary"
857 #       CollectRoutes "Summary"
858 #       CollectTopology "Summary"
859 #</Plugin>
861 #<Plugin onewire>
862 #       Device "-s localhost:4304"
863 #       Sensor "F10FCA000800"
864 #       IgnoreSelected false
865 #</Plugin>
867 #<Plugin openldap>
868 #       <Instance "localhost">
869 #               URL "ldap://localhost:389"
870 #               StartTLS false
871 #               VerifyHost true
872 #               CACert "/path/to/ca.crt"
873 #               Timeout -1
874 #               Version 3
875 #       </Instance>
876 #</Plugin>
878 #<Plugin openvpn>
879 #       StatusFile "/etc/openvpn/openvpn-status.log"
880 #       ImprovedNamingSchema false
881 #       CollectCompression true
882 #       CollectIndividualUsers true
883 #       CollectUserCount false
884 #</Plugin>
886 #<Plugin perl>
887 #       IncludeDir "/my/include/path"
888 #       BaseName "Collectd::Plugins"
889 #       EnableDebugger ""
890 #       LoadPlugin Monitorus
891 #       LoadPlugin OpenVZ
893 #       <Plugin foo>
894 #               Foo "Bar"
895 #               Qux "Baz"
896 #       </Plugin>
897 #</Plugin>
899 #<Plugin pinba>
900 #       Address "::0"
901 #       Port "30002"
902 #       <View "name">
903 #               Host "host name"
904 #               Server "server name"
905 #               Script "script name"
906 #       <View>
907 #</Plugin>
909 #<Plugin ping>
910 #       Host "host.foo.bar"
911 #       Host "host.baz.qux"
912 #       Interval 1.0
913 #       Timeout 0.9
914 #       TTL 255
915 #       SourceAddress "1.2.3.4"
916 #       Device "eth0"
917 #       MaxMissed -1
918 #</Plugin>
920 #<Plugin postgresql>
921 #       <Query magic>
922 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
923 #               Param hostname
925 #               <Result>
926 #                       Type gauge
927 #                       InstancePrefix "magic"
928 #                       ValuesFrom "magic"
929 #               </Result>
930 #       </Query>
932 #       <Query rt36_tickets>
933 #               Statement "SELECT COUNT(type) AS count, type \
934 #                                 FROM (SELECT CASE \
935 #                                              WHEN resolved = 'epoch' THEN 'open' \
936 #                                              ELSE 'resolved' END AS type \
937 #                                              FROM tickets) type \
938 #                                 GROUP BY type;"
940 #               <Result>
941 #                       Type counter
942 #                       InstancePrefix "rt36_tickets"
943 #                       InstancesFrom "type"
944 #                       ValuesFrom "count"
945 #               </Result>
946 #       </Query>
948 #       <Writer sqlstore>
949 #               # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
950 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
951 #               StoreRates true
952 #       </Writer>
954 #       <Database foo>
955 #               Host "hostname"
956 #               Port 5432
957 #               User "username"
958 #               Password "secret"
960 #               SSLMode "prefer"
961 #               KRBSrvName "kerberos_service_name"
963 #               Query magic
964 #       </Database>
966 #       <Database bar>
967 #               Interval 60
968 #               Service "service_name"
970 #               Query backend # predefined
971 #               Query rt36_tickets
972 #       </Database>
974 #       <Database qux>
975 #               Service "collectd_store"
976 #               Writer sqlstore
977 #               # see collectd.conf(5) for details
978 #               CommitInterval 30
979 #       </Database>
980 #</Plugin>
982 #<Plugin powerdns>
983 #       <Server "server_name">
984 #               Collect "latency"
985 #               Collect "udp-answers" "udp-queries"
986 #               Socket "/var/run/pdns.controlsocket"
987 #       </Server>
988 #       <Recursor "recursor_name">
989 #               Collect "questions"
990 #               Collect "cache-hits" "cache-misses"
991 #               Socket "/var/run/pdns_recursor.controlsocket"
992 #       </Recursor>
993 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
994 #</Plugin>
996 #<Plugin processes>
997 #       Process "name"
998 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
999 #</Plugin>
1001 #<Plugin protocols>
1002 #       Value "/^Tcp:/"
1003 #       IgnoreSelected false
1004 #</Plugin>
1006 #<Plugin python>
1007 #       ModulePath "/path/to/your/python/modules"
1008 #       LogTraces true
1009 #       Interactive true
1010 #       Import "spam"
1012 #       <Module spam>
1013 #               spam "wonderful" "lovely"
1014 #       </Module>
1015 #</Plugin>
1017 #<Plugin redis>
1018 #       <Node example>
1019 #               Host "redis.example.com"
1020 #               Port "6379"
1021 #               Timeout 2000
1022 #       </Node>
1023 #</Plugin>
1025 #<Plugin rrdcached>
1026 #       DaemonAddress "unix:/var/run/rrdcached.sock"
1027 #       DataDir "/var/lib/rrdcached/db/collectd"
1028 #       CreateFiles true
1029 #       CreateFilesAsync false
1030 #       CollectStatistics true
1032 # The following settings are rather advanced
1033 # and should usually not be touched:
1034 #       StepSize 10
1035 #       HeartBeat 20
1036 #       RRARows 1200
1037 #       RRATimespan 158112000
1038 #       XFF 0.1
1039 #</Plugin>
1041 <Plugin rrdtool>
1042         DataDir "/var/lib/collectd/rrd"
1043 #       CacheTimeout 120
1044 #       CacheFlush 900
1045 #       WritesPerSecond 30
1046 #       CreateFilesAsync false
1047 #       RandomTimeout 0
1049 # The following settings are rather advanced
1050 # and should usually not be touched:
1051 #       StepSize 10
1052 #       HeartBeat 20
1053 #       RRARows 1200
1054 #       RRATimespan 158112000
1055 #       XFF 0.1
1056 </Plugin>
1058 #<Plugin sensors>
1059 #       SensorConfigFile "/etc/sensors3.conf"
1060 #       Sensor "it8712-isa-0290/temperature-temp1"
1061 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1062 #       Sensor "it8712-isa-0290/voltage-in8"
1063 #       IgnoreSelected false
1064 #</Plugin>
1066 #<Plugin sigrok>
1067 #       LogLevel 3
1068 #       <Device "AC Voltage">
1069 #               Driver "fluke-dmm"
1070 #               MinimumInterval 10
1071 #               Conn "/dev/ttyUSB2"
1072 #       </Device>
1073 #       <Device "Sound Level">
1074 #               Driver "cem-dt-885x"
1075 #               Conn "/dev/ttyUSB1"
1076 #       </Device>
1077 #</Plugin>
1079 #<Plugin smart>
1080 #       Disk "/^[hs]d[a-f][0-9]?$/"
1081 #       IgnoreSelected false
1082 #</Plugin>
1084 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
1085 # comprehensive sample configuration.
1086 #<Plugin snmp>
1087 #       <Data "powerplus_voltge_input">
1088 #               Type "voltage"
1089 #               Table false
1090 #               Instance "input_line1"
1091 #               Scale 0.1
1092 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1093 #       </Data>
1094 #       <Data "hr_users">
1095 #               Type "users"
1096 #               Table false
1097 #               Instance ""
1098 #               Shift -1
1099 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1100 #       </Data>
1101 #       <Data "std_traffic">
1102 #               Type "if_octets"
1103 #               Table true
1104 #               InstancePrefix "traffic"
1105 #               Instance "IF-MIB::ifDescr"
1106 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1107 #       </Data>
1109 #       <Host "some.switch.mydomain.org">
1110 #               Address "192.168.0.2"
1111 #               Version 1
1112 #               Community "community_string"
1113 #               Collect "std_traffic"
1114 #               Inverval 120
1115 #       </Host>
1116 #       <Host "some.server.mydomain.org">
1117 #               Address "192.168.0.42"
1118 #               Version 2
1119 #               Community "another_string"
1120 #               Collect "std_traffic" "hr_users"
1121 #       </Host>
1122 #       <Host "some.ups.mydomain.org">
1123 #               Address "192.168.0.3"
1124 #               Version 1
1125 #               Community "more_communities"
1126 #               Collect "powerplus_voltge_input"
1127 #               Interval 300
1128 #       </Host>
1129 #</Plugin>
1131 #<Plugin statsd>
1132 #       Host "::"
1133 #       Port "8125"
1134 #       DeleteCounters false
1135 #       DeleteTimers   false
1136 #       DeleteGauges   false
1137 #       DeleteSets     false
1138 #       CounterSum     false
1139 #       TimerPercentile 90.0
1140 #       TimerPercentile 95.0
1141 #       TimerPercentile 99.0
1142 #       TimerLower     false
1143 #       TimerUpper     false
1144 #       TimerSum       false
1145 #       TimerCount     false
1146 #</Plugin>
1148 #<Plugin swap>
1149 #       ReportByDevice false
1150 #       ReportBytes true
1151 #</Plugin>
1153 #<Plugin table>
1154 #       <Table "/proc/slabinfo">
1155 #               Instance "slabinfo"
1156 #               Separator " "
1157 #               <Result>
1158 #                       Type gauge
1159 #                       InstancePrefix "active_objs"
1160 #                       InstancesFrom 0
1161 #                       ValuesFrom 1
1162 #               </Result>
1163 #               <Result>
1164 #                       Type gauge
1165 #                       InstancePrefix "objperslab"
1166 #                       InstancesFrom 0
1167 #                       ValuesFrom 4
1168 #               </Result>
1169 #       </Table>
1170 #</Plugin>
1172 #<Plugin tail>
1173 #       <File "/var/log/exim4/mainlog">
1174 #               Instance "exim"
1175 #               Interval 60
1176 #               <Match>
1177 #                       Regex "S=([1-9][0-9]*)"
1178 #                       DSType "CounterAdd"
1179 #                       Type "ipt_bytes"
1180 #                       Instance "total"
1181 #               </Match>
1182 #               <Match>
1183 #                       Regex "\\<R=local_user\\>"
1184 #                       ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1185 #                       DSType "CounterInc"
1186 #                       Type "counter"
1187 #                       Instance "local_user"
1188 #               </Match>
1189 #       </File>
1190 #       <File "/var/log/nginx/apache-time.log">
1191 #               #Use the following log format in nginx:
1192 #               #log_format response_time '[$host] "$upstream_response_time" ...'
1193 #               Instance "apache"
1194 #               <Match>
1195 #                       Regex "^\\S+ \"([0-9.]+)\""
1196 #                       <DSType Distribution>
1197 #                               Percentile 80    # -> latency-foo-80
1198 #                               Percentile 95    # -> latency-foo-95
1199 #                               Percentile 99    # -> latency-foo-99
1200 #                               Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1201 #                               Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1202 #                               Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1203 #                               Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1204 #                               Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1205 #                               Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1206 #                       </DSType>
1207 #                       Type "latency"
1208 #                       Instance "foo"
1209 #               </Match>
1210 #       </File>
1211 #</Plugin>
1213 #<Plugin tail_csv>
1214 #       <Metric "dropped">
1215 #               Type "percent"
1216 #               Instance "dropped"
1217 #               ValueFrom 1
1218 #       </Metric>
1219 #       <Metric "mbps">
1220 #               Type "bytes"
1221 #               Instance "wire-realtime"
1222 #               ValueFrom 2
1223 #       </Metric>
1224 #       <Metric "alerts">
1225 #               Type "alerts_per_second"
1226 #               ValueFrom 3
1227 #       </Metric>
1228 #       <Metric "kpps">
1229 #               Type "kpackets_wire_per_sec.realtime"
1230 #               ValueFrom 4
1231 #       </Metric>
1232 #       <File "/var/log/snort/snort.stats">
1233 #               Instance "snort-eth0"
1234 #               Interval 600
1235 #               Collect "dropped" "mbps" "alerts" "kpps"
1236 #               TimeFrom 0
1237 #       </File>
1238 #</Plugin>
1240 #<Plugin tcpconns>
1241 #       ListeningPorts false
1242 #       AllPortsSummary false
1243 #       LocalPort "25"
1244 #       RemotePort "25"
1245 #</Plugin>
1247 #<Plugin teamspeak2>
1248 #       Host "127.0.0.1"
1249 #       Port "51234"
1250 #       Server "8767"
1251 #</Plugin>
1253 #<Plugin ted>
1254 #       Device "/dev/ttyUSB0"
1255 #       Retries 0
1256 #</Plugin>
1258 #<Plugin thermal>
1259 #       ForceUseProcfs false
1260 #       Device "THRM"
1261 #       IgnoreSelected false
1262 #</Plugin>
1264 #<Plugin tokyotyrant>
1265 #       Host "localhost"
1266 #       Port "1978"
1267 #</Plugin>
1269 #<Plugin turbostat>
1270 ##      None of the following option should be set manually
1271 ##      This plugin automatically detect most optimal options
1272 ##      Only set values here if:
1273 ##      - The module asks you to
1274 ##      - You want to disable the collection of some data
1275 ##      - Your (Intel) CPU is not supported (yet) by the module
1276 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1277 ##      In the last two cases, please open a bug request
1279 #       TCCActivationTemp "100"
1280 #       CoreCstates "392"
1281 #       PackageCstates "396"
1282 #       SystemManagementInterrupt true
1283 #       DigitalTemperatureSensor true
1284 #       PackageThermalManagement true
1285 #       RunningAveragePowerLimit "7"
1286 #</Plugin>
1288 #<Plugin unixsock>
1289 #       SocketFile "/var/run/collectd-unixsock"
1290 #       SocketGroup "collectd"
1291 #       SocketPerms "0660"
1292 #       DeleteSocket false
1293 #</Plugin>
1295 #<Plugin uuid>
1296 #       UUIDFile "/etc/uuid"
1297 #</Plugin>
1299 #<Plugin varnish>
1300 #       <Instance>
1301 #               CollectBackend true
1302 #               CollectBan false           # Varnish 3 and above
1303 #               CollectCache true
1304 #               CollectConnections true
1305 #               CollectDirectorDNS false   # Varnish 3 only
1306 #               CollectESI false
1307 #               CollectFetch false
1308 #               CollectHCB false
1309 #               CollectObjects false
1310 #               CollectPurge false         # Varnish 2 only
1311 #               CollectSession false
1312 #               CollectSHM true
1313 #               CollectSMA false           # Varnish 2 only
1314 #               CollectSMS false
1315 #               CollectSM false            # Varnish 2 only
1316 #               CollectStruct false
1317 #               CollectTotals false
1318 #               CollectUptime false        # Varnish 3 and above
1319 #               CollectdVCL false
1320 #               CollectVSM false           # Varnish 4 only
1321 #               CollectWorkers false
1322 #       </Instance>
1324 #       <Instance "myinstance">
1325 #               CollectCache true
1326 #       </Instance>
1327 #</Plugin>
1329 #<Plugin virt>
1330 #       Connection "xen:///"
1331 #       RefreshInterval 60
1332 #       Domain "name"
1333 #       BlockDevice "name:device"
1334 #       BlockDeviceFormat target
1335 #       BlockDeviceFormatBasename false
1336 #       InterfaceDevice "name:device"
1337 #       IgnoreSelected false
1338 #       HostnameFormat name
1339 #       InterfaceFormat name
1340 #       PluginInstanceFormat name
1341 #</Plugin>
1343 #<Plugin vmem>
1344 #       Verbose false
1345 #</Plugin>
1347 #<Plugin write_graphite>
1348 #       <Node "example">
1349 #               Host "localhost"
1350 #               Port "2003"
1351 #               Protocol "tcp"
1352 #               ReconnectInterval 0
1353 #               LogSendErrors true
1354 #               Prefix "collectd"
1355 #               Postfix "collectd"
1356 #               StoreRates true
1357 #               AlwaysAppendDS false
1358 #               EscapeCharacter "_"
1359 #               SeparateInstances false
1360 #               PreserveSeparator false
1361 #               DropDuplicateFields false
1362 #       </Node>
1363 #</Plugin>
1365 #<Plugin write_http>
1366 #       <Node "example">
1367 #               URL "http://example.com/collectd-post"
1368 #               User "collectd"
1369 #               Password "secret"
1370 #               VerifyPeer true
1371 #               VerifyHost true
1372 #               CACert "/etc/ssl/ca.crt"
1373 #               CAPath "/etc/ssl/certs/"
1374 #               ClientKey "/etc/ssl/client.pem"
1375 #               ClientCert "/etc/ssl/client.crt"
1376 #               ClientKeyPass "secret"
1377 #               Header "X-Custom-Header: custom_value"
1378 #               SSLVersion "TLSv1"
1379 #               Format "Command"
1380 #               Metrics true
1381 #               Notifications false
1382 #               StoreRates false
1383 #               BufferSize 4096
1384 #               LowSpeedLimit 0
1385 #               Timeout 0
1386 #               Prefix "collectd/"
1387 #       </Node>
1388 #</Plugin>
1390 #<Plugin write_kafka>
1391 #       Property "metadata.broker.list" "localhost:9092"
1392 #       <Topic "collectd">
1393 #               Format JSON
1394 #       </Topic>
1395 #</Plugin>
1397 #<Plugin write_prometheus>
1398 #       Port "9103"
1399 #</Plugin>
1401 #<Plugin write_redis>
1402 #       <Node "example">
1403 #               Host "localhost"
1404 #               Port "6379"
1405 #               Timeout 1000
1406 #       <Node>
1407 #</Plugin>
1409 #<Plugin write_riemann>
1410 #       <Node "example">
1411 #               Host "localhost"
1412 #               Port 5555
1413 #               Protocol TCP
1414 #               Batch true
1415 #               BatchMaxSize 8192
1416 #               StoreRates true
1417 #               AlwaysAppendDS false
1418 #               TTLFactor 2.0
1419 #               Notifications true
1420 #               CheckThresholds false
1421 #               EventServicePrefix ""
1422 #       </Node>
1423 #       Tag "foobar"
1424 #       Attribute "foo" "bar"
1425 #</Plugin>
1427 #<Plugin write_sensu>
1428 #       <Node "example">
1429 #               Host "localhost"
1430 #               Port 3030
1431 #               StoreRates true
1432 #               AlwaysAppendDS false
1433 #               Notifications true
1434 #               Metrics true
1435 #               EventServicePrefix ""
1436 #               MetricHandler "influx"
1437 #               MetricHandler "default"
1438 #               NotificationHandler "flapjack"
1439 #               NotificationHandler "howling_monkey"
1440 #       </Node>
1441 #       Tag "foobar"
1442 #       Attribute "foo" "bar"
1443 #</Plugin>
1445 #<Plugin write_tsdb>
1446 #       <Node>
1447 #               Host "localhost"
1448 #               Port "4242"
1449 #               HostTags "status=production"
1450 #               StoreRates false
1451 #               AlwaysAppendDS false
1452 #       </Node>
1453 #</Plugin>
1455 #<Plugin zookeeper>
1456 #       Host "localhost"
1457 #       Port "2181"
1458 #</Plugin>
1460 <Include "/etc/collectd/collectd.conf.d">
1461         Filter "*.conf"
1462 </Include>