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 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"
224 #
225 # SetPlugin "cpu"
226 # SetPluginInstance "even-%{aggregation}"
227 #
228 # GroupBy "Host"
229 # GroupBy "TypeInstance"
230 #
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>
265 #
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/"
307 #
308 # ParseTime false
309 #
310 # OpCodes true
311 # QTypes true
312 # ServerStats true
313 # ZoneMaintStats true
314 # ResolverStats false
315 # MemoryStats true
316 #
317 # <View "_default">
318 # QTypes true
319 # ResolverStats true
320 # CacheRRSets true
321 #
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"
376 #
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>
395 #
396 # <Key "httpd_request_methods/*/count">
397 # Type "http_request_methods"
398 # </Key>
399 #
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"
431 #
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>
454 #
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"
556 #
557 # <Metric "swap_total">
558 # Type "swap"
559 # TypeInstance "total"
560 # DataSource "value"
561 # </Metric>
562 #
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 grpc>
583 # <Server "example.com" "50051">
584 # EnableSSL true
585 # SSLCACertificateFile "/path/to/root.pem"
586 # SSLCertificateFile "/path/to/server.pem"
587 # SSLCertificateKeyFile "/path/to/server.key"
588 # </Server>
589 # <Listen "0.0.0.0" "50051">
590 # EnableSSL true
591 # SSLCACertificateFile "/path/to/root.pem"
592 # SSLCertificateFile "/path/to/client.pem"
593 # SSLCertificateKeyFile "/path/to/client.key"
594 # </Listen>
595 #</Plugin>
597 #<Plugin hugepages>
598 # ReportPerNodeHP true
599 # ReportRootHP true
600 # ValuesPages true
601 # ValuesBytes false
602 # ValuesPercentage false
603 #</Plugin>
605 #<Plugin "intel_rdt">
606 # Cores "0-2"
607 #</Plugin>
609 #<Plugin interface>
610 # Interface "eth0"
611 # IgnoreSelected false
612 # ReportInactive true
613 # UniqueName false
614 #</Plugin>
616 #<Plugin ipmi>
617 # Sensor "some_sensor"
618 # Sensor "another_one"
619 # IgnoreSelected false
620 # NotifySensorAdd false
621 # NotifySensorRemove true
622 # NotifySensorNotPresent false
623 #</Plugin>
625 #<Plugin iptables>
626 # Chain "table" "chain"
627 # Chain6 "table" "chain"
628 #</Plugin>
630 #<Plugin irq>
631 # Irq 7
632 # Irq 8
633 # Irq 9
634 # IgnoreSelected true
635 #</Plugin>
637 #<Plugin java>
638 # JVMArg "-verbose:jni"
639 # JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
640 #
641 # LoadPlugin "org.collectd.java.GenericJMX"
642 # <Plugin "GenericJMX">
643 # # See /usr/share/doc/collectd/examples/GenericJMX.conf
644 # # for an example config.
645 # </Plugin>
646 #</Plugin>
648 #<Plugin load>
649 # ReportRelative true
650 #</Plugin>
652 #<Plugin lua>
653 # BasePath "/usr/share/collectd/lua"
654 # Script "script1.lua"
655 # Script "script2.lua"
656 #</Plugin>
658 #<Plugin madwifi>
659 # Interface "wlan0"
660 # IgnoreSelected false
661 # Source "SysFS"
662 # WatchSet "None"
663 # WatchAdd "node_octets"
664 # WatchAdd "node_rssi"
665 # WatchAdd "is_rx_acl"
666 # WatchAdd "is_scan_active"
667 #</Plugin>
669 #<Plugin mbmon>
670 # Host "127.0.0.1"
671 # Port 411
672 #</Plugin>
674 #<Plugin md>
675 # Device "/dev/md0"
676 # IgnoreSelected false
677 #</Plugin>
679 #<Plugin memcachec>
680 # <Page "plugin_instance">
681 # Server "localhost"
682 # Key "page_key"
683 # <Match>
684 # Regex "(\\d+) bytes sent"
685 # ExcludeRegex "<lines to be excluded>"
686 # DSType CounterAdd
687 # Type "ipt_octets"
688 # Instance "type_instance"
689 # </Match>
690 # </Page>
691 #</Plugin>
693 #<Plugin memcached>
694 # <Instance "local">
695 # Socket "/var/run/memcached.sock"
696 # or:
697 # #Host "memcache.example.com"
698 # Address "127.0.0.1"
699 # Port "11211"
700 # </Instance>
701 #</Plugin>
703 #<Plugin memory>
704 # ValuesAbsolute true
705 # ValuesPercentage false
706 #</Plugin>
708 #<Plugin modbus>
709 # <Data "data_name">
710 # RegisterBase 1234
711 # RegisterCmd ReadHolding
712 # RegisterType float
713 # Type gauge
714 # Instance "..."
715 # </Data>
716 #
717 # <Host "name">
718 # Address "addr"
719 # Port "1234"
720 # Interval 60
721 #
722 # <Slave 1>
723 # Instance "foobar" # optional
724 # Collect "data_name"
725 # </Slave>
726 # </Host>
727 #</Plugin>
729 #<Plugin mqtt>
730 # <Publish "name">
731 # Host "localhost"
732 # Port 1883
733 # ClientId "localhost"
734 # User "user"
735 # Password "secret"
736 # QoS 0
737 # Prefix "collectd"
738 # StoreRates true
739 # Retain false
740 # CACert "/etc/ssl/ca.crt"
741 # CertificateFile "/etc/ssl/client.crt"
742 # CertificateKeyFile "/etc/ssl/client.pem"
743 # TLSProtocol "tlsv1.2"
744 # CipherSuite "ciphers"
745 # <Publish>
746 # <Subscribe "name">
747 # Host "localhost"
748 # Port 1883
749 # ClientId "localhost"
750 # User "user"
751 # Password "secret"
752 # QoS 2
753 # Topic "collectd/#"
754 # CleanSession true
755 # </Subscribe>
756 #</Plugin>
758 #<Plugin mysql>
759 # <Database db_name>
760 # Host "database.serv.er"
761 # Port "3306"
762 # User "db_user"
763 # Password "secret"
764 # Database "db_name"
765 # SSLKey "/path/to/key.pem"
766 # SSLCert "/path/to/cert.pem"
767 # SSLCA "/path/to/ca.pem"
768 # SSLCAPath "/path/to/cas/"
769 # SSLCipher "DHE-RSA-AES256-SHA"
770 # MasterStats true
771 # ConnectTimeout 10
772 # InnodbStats true
773 # </Database>
774 #
775 # <Database db_name2>
776 # Alias "squeeze"
777 # Host "localhost"
778 # Socket "/var/run/mysql/mysqld.sock"
779 # SlaveStats true
780 # SlaveNotifications true
781 # </Database>
782 #
783 # <Database galera>
784 # Alias "galera"
785 # Host "localhost"
786 # Socket "/var/run/mysql/mysqld.sock"
787 # WsrepStats true
788 # </Database>
789 #</Plugin>
791 #<Plugin netlink>
792 # Interface "All"
793 # VerboseInterface "All"
794 # QDisc "eth0" "pfifo_fast-1:0"
795 # Class "ppp0" "htb-1:10"
796 # Filter "ppp0" "u32-1:0"
797 # IgnoreSelected false
798 #</Plugin>
800 #<Plugin network>
801 # # client setup:
802 # Server "ff18::efc0:4a42" "25826"
803 # <Server "239.192.74.66" "25826">
804 # SecurityLevel Encrypt
805 # Username "user"
806 # Password "secret"
807 # Interface "eth0"
808 # ResolveInterval 14400
809 # </Server>
810 # TimeToLive 128
811 #
812 # # server setup:
813 # Listen "ff18::efc0:4a42" "25826"
814 # <Listen "239.192.74.66" "25826">
815 # SecurityLevel Sign
816 # AuthFile "/etc/collectd/passwd"
817 # Interface "eth0"
818 # </Listen>
819 # MaxPacketSize 1452
820 #
821 # # proxy setup (client and server as above):
822 # Forward true
823 #
824 # # statistics about the network plugin itself
825 # ReportStats false
826 #
827 # # "garbage collection"
828 # CacheFlush 1800
829 #</Plugin>
831 #<Plugin nginx>
832 # URL "http://localhost/status?auto"
833 # User "www-user"
834 # Password "secret"
835 # VerifyPeer false
836 # VerifyHost false
837 # CACert "/etc/ssl/ca.crt"
838 #</Plugin>
840 #<Plugin notify_desktop>
841 # OkayTimeout 1000
842 # WarningTimeout 5000
843 # FailureTimeout 0
844 #</Plugin>
846 #<Plugin notify_email>
847 # SMTPServer "localhost"
848 # SMTPPort 25
849 # SMTPUser "my-username"
850 # SMTPPassword "my-password"
851 # From "collectd@main0server.com"
852 # # <WARNING/FAILURE/OK> on <hostname>.
853 # # Beware! Do not use not more than two placeholders (%)!
854 # Subject "[collectd] %s on %s!"
855 # Recipient "email1@domain1.net"
856 # Recipient "email2@domain2.com"
857 #</Plugin>
859 #<Plugin notify_nagios>
860 # CommandFile "/var/lib/icinga/rw/icinga.cmd"
861 #</Plugin>
863 #<Plugin ntpd>
864 # Host "localhost"
865 # Port 123
866 # ReverseLookups false
867 # IncludeUnitID true
868 #</Plugin>
870 #<Plugin nut>
871 # UPS "upsname@hostname:port"
872 #</Plugin>
874 #<Plugin olsrd>
875 # Host "127.0.0.1"
876 # Port "2006"
877 # CollectLinks "Summary"
878 # CollectRoutes "Summary"
879 # CollectTopology "Summary"
880 #</Plugin>
882 #<Plugin onewire>
883 # Device "-s localhost:4304"
884 # Sensor "F10FCA000800"
885 # IgnoreSelected false
886 #</Plugin>
888 #<Plugin openldap>
889 # <Instance "localhost">
890 # URL "ldap://localhost:389"
891 # StartTLS false
892 # VerifyHost true
893 # CACert "/path/to/ca.crt"
894 # Timeout -1
895 # Version 3
896 # </Instance>
897 #</Plugin>
899 #<Plugin openvpn>
900 # StatusFile "/etc/openvpn/openvpn-status.log"
901 # ImprovedNamingSchema false
902 # CollectCompression true
903 # CollectIndividualUsers true
904 # CollectUserCount false
905 #</Plugin>
907 #<Plugin perl>
908 # IncludeDir "/my/include/path"
909 # BaseName "Collectd::Plugins"
910 # EnableDebugger ""
911 # LoadPlugin Monitorus
912 # LoadPlugin OpenVZ
913 #
914 # <Plugin foo>
915 # Foo "Bar"
916 # Qux "Baz"
917 # </Plugin>
918 #</Plugin>
920 #<Plugin pinba>
921 # Address "::0"
922 # Port "30002"
923 # <View "name">
924 # Host "host name"
925 # Server "server name"
926 # Script "script name"
927 # <View>
928 #</Plugin>
930 #<Plugin ping>
931 # Host "host.foo.bar"
932 # Host "host.baz.qux"
933 # Interval 1.0
934 # Timeout 0.9
935 # TTL 255
936 # SourceAddress "1.2.3.4"
937 # Device "eth0"
938 # MaxMissed -1
939 #</Plugin>
941 #<Plugin postgresql>
942 # <Query magic>
943 # Statement "SELECT magic FROM wizard WHERE host = $1;"
944 # Param hostname
945 #
946 # <Result>
947 # Type gauge
948 # InstancePrefix "magic"
949 # ValuesFrom "magic"
950 # </Result>
951 # </Query>
952 #
953 # <Query rt36_tickets>
954 # Statement "SELECT COUNT(type) AS count, type \
955 # FROM (SELECT CASE \
956 # WHEN resolved = 'epoch' THEN 'open' \
957 # ELSE 'resolved' END AS type \
958 # FROM tickets) type \
959 # GROUP BY type;"
960 #
961 # <Result>
962 # Type counter
963 # InstancePrefix "rt36_tickets"
964 # InstancesFrom "type"
965 # ValuesFrom "count"
966 # </Result>
967 # </Query>
968 #
969 # <Writer sqlstore>
970 # # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
971 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
972 # StoreRates true
973 # </Writer>
974 #
975 # <Database foo>
976 # Host "hostname"
977 # Port 5432
978 # User "username"
979 # Password "secret"
980 #
981 # SSLMode "prefer"
982 # KRBSrvName "kerberos_service_name"
983 #
984 # Query magic
985 # </Database>
986 #
987 # <Database bar>
988 # Interval 60
989 # Service "service_name"
990 #
991 # Query backend # predefined
992 # Query rt36_tickets
993 # </Database>
994 #
995 # <Database qux>
996 # Service "collectd_store"
997 # Writer sqlstore
998 # # see collectd.conf(5) for details
999 # CommitInterval 30
1000 # </Database>
1001 #</Plugin>
1003 #<Plugin powerdns>
1004 # <Server "server_name">
1005 # Collect "latency"
1006 # Collect "udp-answers" "udp-queries"
1007 # Socket "/var/run/pdns.controlsocket"
1008 # </Server>
1009 # <Recursor "recursor_name">
1010 # Collect "questions"
1011 # Collect "cache-hits" "cache-misses"
1012 # Socket "/var/run/pdns_recursor.controlsocket"
1013 # </Recursor>
1014 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1015 #</Plugin>
1017 #<Plugin processes>
1018 # Process "name"
1019 # ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
1020 #</Plugin>
1022 #<Plugin protocols>
1023 # Value "/^Tcp:/"
1024 # IgnoreSelected false
1025 #</Plugin>
1027 #<Plugin python>
1028 # ModulePath "/path/to/your/python/modules"
1029 # LogTraces true
1030 # Interactive true
1031 # Import "spam"
1032 #
1033 # <Module spam>
1034 # spam "wonderful" "lovely"
1035 # </Module>
1036 #</Plugin>
1038 #<Plugin redis>
1039 # <Node example>
1040 # Host "redis.example.com"
1041 # Port "6379"
1042 # Timeout 2000
1043 # </Node>
1044 #</Plugin>
1046 #<Plugin rrdcached>
1047 # DaemonAddress "unix:/var/run/rrdcached.sock"
1048 # DataDir "/var/lib/rrdcached/db/collectd"
1049 # CreateFiles true
1050 # CreateFilesAsync false
1051 # CollectStatistics true
1052 #
1053 # The following settings are rather advanced
1054 # and should usually not be touched:
1055 # StepSize 10
1056 # HeartBeat 20
1057 # RRARows 1200
1058 # RRATimespan 158112000
1059 # XFF 0.1
1060 #</Plugin>
1062 <Plugin rrdtool>
1063 DataDir "/var/lib/collectd/rrd"
1064 # CacheTimeout 120
1065 # CacheFlush 900
1066 # WritesPerSecond 30
1067 # CreateFilesAsync false
1068 # RandomTimeout 0
1069 #
1070 # The following settings are rather advanced
1071 # and should usually not be touched:
1072 # StepSize 10
1073 # HeartBeat 20
1074 # RRARows 1200
1075 # RRATimespan 158112000
1076 # XFF 0.1
1077 </Plugin>
1079 #<Plugin sensors>
1080 # SensorConfigFile "/etc/sensors3.conf"
1081 # Sensor "it8712-isa-0290/temperature-temp1"
1082 # Sensor "it8712-isa-0290/fanspeed-fan3"
1083 # Sensor "it8712-isa-0290/voltage-in8"
1084 # IgnoreSelected false
1085 #</Plugin>
1087 #<Plugin sigrok>
1088 # LogLevel 3
1089 # <Device "AC Voltage">
1090 # Driver "fluke-dmm"
1091 # MinimumInterval 10
1092 # Conn "/dev/ttyUSB2"
1093 # </Device>
1094 # <Device "Sound Level">
1095 # Driver "cem-dt-885x"
1096 # Conn "/dev/ttyUSB1"
1097 # </Device>
1098 #</Plugin>
1100 #<Plugin smart>
1101 # Disk "/^[hs]d[a-f][0-9]?$/"
1102 # IgnoreSelected false
1103 #</Plugin>
1105 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
1106 # comprehensive sample configuration.
1107 #<Plugin snmp>
1108 # <Data "powerplus_voltge_input">
1109 # Type "voltage"
1110 # Table false
1111 # Instance "input_line1"
1112 # Scale 0.1
1113 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1114 # </Data>
1115 # <Data "hr_users">
1116 # Type "users"
1117 # Table false
1118 # Instance ""
1119 # Shift -1
1120 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1121 # </Data>
1122 # <Data "std_traffic">
1123 # Type "if_octets"
1124 # Table true
1125 # InstancePrefix "traffic"
1126 # Instance "IF-MIB::ifDescr"
1127 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1128 # </Data>
1129 #
1130 # <Host "some.switch.mydomain.org">
1131 # Address "192.168.0.2"
1132 # Version 1
1133 # Community "community_string"
1134 # Collect "std_traffic"
1135 # Inverval 120
1136 # </Host>
1137 # <Host "some.server.mydomain.org">
1138 # Address "192.168.0.42"
1139 # Version 2
1140 # Community "another_string"
1141 # Collect "std_traffic" "hr_users"
1142 # </Host>
1143 # <Host "some.ups.mydomain.org">
1144 # Address "192.168.0.3"
1145 # Version 1
1146 # Community "more_communities"
1147 # Collect "powerplus_voltge_input"
1148 # Interval 300
1149 # </Host>
1150 #</Plugin>
1152 #<Plugin statsd>
1153 # Host "::"
1154 # Port "8125"
1155 # DeleteCounters false
1156 # DeleteTimers false
1157 # DeleteGauges false
1158 # DeleteSets false
1159 # CounterSum false
1160 # TimerPercentile 90.0
1161 # TimerPercentile 95.0
1162 # TimerPercentile 99.0
1163 # TimerLower false
1164 # TimerUpper false
1165 # TimerSum false
1166 # TimerCount false
1167 #</Plugin>
1169 #<Plugin swap>
1170 # ReportByDevice false
1171 # ReportBytes true
1172 #</Plugin>
1174 #<Plugin table>
1175 # <Table "/proc/slabinfo">
1176 # Instance "slabinfo"
1177 # Separator " "
1178 # <Result>
1179 # Type gauge
1180 # InstancePrefix "active_objs"
1181 # InstancesFrom 0
1182 # ValuesFrom 1
1183 # </Result>
1184 # <Result>
1185 # Type gauge
1186 # InstancePrefix "objperslab"
1187 # InstancesFrom 0
1188 # ValuesFrom 4
1189 # </Result>
1190 # </Table>
1191 #</Plugin>
1193 #<Plugin tail>
1194 # <File "/var/log/exim4/mainlog">
1195 # Instance "exim"
1196 # Interval 60
1197 # <Match>
1198 # Regex "S=([1-9][0-9]*)"
1199 # DSType "CounterAdd"
1200 # Type "ipt_bytes"
1201 # Instance "total"
1202 # </Match>
1203 # <Match>
1204 # Regex "\\<R=local_user\\>"
1205 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1206 # DSType "CounterInc"
1207 # Type "counter"
1208 # Instance "local_user"
1209 # </Match>
1210 # </File>
1211 # <File "/var/log/nginx/apache-time.log">
1212 # #Use the following log format in nginx:
1213 # #log_format response_time '[$host] "$upstream_response_time" ...'
1214 # Instance "apache"
1215 # <Match>
1216 # Regex "^\\S+ \"([0-9.]+)\""
1217 # <DSType Distribution>
1218 # Percentile 80 # -> latency-foo-80
1219 # Percentile 95 # -> latency-foo-95
1220 # Percentile 99 # -> latency-foo-99
1221 # Bucket 0 0.1 # -> bucket-latency-foo-0_0.1
1222 # Bucket 0.1 0.2 # -> bucket-latency-foo-0.1_0.2
1223 # Bucket 0.2 0.5 # -> bucket-latency-foo-0.2_0.5
1224 # Bucket 0.5 1.0 # -> bucket-latency-foo-0.5_1
1225 # Bucket 1.0 2.0 # -> bucket-latency-foo-1_2
1226 # Bucket 2.0 0 # -> bucket-latency-foo-2_inf
1227 # </DSType>
1228 # Type "latency"
1229 # Instance "foo"
1230 # </Match>
1231 # </File>
1232 #</Plugin>
1234 #<Plugin tail_csv>
1235 # <Metric "dropped">
1236 # Type "percent"
1237 # Instance "dropped"
1238 # ValueFrom 1
1239 # </Metric>
1240 # <Metric "mbps">
1241 # Type "bytes"
1242 # Instance "wire-realtime"
1243 # ValueFrom 2
1244 # </Metric>
1245 # <Metric "alerts">
1246 # Type "alerts_per_second"
1247 # ValueFrom 3
1248 # </Metric>
1249 # <Metric "kpps">
1250 # Type "kpackets_wire_per_sec.realtime"
1251 # ValueFrom 4
1252 # </Metric>
1253 # <File "/var/log/snort/snort.stats">
1254 # Instance "snort-eth0"
1255 # Interval 600
1256 # Collect "dropped" "mbps" "alerts" "kpps"
1257 # TimeFrom 0
1258 # </File>
1259 #</Plugin>
1261 #<Plugin tcpconns>
1262 # ListeningPorts false
1263 # AllPortsSummary false
1264 # LocalPort "25"
1265 # RemotePort "25"
1266 #</Plugin>
1268 #<Plugin teamspeak2>
1269 # Host "127.0.0.1"
1270 # Port "51234"
1271 # Server "8767"
1272 #</Plugin>
1274 #<Plugin ted>
1275 # Device "/dev/ttyUSB0"
1276 # Retries 0
1277 #</Plugin>
1279 #<Plugin thermal>
1280 # ForceUseProcfs false
1281 # Device "THRM"
1282 # IgnoreSelected false
1283 #</Plugin>
1285 #<Plugin tokyotyrant>
1286 # Host "localhost"
1287 # Port "1978"
1288 #</Plugin>
1290 #<Plugin turbostat>
1291 ## None of the following option should be set manually
1292 ## This plugin automatically detect most optimal options
1293 ## Only set values here if:
1294 ## - The module asks you to
1295 ## - You want to disable the collection of some data
1296 ## - Your (Intel) CPU is not supported (yet) by the module
1297 ## - The module generates a lot of errors 'MSR offset 0x... read failed'
1298 ## In the last two cases, please open a bug request
1299 #
1300 # TCCActivationTemp "100"
1301 # CoreCstates "392"
1302 # PackageCstates "396"
1303 # SystemManagementInterrupt true
1304 # DigitalTemperatureSensor true
1305 # PackageThermalManagement true
1306 # RunningAveragePowerLimit "7"
1307 #</Plugin>
1309 #<Plugin unixsock>
1310 # SocketFile "/var/run/collectd-unixsock"
1311 # SocketGroup "collectd"
1312 # SocketPerms "0660"
1313 # DeleteSocket false
1314 #</Plugin>
1316 #<Plugin uuid>
1317 # UUIDFile "/etc/uuid"
1318 #</Plugin>
1320 #<Plugin varnish>
1321 # This tag support an argument if you want to
1322 # monitor the local instance just use </Instance>
1323 # If you prefer defining another instance you can do
1324 # so by using <Instance "myinstance">
1325 # <Instance>
1326 # CollectBackend true
1327 # CollectBan false # Varnish 3 and above
1328 # CollectCache true
1329 # CollectConnections true
1330 # CollectDirectorDNS false # Varnish 3 only
1331 # CollectESI false
1332 # CollectFetch false
1333 # CollectHCB false
1334 # CollectObjects false
1335 # CollectPurge false # Varnish 2 only
1336 # CollectSession false
1337 # CollectSHM true
1338 # CollectSMA false # Varnish 2 & 4 only
1339 # CollectSMS false
1340 # CollectSM false # Varnish 2 only
1341 # CollectStruct false
1342 # CollectTotals false
1343 # CollectUptime false # Varnish 3 and above
1344 # CollectVCL false
1345 # CollectVSM false # Varnish 4 only
1346 # CollectWorkers false
1347 # CollectLock false # Varnish 4 only
1348 # CollectMempool false # Varnish 4 only
1349 # CollectManagement false # Varnish 4 only
1350 # CollectSMF false # Varnish 4 only
1351 # CollectVBE false # Varnish 4 only
1352 # CollectMSE false # Varnish-Plus 4 only
1353 # </Instance>
1354 #</Plugin>
1356 #<Plugin virt>
1357 # Connection "xen:///"
1358 # RefreshInterval 60
1359 # Domain "name"
1360 # BlockDevice "name:device"
1361 # BlockDeviceFormat target
1362 # BlockDeviceFormatBasename false
1363 # InterfaceDevice "name:device"
1364 # IgnoreSelected false
1365 # HostnameFormat name
1366 # InterfaceFormat name
1367 # PluginInstanceFormat name
1368 #</Plugin>
1370 #<Plugin vmem>
1371 # Verbose false
1372 #</Plugin>
1374 #<Plugin write_graphite>
1375 # <Node "example">
1376 # Host "localhost"
1377 # Port "2003"
1378 # Protocol "tcp"
1379 # ReconnectInterval 0
1380 # LogSendErrors true
1381 # Prefix "collectd"
1382 # Postfix "collectd"
1383 # StoreRates true
1384 # AlwaysAppendDS false
1385 # EscapeCharacter "_"
1386 # SeparateInstances false
1387 # PreserveSeparator false
1388 # DropDuplicateFields false
1389 # </Node>
1390 #</Plugin>
1392 #<Plugin write_http>
1393 # <Node "example">
1394 # URL "http://example.com/collectd-post"
1395 # User "collectd"
1396 # Password "secret"
1397 # VerifyPeer true
1398 # VerifyHost true
1399 # CACert "/etc/ssl/ca.crt"
1400 # CAPath "/etc/ssl/certs/"
1401 # ClientKey "/etc/ssl/client.pem"
1402 # ClientCert "/etc/ssl/client.crt"
1403 # ClientKeyPass "secret"
1404 # Header "X-Custom-Header: custom_value"
1405 # SSLVersion "TLSv1"
1406 # Format "Command"
1407 # Metrics true
1408 # Notifications false
1409 # StoreRates false
1410 # BufferSize 4096
1411 # LowSpeedLimit 0
1412 # Timeout 0
1413 # Prefix "collectd/"
1414 # </Node>
1415 #</Plugin>
1417 #<Plugin write_kafka>
1418 # Property "metadata.broker.list" "localhost:9092"
1419 # <Topic "collectd">
1420 # Format JSON
1421 # </Topic>
1422 #</Plugin>
1424 #<Plugin write_mongodb>
1425 # <Node "example">
1426 # Host "localhost"
1427 # Port "27017"
1428 # Timeout 1000
1429 # StoreRates false
1430 # Database "auth_db"
1431 # User "auth_user"
1432 # Password "auth_passwd"
1433 # </Node>
1434 #</Plugin>
1436 #<Plugin write_prometheus>
1437 # Port "9103"
1438 #</Plugin>
1440 #<Plugin write_redis>
1441 # <Node "example">
1442 # Host "localhost"
1443 # Port "6379"
1444 # Timeout 1000
1445 # <Node>
1446 #</Plugin>
1448 #<Plugin write_riemann>
1449 # <Node "example">
1450 # Host "localhost"
1451 # Port 5555
1452 # Protocol TCP
1453 # Batch true
1454 # BatchMaxSize 8192
1455 # StoreRates true
1456 # AlwaysAppendDS false
1457 # TTLFactor 2.0
1458 # Notifications true
1459 # CheckThresholds false
1460 # EventServicePrefix ""
1461 # </Node>
1462 # Tag "foobar"
1463 # Attribute "foo" "bar"
1464 #</Plugin>
1466 #<Plugin write_sensu>
1467 # <Node "example">
1468 # Host "localhost"
1469 # Port 3030
1470 # StoreRates true
1471 # AlwaysAppendDS false
1472 # Notifications true
1473 # Metrics true
1474 # EventServicePrefix ""
1475 # MetricHandler "influx"
1476 # MetricHandler "default"
1477 # NotificationHandler "flapjack"
1478 # NotificationHandler "howling_monkey"
1479 # </Node>
1480 # Tag "foobar"
1481 # Attribute "foo" "bar"
1482 #</Plugin>
1484 #<Plugin write_tsdb>
1485 # <Node>
1486 # Host "localhost"
1487 # Port "4242"
1488 # HostTags "status=production"
1489 # StoreRates false
1490 # AlwaysAppendDS false
1491 # </Node>
1492 #</Plugin>
1494 #<Plugin zookeeper>
1495 # Host "localhost"
1496 # Port "2181"
1497 #</Plugin>
1499 <Include "/etc/collectd/collectd.conf.d">
1500 Filter "*.conf"
1501 </Include>