Code

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