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