Code

add missing examples to configuration file
[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 conntrack
99 #LoadPlugin contextswitch
100 LoadPlugin cpu
101 #LoadPlugin cpufreq
102 #LoadPlugin csv
103 #LoadPlugin curl
104 #LoadPlugin curl_json
105 #LoadPlugin curl_xml
106 #LoadPlugin dbi
107 LoadPlugin df
108 LoadPlugin disk
109 #LoadPlugin dns
110 #LoadPlugin drbd
111 #LoadPlugin email
112 LoadPlugin entropy
113 #LoadPlugin ethstat
114 #LoadPlugin exec
115 #LoadPlugin fhcount
116 #LoadPlugin filecount
117 #LoadPlugin fscache
118 #LoadPlugin gmond
119 #LoadPlugin hddtemp
120 LoadPlugin interface
121 #LoadPlugin ipc
122 #LoadPlugin ipmi
123 #LoadPlugin iptables
124 #LoadPlugin ipvs
125 LoadPlugin irq
126 #LoadPlugin java
127 LoadPlugin load
128 #LoadPlugin lvm
129 #LoadPlugin madwifi
130 #LoadPlugin mbmon
131 #LoadPlugin md
132 #LoadPlugin memcachec
133 #LoadPlugin memcached
134 LoadPlugin memory
135 #LoadPlugin modbus
136 #LoadPlugin multimeter
137 #LoadPlugin mysql
138 #LoadPlugin netlink
139 #LoadPlugin network
140 #LoadPlugin nfs
141 #LoadPlugin nginx
142 #LoadPlugin notify_desktop
143 #LoadPlugin notify_email
144 #LoadPlugin ntpd
145 #LoadPlugin numa
146 #LoadPlugin nut
147 #LoadPlugin olsrd
148 #LoadPlugin onewire
149 #LoadPlugin openldap
150 #LoadPlugin openvpn
151 #LoadPlugin perl
152 #LoadPlugin pinba
153 #LoadPlugin ping
154 #LoadPlugin postgresql
155 #LoadPlugin powerdns
156 LoadPlugin processes
157 #LoadPlugin protocols
158 #LoadPlugin python
159 #LoadPlugin redis
160 #LoadPlugin rrdcached
161 LoadPlugin rrdtool
162 #LoadPlugin sensors
163 #LoadPlugin serial
164 #LoadPlugin sigrok
165 #LoadPlugin smart
166 #LoadPlugin snmp
167 #LoadPlugin statsd
168 LoadPlugin swap
169 #LoadPlugin table
170 #LoadPlugin tail
171 #LoadPlugin tail_csv
172 #LoadPlugin tcpconns
173 #LoadPlugin teamspeak2
174 #LoadPlugin ted
175 #LoadPlugin thermal
176 #LoadPlugin tokyotyrant
177 #LoadPlugin turbostat
178 #LoadPlugin unixsock
179 #LoadPlugin uptime
180 LoadPlugin users
181 #LoadPlugin uuid
182 #LoadPlugin varnish
183 #LoadPlugin virt
184 #LoadPlugin vmem
185 #LoadPlugin vserver
186 #LoadPlugin wireless
187 #LoadPlugin write_graphite
188 #LoadPlugin write_http
189 #LoadPlugin write_kafka
190 #LoadPlugin write_log
191 #LoadPlugin write_redis
192 #LoadPlugin write_riemann
193 #LoadPlugin write_sensu
194 #LoadPlugin write_tsdb
195 #LoadPlugin zfs_arc
196 #LoadPlugin zookeeper
198 ##############################################################################
199 # Plugin configuration                                                       #
200 #----------------------------------------------------------------------------#
201 # In this section configuration stubs for each plugin are provided. A desc-  #
202 # ription of those options is available in the collectd.conf(5) manual page. #
203 ##############################################################################
205 #<Plugin aggregation>
206 #       <Aggregation>
207 #               #Host "unspecified"
208 #               Plugin "cpu"
209 #               PluginInstance "/[0,2,4,6,8]$/"
210 #               Type "cpu"
211 #               #TypeInstance "unspecified"
213 #               SetPlugin "cpu"
214 #               SetPluginInstance "even-%{aggregation}"
216 #               GroupBy "Host"
217 #               GroupBy "TypeInstance"
219 #               CalculateNum false
220 #               CalculateSum false
221 #               CalculateAverage true
222 #               CalculateMinimum false
223 #               CalculateMaximum false
224 #               CalculateStddev false
225 #       </Aggregation>
226 #</Plugin>
228 #<Plugin amqp>
229 #       <Publish "name">
230 #               Host "localhost"
231 #               Port "5672"
232 #               VHost "/"
233 #               User "guest"
234 #               Password "guest"
235 #               Exchange "amq.fanout"
236 #               RoutingKey "collectd"
237 #               Persistent false
238 #               StoreRates false
239 #               ConnectionRetryDelay 0
240 #       </Publish>
241 #</Plugin>
243 #<Plugin apache>
244 #       <Instance "foo">
245 #               URL "http://localhost/server-status?auto"
246 #               User "www-user"
247 #               Password "secret"
248 #               VerifyPeer false
249 #               VerifyHost false
250 #               CACert "/etc/ssl/ca.crt"
251 #               Server "apache"
252 #       </Instance>
254 #       <Instance "bar">
255 #               URL "http://some.domain.tld/status?auto"
256 #               Host "some.domain.tld"
257 #               Server "lighttpd"
258 #       </Instance>
259 #</Plugin>
261 #<Plugin apcups>
262 #       Host "localhost"
263 #       Port "3551"
264 #       ReportSeconds true
265 #</Plugin>
267 #<Plugin ascent>
268 #       URL "http://localhost/ascent/status/"
269 #       User "www-user"
270 #       Password "secret"
271 #       VerifyPeer false
272 #       VerifyHost false
273 #       CACert "/etc/ssl/ca.crt"
274 #</Plugin>
276 #<Plugin barometer>
277 #       Device            "/dev/i2c-0";
278 #       Oversampling      512
279 #       PressureOffset    0.0
280 #       TemperatureOffset 0.0
281 #       Normalization     2
282 #       Altitude          238.0
283 #       TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
284 #</Plugin>
286 #<Plugin battery>
287 #       ValuesPercentage false
288 #       ReportDegraded false
289 #</Plugin>
291 #<Plugin bind>
292 #       URL "http://localhost:8053/"
294 #       ParseTime false
296 #       OpCodes true
297 #       QTypes true
298 #       ServerStats true
299 #       ZoneMaintStats true
300 #       ResolverStats false
301 #       MemoryStats true
303 #       <View "_default">
304 #               QTypes true
305 #               ResolverStats true
306 #               CacheRRSets true
308 #               Zone "127.in-addr.arpa/IN"
309 #       </View>
310 #</Plugin>
312 #<Plugin ceph>
313 #       LongRunAvgLatency false
314 #       ConvertSpecialMetricTypes true
315 #       <Daemon "osd.0">
316 #               SocketPath "/var/run/ceph/ceph-osd.0.asok"
317 #       </Daemon>
318 #       <Daemon "osd.1">
319 #               SocketPath "/var/run/ceph/ceph-osd.1.asok"
320 #       </Daemon>
321 #       <Daemon "mon.a">
322 #               SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
323 #       </Daemon>
324 #       <Daemon "mds.a">
325 #               SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
326 #       </Daemon>
327 #</Plugin>
329 #<Plugin cgroups>
330 #       CGroup "libvirt"
331 #       IgnoreSelected false
332 #</Plugin>
334 #<Plugin cpu>
335 #       ReportByCpu true
336 #       ReportByState true
337 #       ValuesPercentage false
338 #</Plugin>
340 #<Plugin csv>
341 #       DataDir "/var/lib/collectd/csv"
342 #       StoreRates false
343 #</Plugin>
345 #<Plugin curl>
346 #       <Page "stock_quotes">
347 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
348 #               User "foo"
349 #               Password "bar"
350 #               Digest false
351 #               VerifyPeer true
352 #               VerifyHost true
353 #               CACert "/path/to/ca.crt"
354 #               Header "X-Custom-Header: foobar"
355 #               Post "foo=bar"
357 #               MeasureResponseTime false
358 #               MeasureResponseCode false
359 #               <Match>
360 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
361 #                       DSType "GaugeAverage"
362 #                       Type "stock_value"
363 #                       Instance "AMD"
364 #               </Match>
365 #       </Page>
366 #</Plugin>
368 #<Plugin curl_json>
369 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
370 #  <URL "http://localhost:5984/_stats">
371 #    Instance "httpd"
372 #    <Key "httpd/requests/count">
373 #      Type "http_requests"
374 #    </Key>
376 #    <Key "httpd_request_methods/*/count">
377 #      Type "http_request_methods"
378 #    </Key>
380 #    <Key "httpd_status_codes/*/count">
381 #      Type "http_response_codes"
382 #    </Key>
383 #  </URL>
384 ## Database status metrics:
385 #  <URL "http://localhost:5984/_all_dbs">
386 #    Instance "dbs"
387 #    <Key "*/doc_count">
388 #      Type "gauge"
389 #    </Key>
390 #    <Key "*/doc_del_count">
391 #      Type "counter"
392 #    </Key>
393 #    <Key "*/disk_size">
394 #      Type "bytes"
395 #    </Key>
396 #  </URL>
397 #</Plugin>
399 #<Plugin curl_xml>
400 #       <URL "http://localhost/stats.xml">
401 #               Host "my_host"
402 #               Instance "some_instance"
403 #               User "collectd"
404 #               Password "thaiNg0I"
405 #               Digest false
406 #               VerifyPeer true
407 #               VerifyHost true
408 #               CACert "/path/to/ca.crt"
409 #               Header "X-Custom-Header: foobar"
410 #               Post "foo=bar"
412 #               <XPath "table[@id=\"magic_level\"]/tr">
413 #                       Type "magic_level"
414 #                       InstancePrefix "prefix-"
415 #                       InstanceFrom "td[1]"
416 #                       ValuesFrom "td[2]/span[@class=\"level\"]"
417 #               </XPath>
418 #       </URL>
419 #</Plugin>
421 #<Plugin dbi>
422 #       <Query "num_of_customers">
423 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
424 #                               FROM customers_tbl"
425 #               MinVersion 40102
426 #               MaxVersion 50042
427 #               <Result>
428 #                       Type "gauge"
429 #                       InstancePrefix "customer"
430 #                       InstancesFrom "c_key"
431 #                       ValuesFrom "c_value"
432 #               </Result>
433 #       </Query>
435 #       <Database "customers_db">
436 #               Driver "mysql"
437 #               DriverOption "host" "localhost"
438 #               DriverOption "username" "collectd"
439 #               DriverOption "password" "secret"
440 #               DriverOption "dbname" "custdb0"
441 #               SelectDB "custdb0"
442 #               Query "num_of_customers"
443 #               Query "..."
444 #               Host "..."
445 #       </Database>
446 #</Plugin>
448 <Plugin df>
449 #       Device "/dev/sda1"
450 #       Device "192.168.0.2:/mnt/nfs"
451 #       MountPoint "/home"
452 #       FSType "ext3"
454         # ignore rootfs; else, the root file-system would appear twice, causing
455         # one of the updates to fail and spam the log
456         FSType rootfs
457         # ignore the usual virtual / temporary file-systems
458         FSType sysfs
459         FSType proc
460         FSType devtmpfs
461         FSType devpts
462         FSType tmpfs
463         FSType fusectl
464         FSType cgroup
465         IgnoreSelected true
467 #       ReportByDevice false
468 #       ReportInodes false
470 #       ValuesAbsolute true
471 #       ValuesPercentage false
472 </Plugin>
474 #<Plugin disk>
475 #       Disk "hda"
476 #       Disk "/sda[23]/"
477 #       IgnoreSelected false
478 #       UseBSDName false
479 #       UdevNameAttr "DEVNAME"
480 #</Plugin>
482 #<Plugin dns>
483 #       Interface "eth0"
484 #       IgnoreSource "192.168.0.1"
485 #       SelectNumericQueryTypes false
486 #</Plugin>
488 #<Plugin email>
489 #       SocketFile "/var/run/collectd-email"
490 #       SocketGroup "collectd"
491 #       SocketPerms "0770"
492 #       MaxConns 5
493 #</Plugin>
495 #<Plugin ethstat>
496 #       Interface "eth0"
497 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
498 #       Map "multicast" "if_multicast"
499 #       MappedOnly false
500 #</Plugin>
502 #<Plugin exec>
503 #       Exec user "/path/to/exec"
504 #       Exec "user:group" "/path/to/exec"
505 #       NotificationExec user "/path/to/exec"
506 #</Plugin>
508 #<Plugin fhcount>
509 #       ValuesAbsolute true
510 #       ValuesPercentage false
511 #</Plugin>
513 #<Plugin filecount>
514 #       <Directory "/path/to/dir">
515 #               Instance "foodir"
516 #               Name "*.conf"
517 #               MTime "-5m"
518 #               Size "+10k"
519 #               Recursive true
520 #               IncludeHidden false
521 #       </Directory>
522 #</Plugin>
524 #<Plugin gmond>
525 #       MCReceiveFrom "239.2.11.71" "8649"
527 #       <Metric "swap_total">
528 #               Type "swap"
529 #               TypeInstance "total"
530 #               DataSource "value"
531 #       </Metric>
533 #       <Metric "swap_free">
534 #               Type "swap"
535 #               TypeInstance "free"
536 #               DataSource "value"
537 #       </Metric>
538 #</Plugin>
540 #<Plugin hddtemp>
541 #       Host "127.0.0.1"
542 #       Port 7634
543 #</Plugin>
545 #<Plugin interface>
546 #       Interface "eth0"
547 #       IgnoreSelected false
548 #</Plugin>
550 #<Plugin ipmi>
551 #       Sensor "some_sensor"
552 #       Sensor "another_one"
553 #       IgnoreSelected false
554 #       NotifySensorAdd false
555 #       NotifySensorRemove true
556 #       NotifySensorNotPresent false
557 #</Plugin>
559 #<Plugin iptables>
560 #       Chain "table" "chain"
561 #       Chain6 "table" "chain"
562 #</Plugin>
564 #<Plugin irq>
565 #       Irq 7
566 #       Irq 8
567 #       Irq 9
568 #       IgnoreSelected true
569 #</Plugin>
571 #<Plugin java>
572 #       JVMArg "-verbose:jni"
573 #       JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
575 #       LoadPlugin "org.collectd.java.GenericJMX"
576 #       <Plugin "GenericJMX">
577 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
578 #               # for an example config.
579 #       </Plugin>
580 #</Plugin>
582 #<Plugin load>
583 #       ReportRelative true
584 #</Plugin>
586 #<Plugin madwifi>
587 #       Interface "wlan0"
588 #       IgnoreSelected false
589 #       Source "SysFS"
590 #       WatchSet "None"
591 #       WatchAdd "node_octets"
592 #       WatchAdd "node_rssi"
593 #       WatchAdd "is_rx_acl"
594 #       WatchAdd "is_scan_active"
595 #</Plugin>
597 #<Plugin mbmon>
598 #       Host "127.0.0.1"
599 #       Port 411
600 #</Plugin>
602 #<Plugin md>
603 #       Device "/dev/md0"
604 #       IgnoreSelected false
605 #</Plugin>
607 #<Plugin memcachec>
608 #       <Page "plugin_instance">
609 #               Server "localhost"
610 #               Key "page_key"
611 #               <Match>
612 #                       Regex "(\\d+) bytes sent"
613 #                       ExcludeRegex "<lines to be excluded>"
614 #                       DSType CounterAdd
615 #                       Type "ipt_octets"
616 #                       Instance "type_instance"
617 #               </Match>
618 #       </Page>
619 #</Plugin>
621 #<Plugin memcached>
622 #       <Instance "local">
623 #               Socket "/var/run/memcached.sock"
624 # or:
625 #               Host "127.0.0.1"
626 #               Port "11211"
627 #       </Instance>
628 #</Plugin>
630 #<Plugin memory>
631 #       ValuesAbsolute true
632 #       ValuesPercentage false
633 #</Plugin>
635 #<Plugin modbus>
636 #       <Data "data_name">
637 #               RegisterBase 1234
638 #               RegisterCmd ReadHolding
639 #               RegisterType float
640 #               Type gauge
641 #               Instance "..."
642 #       </Data>
644 #       <Host "name">
645 #               Address "addr"
646 #               Port "1234"
647 #               Interval 60
649 #               <Slave 1>
650 #                       Instance "foobar" # optional
651 #                       Collect "data_name"
652 #               </Slave>
653 #       </Host>
654 #</Plugin>
656 #<Plugin mysql>
657 #       <Database db_name>
658 #               Host "database.serv.er"
659 #               Port "3306"
660 #               User "db_user"
661 #               Password "secret"
662 #               Database "db_name"
663 #               MasterStats true
664 #               ConnectTimeout 10
665 #               InnodbStats true
666 #       </Database>
668 #       <Database db_name2>
669 #               Alias "squeeze"
670 #               Host "localhost"
671 #               Socket "/var/run/mysql/mysqld.sock"
672 #               SlaveStats true
673 #               SlaveNotifications true
674 #       </Database>
675 #</Plugin>
677 #<Plugin netlink>
678 #       Interface "All"
679 #       VerboseInterface "All"
680 #       QDisc "eth0" "pfifo_fast-1:0"
681 #       Class "ppp0" "htb-1:10"
682 #       Filter "ppp0" "u32-1:0"
683 #       IgnoreSelected false
684 #</Plugin>
686 #<Plugin network>
687 #       # client setup:
688 #       Server "ff18::efc0:4a42" "25826"
689 #       <Server "239.192.74.66" "25826">
690 #               SecurityLevel Encrypt
691 #               Username "user"
692 #               Password "secret"
693 #               Interface "eth0"
694 #               ResolveInterval 14400
695 #       </Server>
696 #       TimeToLive 128
698 #       # server setup:
699 #       Listen "ff18::efc0:4a42" "25826"
700 #       <Listen "239.192.74.66" "25826">
701 #               SecurityLevel Sign
702 #               AuthFile "/etc/collectd/passwd"
703 #               Interface "eth0"
704 #       </Listen>
705 #       MaxPacketSize 1452
707 #       # proxy setup (client and server as above):
708 #       Forward true
710 #       # statistics about the network plugin itself
711 #       ReportStats false
713 #       # "garbage collection"
714 #       CacheFlush 1800
715 #</Plugin>
717 #<Plugin nginx>
718 #       URL "http://localhost/status?auto"
719 #       User "www-user"
720 #       Password "secret"
721 #       VerifyPeer false
722 #       VerifyHost false
723 #       CACert "/etc/ssl/ca.crt"
724 #</Plugin>
726 #<Plugin notify_desktop>
727 #       OkayTimeout 1000
728 #       WarningTimeout 5000
729 #       FailureTimeout 0
730 #</Plugin>
732 #<Plugin notify_email>
733 #       SMTPServer "localhost"
734 #       SMTPPort 25
735 #       SMTPUser "my-username"
736 #       SMTPPassword "my-password"
737 #       From "collectd@main0server.com"
738 #       # <WARNING/FAILURE/OK> on <hostname>.
739 #       # Beware! Do not use not more than two placeholders (%)!
740 #       Subject "[collectd] %s on %s!"
741 #       Recipient "email1@domain1.net"
742 #       Recipient "email2@domain2.com"
743 #</Plugin>
745 #<Plugin ntpd>
746 #       Host "localhost"
747 #       Port 123
748 #       ReverseLookups false
749 #       IncludeUnitID true
750 #</Plugin>
752 #<Plugin nut>
753 #       UPS "upsname@hostname:port"
754 #</Plugin>
756 #<Plugin olsrd>
757 #       Host "127.0.0.1"
758 #       Port "2006"
759 #       CollectLinks "Summary"
760 #       CollectRoutes "Summary"
761 #       CollectTopology "Summary"
762 #</Plugin>
764 #<Plugin onewire>
765 #       Device "-s localhost:4304"
766 #       Sensor "F10FCA000800"
767 #       IgnoreSelected false
768 #</Plugin>
770 #<Plugin openldap>
771 #       <Instance "localhost">
772 #               URL "ldap://localhost:389"
773 #               StartTLS false
774 #               VerifyHost true
775 #               CACert "/path/to/ca.crt"
776 #               Timeout -1
777 #               Version 3
778 #       </Instance>
779 #</Plugin>
781 #<Plugin openvpn>
782 #       StatusFile "/etc/openvpn/openvpn-status.log"
783 #       ImprovedNamingSchema false
784 #       CollectCompression true
785 #       CollectIndividualUsers true
786 #       CollectUserCount false
787 #</Plugin>
789 #<Plugin perl>
790 #       IncludeDir "/my/include/path"
791 #       BaseName "Collectd::Plugins"
792 #       EnableDebugger ""
793 #       LoadPlugin Monitorus
794 #       LoadPlugin OpenVZ
796 #       <Plugin foo>
797 #               Foo "Bar"
798 #               Qux "Baz"
799 #       </Plugin>
800 #</Plugin>
802 #<Plugin pinba>
803 #       Address "::0"
804 #       Port "30002"
805 #       <View "name">
806 #               Host "host name"
807 #               Server "server name"
808 #               Script "script name"
809 #       <View>
810 #</Plugin>
812 #<Plugin ping>
813 #       Host "host.foo.bar"
814 #       Host "host.baz.qux"
815 #       Interval 1.0
816 #       Timeout 0.9
817 #       TTL 255
818 #       SourceAddress "1.2.3.4"
819 #       Device "eth0"
820 #       MaxMissed -1
821 #</Plugin>
823 #<Plugin postgresql>
824 #       <Query magic>
825 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
826 #               Param hostname
828 #               <Result>
829 #                       Type gauge
830 #                       InstancePrefix "magic"
831 #                       ValuesFrom "magic"
832 #               </Result>
833 #       </Query>
835 #       <Query rt36_tickets>
836 #               Statement "SELECT COUNT(type) AS count, type \
837 #                                 FROM (SELECT CASE \
838 #                                              WHEN resolved = 'epoch' THEN 'open' \
839 #                                              ELSE 'resolved' END AS type \
840 #                                              FROM tickets) type \
841 #                                 GROUP BY type;"
843 #               <Result>
844 #                       Type counter
845 #                       InstancePrefix "rt36_tickets"
846 #                       InstancesFrom "type"
847 #                       ValuesFrom "count"
848 #               </Result>
849 #       </Query>
851 #       <Writer sqlstore>
852 #               # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
853 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
854 #               StoreRates true
855 #       </Writer>
857 #       <Database foo>
858 #               Host "hostname"
859 #               Port 5432
860 #               User "username"
861 #               Password "secret"
863 #               SSLMode "prefer"
864 #               KRBSrvName "kerberos_service_name"
866 #               Query magic
867 #       </Database>
869 #       <Database bar>
870 #               Interval 60
871 #               Service "service_name"
873 #               Query backend # predefined
874 #               Query rt36_tickets
875 #       </Database>
877 #       <Database qux>
878 #               Service "collectd_store"
879 #               Writer sqlstore
880 #               # see collectd.conf(5) for details
881 #               CommitInterval 30
882 #       </Database>
883 #</Plugin>
885 #<Plugin powerdns>
886 #       <Server "server_name">
887 #               Collect "latency"
888 #               Collect "udp-answers" "udp-queries"
889 #               Socket "/var/run/pdns.controlsocket"
890 #       </Server>
891 #       <Recursor "recursor_name">
892 #               Collect "questions"
893 #               Collect "cache-hits" "cache-misses"
894 #               Socket "/var/run/pdns_recursor.controlsocket"
895 #       </Recursor>
896 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
897 #</Plugin>
899 #<Plugin processes>
900 #       Process "name"
901 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
902 #</Plugin>
904 #<Plugin protocols>
905 #       Value "/^Tcp:/"
906 #       IgnoreSelected false
907 #</Plugin>
909 #<Plugin python>
910 #       ModulePath "/path/to/your/python/modules"
911 #       LogTraces true
912 #       Interactive true
913 #       Import "spam"
915 #       <Module spam>
916 #               spam "wonderful" "lovely"
917 #       </Module>
918 #</Plugin>
920 #<Plugin redis>
921 #       <Node example>
922 #               Host "redis.example.com"
923 #               Port "6379"
924 #               Timeout 2000
925 #       </Node>
926 #</Plugin>
928 #<Plugin rrdcached>
929 #       DaemonAddress "unix:/var/run/rrdcached.sock"
930 #       DataDir "/var/lib/rrdcached/db/collectd"
931 #       CreateFiles true
932 #       CreateFilesAsync false
933 #       CollectStatistics true
935 # The following settings are rather advanced
936 # and should usually not be touched:
937 #       StepSize 10
938 #       HeartBeat 20
939 #       RRARows 1200
940 #       RRATimespan 158112000
941 #       XFF 0.1
942 #</Plugin>
944 <Plugin rrdtool>
945         DataDir "/var/lib/collectd/rrd"
946 #       CacheTimeout 120
947 #       CacheFlush 900
948 #       WritesPerSecond 30
949 #       CreateFilesAsync false
950 #       RandomTimeout 0
952 # The following settings are rather advanced
953 # and should usually not be touched:
954 #       StepSize 10
955 #       HeartBeat 20
956 #       RRARows 1200
957 #       RRATimespan 158112000
958 #       XFF 0.1
959 </Plugin>
961 #<Plugin sensors>
962 #       SensorConfigFile "/etc/sensors3.conf"
963 #       Sensor "it8712-isa-0290/temperature-temp1"
964 #       Sensor "it8712-isa-0290/fanspeed-fan3"
965 #       Sensor "it8712-isa-0290/voltage-in8"
966 #       IgnoreSelected false
967 #</Plugin>
969 #<Plugin sigrok>
970 #       LogLevel 3
971 #       <Device "AC Voltage">
972 #               Driver "fluke-dmm"
973 #               MinimumInterval 10
974 #               Conn "/dev/ttyUSB2"
975 #       </Device>
976 #       <Device "Sound Level">
977 #               Driver "cem-dt-885x"
978 #               Conn "/dev/ttyUSB1"
979 #       </Device>
980 #</Plugin>
982 #<Plugin smart>
983 #       Disk "/^[hs]d[a-f][0-9]?$/"
984 #       IgnoreSelected false
985 #</Plugin>
987 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
988 # comprehensive sample configuration.
989 #<Plugin snmp>
990 #       <Data "powerplus_voltge_input">
991 #               Type "voltage"
992 #               Table false
993 #               Instance "input_line1"
994 #               Scale 0.1
995 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
996 #       </Data>
997 #       <Data "hr_users">
998 #               Type "users"
999 #               Table false
1000 #               Instance ""
1001 #               Shift -1
1002 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1003 #       </Data>
1004 #       <Data "std_traffic">
1005 #               Type "if_octets"
1006 #               Table true
1007 #               InstancePrefix "traffic"
1008 #               Instance "IF-MIB::ifDescr"
1009 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1010 #       </Data>
1012 #       <Host "some.switch.mydomain.org">
1013 #               Address "192.168.0.2"
1014 #               Version 1
1015 #               Community "community_string"
1016 #               Collect "std_traffic"
1017 #               Inverval 120
1018 #       </Host>
1019 #       <Host "some.server.mydomain.org">
1020 #               Address "192.168.0.42"
1021 #               Version 2
1022 #               Community "another_string"
1023 #               Collect "std_traffic" "hr_users"
1024 #       </Host>
1025 #       <Host "some.ups.mydomain.org">
1026 #               Address "192.168.0.3"
1027 #               Version 1
1028 #               Community "more_communities"
1029 #               Collect "powerplus_voltge_input"
1030 #               Interval 300
1031 #       </Host>
1032 #</Plugin>
1034 #<Plugin statsd>
1035 #       Host "::"
1036 #       Port "8125"
1037 #       DeleteCounters false
1038 #       DeleteTimers   false
1039 #       DeleteGauges   false
1040 #       DeleteSets     false
1041 #       TimerPercentile 90.0
1042 #       TimerPercentile 95.0
1043 #       TimerPercentile 99.0
1044 #       TimerLower     false
1045 #       TimerUpper     false
1046 #       TimerSum       false
1047 #       TimerCount     false
1048 #</Plugin>
1050 #<Plugin swap>
1051 #       ReportByDevice false
1052 #       ReportBytes true
1053 #</Plugin>
1055 #<Plugin table>
1056 #       <Table "/proc/slabinfo">
1057 #               Instance "slabinfo"
1058 #               Separator " "
1059 #               <Result>
1060 #                       Type gauge
1061 #                       InstancePrefix "active_objs"
1062 #                       InstancesFrom 0
1063 #                       ValuesFrom 1
1064 #               </Result>
1065 #               <Result>
1066 #                       Type gauge
1067 #                       InstancePrefix "objperslab"
1068 #                       InstancesFrom 0
1069 #                       ValuesFrom 4
1070 #               </Result>
1071 #       </Table>
1072 #</Plugin>
1074 #<Plugin tail>
1075 #       <File "/var/log/exim4/mainlog">
1076 #               Instance "exim"
1077 #               Interval 60
1078 #               <Match>
1079 #                       Regex "S=([1-9][0-9]*)"
1080 #                       DSType "CounterAdd"
1081 #                       Type "ipt_bytes"
1082 #                       Instance "total"
1083 #               </Match>
1084 #               <Match>
1085 #                       Regex "\\<R=local_user\\>"
1086 #                       ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1087 #                       DSType "CounterInc"
1088 #                       Type "counter"
1089 #                       Instance "local_user"
1090 #               </Match>
1091 #       </File>
1092 #</Plugin>
1094 #<Plugin tail_csv>
1095 #       <Metric "dropped">
1096 #               Type "percent"
1097 #               Instance "dropped"
1098 #               ValueFrom 1
1099 #       </Metric>
1100 #       <Metric "mbps">
1101 #               Type "bytes"
1102 #               Instance "wire-realtime"
1103 #               ValueFrom 2
1104 #       </Metric>
1105 #       <Metric "alerts">
1106 #               Type "alerts_per_second"
1107 #               ValueFrom 3
1108 #       </Metric>
1109 #       <Metric "kpps">
1110 #               Type "kpackets_wire_per_sec.realtime"
1111 #               ValueFrom 4
1112 #       </Metric>
1113 #       <File "/var/log/snort/snort.stats">
1114 #               Instance "snort-eth0"
1115 #               Interval 600
1116 #               Collect "dropped" "mbps" "alerts" "kpps"
1117 #               TimeFrom 0
1118 #       </File>
1119 #</Plugin>
1121 #<Plugin tcpconns>
1122 #       ListeningPorts false
1123 #       AllPortsSummary false
1124 #       LocalPort "25"
1125 #       RemotePort "25"
1126 #</Plugin>
1128 #<Plugin teamspeak2>
1129 #       Host "127.0.0.1"
1130 #       Port "51234"
1131 #       Server "8767"
1132 #</Plugin>
1134 #<Plugin ted>
1135 #       Device "/dev/ttyUSB0"
1136 #       Retries 0
1137 #</Plugin>
1139 #<Plugin thermal>
1140 #       ForceUseProcfs false
1141 #       Device "THRM"
1142 #       IgnoreSelected false
1143 #</Plugin>
1145 #<Plugin tokyotyrant>
1146 #       Host "localhost"
1147 #       Port "1978"
1148 #</Plugin>
1150 #<Plugin turbostat>
1151 ##      None of the following option should be set manually
1152 ##      This plugin automatically detect most optimal options
1153 ##      Only set values here if:
1154 ##      - The module ask you to
1155 ##      - You want to disable the collection of some data
1156 ##      - Your (intel) CPU is not supported (yet) by the module
1157 ##      - The module generate a lot of errors 'MSR offset 0x... read failed'
1158 ##      In the last two cases, please open a bug request
1160 #       TCCActivationTemp "100"
1161 #       CoreCstates "392"
1162 #       PackageCstates "396"
1163 #       SystemManagementInterrupt true
1164 #       DigitalTemperatureSensor true
1165 #       PackageThermalManagement true
1166 #       RunningAveragePowerLimit "7"
1167 #</Plugin>
1169 #<Plugin unixsock>
1170 #       SocketFile "/var/run/collectd-unixsock"
1171 #       SocketGroup "collectd"
1172 #       SocketPerms "0660"
1173 #       DeleteSocket false
1174 #</Plugin>
1176 #<Plugin uuid>
1177 #       UUIDFile "/etc/uuid"
1178 #</Plugin>
1180 #<Plugin varnish>
1181 #       <Instance>
1182 #               CollectBackend true
1183 #               CollectBan false           # Varnish 3 and above
1184 #               CollectCache true
1185 #               CollectConnections true
1186 #               CollectDirectorDNS false   # Varnish 3 only
1187 #               CollectESI false
1188 #               CollectFetch false
1189 #               CollectHCB false
1190 #               CollectObjects false
1191 #               CollectPurge false         # Varnish 2 only
1192 #               CollectSession false
1193 #               CollectSHM true
1194 #               CollectSMA false           # Varnish 2 only
1195 #               CollectSMS false
1196 #               CollectSM false            # Varnish 2 only
1197 #               CollectStruct false
1198 #               CollectTotals false
1199 #               CollectUptime false        # Varnish 3 and above
1200 #               CollectdVCL false
1201 #               CollectVSM false           # Varnish 4 only
1202 #               CollectWorkers false
1203 #       </Instance>
1205 #       <Instance "myinstance">
1206 #               CollectCache true
1207 #       </Instance>
1208 #</Plugin>
1210 #<Plugin virt>
1211 #       Connection "xen:///"
1212 #       RefreshInterval 60
1213 #       Domain "name"
1214 #       BlockDevice "name:device"
1215 #       InterfaceDevice "name:device"
1216 #       IgnoreSelected false
1217 #       HostnameFormat name
1218 #       InterfaceFormat name
1219 #       PluginInstanceFormat name
1220 #</Plugin>
1222 #<Plugin vmem>
1223 #       Verbose false
1224 #</Plugin>
1226 #<Plugin write_graphite>
1227 #       <Node "example">
1228 #               Host "localhost"
1229 #               Port "2003"
1230 #               Protocol "tcp"
1231 #               LogSendErrors true
1232 #               Prefix "collectd"
1233 #               Postfix "collectd"
1234 #               StoreRates true
1235 #               AlwaysAppendDS false
1236 #               EscapeCharacter "_"
1237 #       </Node>
1238 #</Plugin>
1240 #<Plugin write_http>
1241 #       <Node "example">
1242 #               URL "http://example.com/collectd-post"
1243 #               User "collectd"
1244 #               Password "secret"
1245 #               VerifyPeer true
1246 #               VerifyHost true
1247 #               CACert "/etc/ssl/ca.crt"
1248 #               CAPath "/etc/ssl/certs/"
1249 #               ClientKey "/etc/ssl/client.pem"
1250 #               ClientCert "/etc/ssl/client.crt"
1251 #               ClientKeyPass "secret"
1252 #               SSLVersion "TLSv1"
1253 #               Format "Command"
1254 #               StoreRates false
1255 #               BufferSize 4096
1256 #               LowSpeedLimit 0
1257 #               Timeout 0
1258 #       </Node>
1259 #</Plugin>
1261 #<Plugin write_kafka>
1262 #       Property "metadata.broker.list" "localhost:9092"
1263 #       <Topic "collectd">
1264 #               Format JSON
1265 #       </Topic>
1266 #</Plugin>
1268 #<Plugin write_redis>
1269 #       <Node "example">
1270 #               Host "localhost"
1271 #               Port "6379"
1272 #               Timeout 1000
1273 #       <Node>
1274 #</Plugin>
1276 #<Plugin write_riemann>
1277 #       <Node "example">
1278 #               Host "localhost"
1279 #               Port 5555
1280 #               Protocol TCP
1281 #               Batch true
1282 #               BatchMaxSize 8192
1283 #               StoreRates true
1284 #               AlwaysAppendDS false
1285 #               TTLFactor 2.0
1286 #               Notifications true
1287 #               CheckThresholds false
1288 #               EventServicePrefix ""
1289 #       </Node>
1290 #       Tag "foobar"
1291 #       Attribute "foo" "bar"
1292 #</Plugin>
1294 #<Plugin write_sensu>
1295 #       <Node "example">
1296 #               Host "localhost"
1297 #               Port 3030
1298 #               StoreRates true
1299 #               AlwaysAppendDS false
1300 #               Notifications true
1301 #               Metrics true
1302 #               EventServicePrefix ""
1303 #               MetricHandler "influx"
1304 #               MetricHandler "default"
1305 #               NotificationHandler "flapjack"
1306 #               NotificationHandler "howling_monkey"
1307 #       </Node>
1308 #       Tag "foobar"
1309 #       Attribute "foo" "bar"
1310 #</Plugin>
1312 #<Plugin write_tsdb>
1313 #       <Node>
1314 #               Host "localhost"
1315 #               Port "4242"
1316 #               HostTags "status=production"
1317 #               StoreRates false
1318 #               AlwaysAppendDS false
1319 #       </Node>
1320 #</Plugin>
1322 #<Plugin zookeeper>
1323 #       Host "localhost"
1324 #       Port "2181"
1325 #</Plugin>
1327 <Include "/etc/collectd/collectd.conf.d">
1328         Filter "*.conf"
1329 </Include>