Code

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