[METRICS-390] Fix string handling for TSDB prefix and tags
[collectd.git] / src / collectd.conf.in
1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
6
7 ##############################################################################
8 # Global                                                                     #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon.                                            #
11 ##############################################################################
12
13 #Hostname    "localhost"
14 #FQDNLookup   true
15 #BaseDir     "@localstatedir@/lib/@PACKAGE_NAME@"
16 #PIDFile     "@localstatedir@/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@libdir@/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19
20 #----------------------------------------------------------------------------#
21 # When enabled, plugins are loaded automatically with the default options    #
22 # when an appropriate <Plugin ...> block is encountered.                     #
23 # Disabled by default.                                                       #
24 #----------------------------------------------------------------------------#
25 #AutoLoadPlugin false
26
27 #----------------------------------------------------------------------------#
28 # Interval at which to query values. This may be overwritten on a per-plugin #
29 # base by using the 'Interval' option of the LoadPlugin block:               #
30 #   <LoadPlugin foo>                                                         #
31 #       Interval 60                                                          #
32 #   </LoadPlugin>                                                            #
33 #----------------------------------------------------------------------------#
34 #Interval     10
35
36 #Timeout      2
37 #ReadThreads  5
38 #WriteThreads 5
39
40 # Limit the size of the write queue. Default is no limit. Setting up a limit is
41 # recommended for servers handling a high volume of traffic.
42 #WriteQueueLimitHigh 1000000
43 #WriteQueueLimitLow   800000
44
45 ##############################################################################
46 # Logging                                                                    #
47 #----------------------------------------------------------------------------#
48 # Plugins which provide logging functions should be loaded first, so log     #
49 # messages generated when loading or configuring other plugins can be        #
50 # accessed.                                                                  #
51 ##############################################################################
52
53 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
54 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
55
56 #<Plugin logfile>
57 #       LogLevel @DEFAULT_LOG_LEVEL@
58 #       File STDOUT
59 #       Timestamp true
60 #       PrintSeverity false
61 #</Plugin>
62
63 #<Plugin syslog>
64 #       LogLevel @DEFAULT_LOG_LEVEL@
65 #</Plugin>
66
67 ##############################################################################
68 # LoadPlugin section                                                         #
69 #----------------------------------------------------------------------------#
70 # Lines beginning with a single `#' belong to plugins which have been built  #
71 # but are disabled by default.                                               #
72 #                                                                            #
73 # Lines begnning with `##' belong to plugins which have not been built due   #
74 # to missing dependencies or because they have been deactivated explicitly.  #
75 ##############################################################################
76
77 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
78 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
79 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
80 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
81 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
82 #@BUILD_PLUGIN_AQUAERO_TRUE@LoadPlugin aquaero
83 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
84 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
85 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
86 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
87 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
88 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
89 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
90 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
91 @LOAD_PLUGIN_CSV@LoadPlugin csv
92 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
93 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
94 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
95 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
96 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
97 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
98 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
99 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
100 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
101 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
102 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
103 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
104 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
105 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
106 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
107 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
108 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
109 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
110 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
111 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
112 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
113 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
114 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
115 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
116 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
117 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
118 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
119 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
120 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
121 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
122 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
123 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
124 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
125 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
126 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
127 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
128 @LOAD_PLUGIN_NETWORK@LoadPlugin network
129 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
130 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
131 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
132 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
133 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
134 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
135 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
136 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
137 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
138 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
139 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
140 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
141 #@BUILD_PLUGIN_PERL_TRUE@  Globals true
142 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
143 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
144 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
145 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
146 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
147 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
148 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
149 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
150 #@BUILD_PLUGIN_PYTHON_TRUE@  Globals true
151 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
152 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
153 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
154 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
155 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
156 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
157 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
158 #@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
159 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
160 #@BUILD_PLUGIN_STATSD_TRUE@LoadPlugin statsd
161 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
162 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
163 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
164 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
165 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
166 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
167 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
168 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
169 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
170 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
171 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
172 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
173 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
174 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
175 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
176 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
177 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
178 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
179 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
180 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
181 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
182 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
183 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
184 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
185 #@BUILD_PLUGIN_WRITE_TSDB_TRUE@LoadPlugin write_tsdb
186 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
187 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
188
189 ##############################################################################
190 # Plugin configuration                                                       #
191 #----------------------------------------------------------------------------#
192 # In this section configuration stubs for each plugin are provided. A desc-  #
193 # ription of those options is available in the collectd.conf(5) manual page. #
194 ##############################################################################
195
196 #<Plugin "aggregation">
197 #  <Aggregation>
198 #    #Host "unspecified"
199 #    Plugin "cpu"
200 #    #PluginInstance "unspecified"
201 #    Type "cpu"
202 #    #TypeInstance "unspecified"
203 #
204 #    GroupBy "Host"
205 #    GroupBy "TypeInstance"
206 #
207 #    CalculateNum false
208 #    CalculateSum false
209 #    CalculateAverage true
210 #    CalculateMinimum false
211 #    CalculateMaximum false
212 #    CalculateStddev false
213 #  </Aggregation>
214 #</Plugin>
215
216 #<Plugin "amqp">
217 #  <Publish "name">
218 #    Host "localhost"
219 #    Port "5672"
220 #    VHost "/"
221 #    User "guest"
222 #    Password "guest"
223 #    Exchange "amq.fanout"
224 #    RoutingKey "collectd"
225 #    Persistent false
226 #    StoreRates false
227 #  </Publish>
228 #</Plugin>
229
230 #<Plugin apache>
231 #  <Instance "local">
232 #    URL "http://localhost/status?auto"
233 #    User "www-user"
234 #    Password "secret"
235 #    CACert "/etc/ssl/ca.crt"
236 #  </Instance>
237 #</Plugin>
238
239 #<Plugin apcups>
240 #       Host "localhost"
241 #       Port "3551"
242 #       ReportSeconds true
243 #</Plugin>
244
245 #<Plugin aquaero>
246 #       Device ""
247 #</Plugin>
248
249 #<Plugin ascent>
250 #       URL "http://localhost/ascent/status/"
251 #       User "www-user"
252 #       Password "secret"
253 #       CACert "/etc/ssl/ca.crt"
254 #</Plugin>
255
256 #<Plugin "bind">
257 #  URL "http://localhost:8053/"
258 #  ParseTime       false
259 #  OpCodes         true
260 #  QTypes          true
261 #
262 #  ServerStats     true
263 #  ZoneMaintStats  true
264 #  ResolverStats   false
265 #  MemoryStats     true
266 #
267 #  <View "_default">
268 #    QTypes        true
269 #    ResolverStats true
270 #    CacheRRSets   true
271 #
272 #    Zone "127.in-addr.arpa/IN"
273 #  </View>
274 #</Plugin>
275
276 #<Plugin cgroups>
277 #  CGroup "libvirt"
278 #  IgnoreSelected false
279 #</Plugin>
280
281 #<Plugin csv>
282 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
283 #       StoreRates false
284 #</Plugin>
285
286 #<Plugin curl>
287 #  <Page "stock_quotes">
288 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
289 #    User "foo"
290 #    Password "bar"
291 #    MeasureResponseTime false
292 #    <Match>
293 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
294 #      DSType "GaugeAverage"
295 #      Type "stock_value"
296 #      Instance "AMD"
297 #    </Match>
298 #  </Page>
299 #</Plugin>
300
301 #<Plugin curl_json>
302 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
303 #  <URL "http://localhost:5984/_stats">
304 #    Instance "httpd"
305 #    <Key "httpd/requests/count">
306 #      Type "http_requests"
307 #    </Key>
308 #
309 #    <Key "httpd_request_methods/*/count">
310 #      Type "http_request_methods"
311 #    </Key>
312 #
313 #    <Key "httpd_status_codes/*/count">
314 #      Type "http_response_codes"
315 #    </Key>
316 #  </URL>
317 ## Database status metrics:
318 #  <URL "http://localhost:5984/_all_dbs">
319 #    Instance "dbs"
320 #    <Key "*/doc_count">
321 #      Type "gauge"
322 #    </Key>
323 #    <Key "*/doc_del_count">
324 #      Type "counter"
325 #    </Key>
326 #    <Key "*/disk_size">
327 #      Type "bytes"
328 #    </Key>
329 #  </URL>
330 #</Plugin>
331
332 #<Plugin "curl_xml">
333 #  <URL "http://localhost/stats.xml">
334 #    Host "my_host"
335 #    Instance "some_instance"
336 #    User "collectd"
337 #    Password "thaiNg0I"
338 #    VerifyPeer true
339 #    VerifyHost true
340 #    CACert "/path/to/ca.crt"
341 #
342 #    <XPath "table[@id=\"magic_level\"]/tr">
343 #      Type "magic_level"
344 #      #InstancePrefix "prefix-"
345 #      InstanceFrom "td[1]"
346 #      ValuesFrom "td[2]/span[@class=\"level\"]"
347 #    </XPath>
348 #  </URL>
349 #</Plugin>
350
351 #<Plugin dbi>
352 #       <Query "num_of_customers">
353 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
354 #               <Result>
355 #                       Type "gauge"
356 #                       InstancesFrom "c_key"
357 #                       ValuesFrom "c_value"
358 #               </Result>
359 #       </Query>
360 #       <Database "customers_db">
361 #               Driver "mysql"
362 #               DriverOption "host" "localhost"
363 #               DriverOption "username" "collectd"
364 #               DriverOption "password" "AeXohy0O"
365 #               DriverOption "dbname" "custdb0"
366 #               #SelectDB "custdb0"
367 #               Query "num_of_customers"
368 #               #Query "..."
369 #               #Host "..."
370 #       </Database>
371 #</Plugin>
372
373 #<Plugin df>
374 #       Device "/dev/hda1"
375 #       Device "192.168.0.2:/mnt/nfs"
376 #       MountPoint "/home"
377 #       FSType "ext3"
378 #       IgnoreSelected false
379 #       ReportByDevice false
380 #       ReportReserved false
381 #       ReportInodes false
382 #       ValuesAbsolute true
383 #       ValuesPercentage false
384 #</Plugin>
385
386 #<Plugin disk>
387 #       Disk "/^[hs]d[a-f][0-9]?$/"
388 #       IgnoreSelected false
389 #</Plugin>
390
391 #<Plugin dns>
392 #       Interface "eth0"
393 #       IgnoreSource "192.168.0.1"
394 #       SelectNumericQueryTypes true
395 #</Plugin>
396
397 #<Plugin email>
398 #       SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
399 #       SocketGroup "collectd"
400 #       SocketPerms "0770"
401 #       MaxConns 5
402 #</Plugin>
403
404 #<Plugin ethstat>
405 #       Interface "eth0"
406 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
407 #       Map "multicast" "if_multicast"
408 #       MappedOnly false
409 #</Plugin>
410
411 #<Plugin exec>
412 #       Exec "user:group" "/path/to/exec"
413 #       NotificationExec "user:group" "/path/to/exec"
414 #</Plugin>
415
416 #<Plugin filecount>
417 #       <Directory "/path/to/dir">
418 #               Instance "foodir"
419 #               Name "*.conf"
420 #               MTime "-5m"
421 #               Size "+10k"
422 #               Recursive true
423 #               IncludeHidden false
424 #       </Directory>
425 #</Plugin>
426
427 #<Plugin "gmond">
428 #  MCReceiveFrom "239.2.11.71" "8649"
429 #  <Metric "swap_total">
430 #    Type "swap"
431 #    TypeInstance "total"
432 #    DataSource "value"
433 #  </Metric>
434 #  <Metric "swap_free">
435 #    Type "swap"
436 #    TypeInstance "free"
437 #    DataSource "value"
438 #  </Metric>
439 #</Plugin>
440
441 #<Plugin hddtemp>
442 #  Host "127.0.0.1"
443 #  Port "7634"
444 #</Plugin>
445
446 #<Plugin interface>
447 #       Interface "eth0"
448 #       IgnoreSelected false
449 #</Plugin>
450
451 #<Plugin ipmi>
452 #       Sensor "some_sensor"
453 #       Sensor "another_one"
454 #       IgnoreSelected false
455 #       NotifySensorAdd false
456 #       NotifySensorRemove true
457 #       NotifySensorNotPresent false
458 #</Plugin>
459
460 #<Plugin iptables>
461 #       Chain table chain
462 #</Plugin>
463
464 #<Plugin irq>
465 #       Irq 7
466 #       Irq 8
467 #       Irq 9
468 #       IgnoreSelected true
469 #</Plugin>
470
471 #<Plugin "java">
472 #       JVMArg "-verbose:jni"
473 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
474 #
475 #       LoadPlugin "org.collectd.java.Foobar"
476 #       <Plugin "org.collectd.java.Foobar">
477 #         # To be parsed by the plugin
478 #       </Plugin>
479 #</Plugin>
480
481 #<Plugin libvirt>
482 #       Connection "xen:///"
483 #       RefreshInterval 60
484 #       Domain "name"
485 #       BlockDevice "name:device"
486 #       InterfaceDevice "name:device"
487 #       IgnoreSelected false
488 #       HostnameFormat name
489 #       InterfaceFormat name
490 #</Plugin>
491
492 #<Plugin lpar>
493 #       CpuPoolStats   false
494 #       ReportBySerial false
495 #</Plugin>
496
497 #<Plugin madwifi>
498 #       Interface "wlan0"
499 #       IgnoreSelected false
500 #       Source "SysFS"
501 #       WatchSet "None"
502 #       WatchAdd "node_octets"
503 #       WatchAdd "node_rssi"
504 #       WatchAdd "is_rx_acl"
505 #       WatchAdd "is_scan_active"
506 #</Plugin>
507
508 #<Plugin mbmon>
509 #       Host "127.0.0.1"
510 #       Port "411"
511 #</Plugin>
512
513 #<Plugin md>
514 #       Device "/dev/md0"
515 #       IgnoreSelected false
516 #</Plugin>
517
518 #<Plugin memcachec>
519 #       <Page "plugin_instance">
520 #               Server "localhost"
521 #               Key "page_key"
522 #               <Match>
523 #                       Regex "(\\d+) bytes sent"
524 #                       ExcludeRegex "<lines to be excluded>"
525 #                       DSType CounterAdd
526 #                       Type "ipt_octets"
527 #                       Instance "type_instance"
528 #               </Match>
529 #       </Page>
530 #</Plugin>
531
532 #<Plugin memcached>
533 #       <Instance "local">
534 #               Host "127.0.0.1"
535 #               Port "11211"
536 #       </Instance>
537 #</Plugin>
538
539 #<Plugin modbus>
540 #       <Data "data_name">
541 #               RegisterBase 1234
542 #               RegisterType float
543 #               Type gauge
544 #               Instance "..."
545 #       </Data>
546 #
547 #       <Host "name">
548 #               Address "addr"
549 #               Port "1234"
550 #               Interval 60
551 #
552 #               <Slave 1>
553 #                       Instance "foobar" # optional
554 #                       Collect "data_name"
555 #               </Slave>
556 #       </Host>
557 #</Plugin>
558
559 #<Plugin mysql>
560 #       <Database db_name>
561 #               Host "database.serv.er"
562 #               User "db_user"
563 #               Password "secret"
564 #               Database "db_name"
565 #               MasterStats true
566 #       </Database>
567 #
568 #       <Database db_name2>
569 #               Host "localhost"
570 #               Socket "/var/run/mysql/mysqld.sock"
571 #               SlaveStats true
572 #               SlaveNotifications true
573 #       </Database>
574 #</Plugin>
575
576 #<Plugin netapp>
577 #       <Host "netapp1.example.com">
578 #               Protocol      "https"
579 #               Address       "10.0.0.1"
580 #               Port          443
581 #               User          "username"
582 #               Password      "aef4Aebe"
583 #               Interval      30
584 #
585 #               <WAFL>
586 #                       Interval 30
587 #                       GetNameCache   true
588 #                       GetDirCache    true
589 #                       GetBufferCache true
590 #                       GetInodeCache  true
591 #               </WAFL>
592 #
593 #               <Disks>
594 #                       Interval 30
595 #                       GetBusy true
596 #               </Disks>
597 #
598 #               <VolumePerf>
599 #                       Interval 30
600 #                       GetIO      "volume0"
601 #                       IgnoreSelectedIO      false
602 #                       GetOps     "volume0"
603 #                       IgnoreSelectedOps     false
604 #                       GetLatency "volume0"
605 #                       IgnoreSelectedLatency false
606 #               </VolumePerf>
607 #
608 #               <VolumeUsage>
609 #                       Interval 30
610 #                       GetCapacity "vol0"
611 #                       GetCapacity "vol1"
612 #                       IgnoreSelectedCapacity false
613 #                       GetSnapshot "vol1"
614 #                       GetSnapshot "vol3"
615 #                       IgnoreSelectedSnapshot false
616 #               </VolumeUsage>
617 #
618 #               <System>
619 #                       Interval 30
620 #                       GetCPULoad     true
621 #                       GetInterfaces  true
622 #                       GetDiskOps     true
623 #                       GetDiskIO      true
624 #               </System>
625 #       </Host>
626 #</Plugin>
627
628 #<Plugin netlink>
629 #       Interface "All"
630 #       VerboseInterface "All"
631 #       QDisc "eth0" "pfifo_fast-1:0"
632 #       Class "ppp0" "htb-1:10"
633 #       Filter "ppp0" "u32-1:0"
634 #       IgnoreSelected false
635 #</Plugin>
636
637 @LOAD_PLUGIN_NETWORK@<Plugin network>
638 #       # client setup:
639 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
640 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
641 #               SecurityLevel Encrypt
642 #               Username "user"
643 #               Password "secret"
644 #               Interface "eth0"
645 @LOAD_PLUGIN_NETWORK@   </Server>
646 #       TimeToLive "128"
647 #
648 #       # server setup:
649 #       Listen "ff18::efc0:4a42" "25826"
650 #       <Listen "239.192.74.66" "25826">
651 #               SecurityLevel Sign
652 #               AuthFile "/etc/collectd/passwd"
653 #               Interface "eth0"
654 #       </Listen>
655 #       MaxPacketSize 1024
656 #
657 #       # proxy setup (client and server as above):
658 #       Forward true
659 #
660 #       # statistics about the network plugin itself
661 #       ReportStats false
662 #
663 #       # "garbage collection"
664 #       CacheFlush 1800
665 @LOAD_PLUGIN_NETWORK@</Plugin>
666
667 #<Plugin nginx>
668 #       URL "http://localhost/status?auto"
669 #       User "www-user"
670 #       Password "secret"
671 #       CACert "/etc/ssl/ca.crt"
672 #</Plugin>
673
674 #<Plugin notify_desktop>
675 #       OkayTimeout 1000
676 #       WarningTimeout 5000
677 #       FailureTimeout 0
678 #</Plugin>
679
680 #<Plugin notify_email>
681 #       SMTPServer "localhost"
682 #       SMTPPort 25
683 #       SMTPUser "my-username"
684 #       SMTPPassword "my-password"
685 #       From "collectd@main0server.com"
686 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
687 #       Subject "Aaaaaa!! %s on %s!!!!!"
688 #       Recipient "email1@domain1.net"
689 #       Recipient "email2@domain2.com"
690 #</Plugin>
691
692 #<Plugin ntpd>
693 #       Host "localhost"
694 #       Port 123
695 #       ReverseLookups false
696 #       IncludeUnitID true
697 #</Plugin>
698
699 #<Plugin nut>
700 #       UPS "upsname@hostname:port"
701 #</Plugin>
702
703 #<Plugin olsrd>
704 #       Host "127.0.0.1"
705 #       Port "2006"
706 #       CollectLinks "Summary"
707 #       CollectRoutes "Summary"
708 #       CollectTopology "Summary"
709 #</Plugin>
710
711 #<Plugin onewire>
712 #       Device "-s localhost:4304"
713 #       Sensor "F10FCA000800"
714 #       IgnoreSelected false
715 #</Plugin>
716
717 #<Plugin openvpn>
718 #       StatusFile "/etc/openvpn/openvpn-status.log"
719 #       ImprovedNamingSchema false
720 #       CollectCompression true
721 #       CollectIndividualUsers true
722 #       CollectUserCount false
723 #</Plugin>
724
725 #<Plugin oracle>
726 #  <Query "out_of_stock">
727 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
728 #    <Result>
729 #      Type "gauge"
730 #      InstancesFrom "category"
731 #      ValuesFrom "value"
732 #    </Result>
733 #  </Query>
734 #  <Database "product_information">
735 #    ConnectID "db01"
736 #    Username "oracle"
737 #    Password "secret"
738 #    Query "out_of_stock"
739 #  </Database>
740 #</Plugin>
741
742 #<Plugin perl>
743 #       IncludeDir "/my/include/path"
744 #       BaseName "Collectd::Plugins"
745 #       EnableDebugger ""
746 #       LoadPlugin Monitorus
747 #       LoadPlugin OpenVZ
748 #
749 #       <Plugin foo>
750 #               Foo "Bar"
751 #               Qux "Baz"
752 #       </Plugin>
753 #</Plugin>
754
755 #<Plugin pinba>
756 #       Address "::0"
757 #       Port "30002"
758 #       <View "name">
759 #               Host "host name"
760 #               Server "server name"
761 #               Script "script name"
762 #       </View>
763 #</Plugin>
764
765 #<Plugin ping>
766 #       Host "host.foo.bar"
767 #       Interval 1.0
768 #       Timeout 0.9
769 #       TTL 255
770 #       SourceAddress "1.2.3.4"
771 #       Device "eth0"
772 #       MaxMissed -1
773 #</Plugin>
774
775 #<Plugin postgresql>
776 #       <Query magic>
777 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
778 #               Param hostname
779 #               <Result>
780 #                       Type gauge
781 #                       InstancePrefix "magic"
782 #                       ValuesFrom magic
783 #               </Result>
784 #       </Query>
785 #       <Query rt36_tickets>
786 #               Statement "SELECT COUNT(type) AS count, type \
787 #                                 FROM (SELECT CASE \
788 #                                              WHEN resolved = 'epoch' THEN 'open' \
789 #                                              ELSE 'resolved' END AS type \
790 #                                              FROM tickets) type \
791 #                                 GROUP BY type;"
792 #               <Result>
793 #                       Type counter
794 #                       InstancePrefix "rt36_tickets"
795 #                       InstancesFrom "type"
796 #                       ValuesFrom "count"
797 #               </Result>
798 #       </Query>
799 #       <Writer sqlstore>
800 #               # See contrib/postgresql/collectd_insert.sql for details
801 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
802 #               StoreRates true
803 #       </Writer>
804 #       <Database foo>
805 #               Host "hostname"
806 #               Port "5432"
807 #               User "username"
808 #               Password "secret"
809 #               SSLMode "prefer"
810 #               KRBSrvName "kerberos_service_name"
811 #               Query magic
812 #       </Database>
813 #       <Database bar>
814 #               Interval 60
815 #               Service "service_name"
816 #               Query backend # predefined
817 #               Query rt36_tickets
818 #       </Database>
819 #       <Database qux>
820 #               Service "collectd_store"
821 #               Writer sqlstore
822 #               # see collectd.conf(5) for details
823 #               CommitInterval 30
824 #       </Database>
825 #</Plugin>
826
827 #<Plugin powerdns>
828 #  <Server "server_name">
829 #    Collect "latency"
830 #    Collect "udp-answers" "udp-queries"
831 #    Socket "/var/run/pdns.controlsocket"
832 #  </Server>
833 #  <Recursor "recursor_name">
834 #    Collect "questions"
835 #    Collect "cache-hits" "cache-misses"
836 #    Socket "/var/run/pdns_recursor.controlsocket"
837 #  </Recursor>
838 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
839 #</Plugin>
840
841 #<Plugin processes>
842 #       Process "name"
843 #</Plugin>
844
845 #<Plugin protocols>
846 #       Value "/^Tcp:/"
847 #       IgnoreSelected false
848 #</Plugin>
849
850 #<Plugin python>
851 #       ModulePath "/path/to/your/python/modules"
852 #       LogTraces true
853 #       Interactive true
854 #       Import "spam"
855 #
856 #       <Module spam>
857 #               spam "wonderful" "lovely"
858 #       </Module>
859 #</Plugin>
860
861 #<Plugin redis>
862 #   <Node example>
863 #      Host "redis.example.com"
864 #      Port "6379"
865 #      Timeout 2000
866 #   </Node>
867 #</Plugin>
868
869 #<Plugin routeros>
870 #       <Router>
871 #               Host "router.example.com"
872 #               Port "8728"
873 #               User "admin"
874 #               Password "dozaiTh4"
875 #               CollectInterface true
876 #               CollectRegistrationTable true
877 #               CollectCPULoad true
878 #               CollectMemory true
879 #               CollectDF true
880 #               CollectDisk true
881 #       </Router>
882 #</Plugin>
883
884 #<Plugin rrdcached>
885 #       DaemonAddress "unix:/tmp/rrdcached.sock"
886 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
887 #       CreateFiles true
888 #       CreateFilesAsync false
889 #       CollectStatistics true
890 #</Plugin>
891
892 #<Plugin rrdtool>
893 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
894 #       CreateFilesAsync false
895 #       CacheTimeout 120
896 #       CacheFlush   900
897 #       WritesPerSecond 50
898 #</Plugin>
899
900 #<Plugin sensors>
901 #       SensorConfigFile "/etc/sensors.conf"
902 #       Sensor "it8712-isa-0290/temperature-temp1"
903 #       Sensor "it8712-isa-0290/fanspeed-fan3"
904 #       Sensor "it8712-isa-0290/voltage-in8"
905 #       IgnoreSelected false
906 #</Plugin>
907
908 #<Plugin sigrok>
909 #  LogLevel 3
910 #  <Device "AC Voltage">
911 #    Driver "fluke-dmm"
912 #    MinimumInterval 10
913 #    Conn "/dev/ttyUSB2"
914 #  </Device>
915 #  <Device "Sound Level">
916 #    Driver "cem-dt-885x"
917 #    Conn "/dev/ttyUSB1"
918 #  </Device>
919 #</Plugin>
920
921 #<Plugin snmp>
922 #   <Data "powerplus_voltge_input">
923 #       Type "voltage"
924 #       Table false
925 #       Instance "input_line1"
926 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
927 #   </Data>
928 #   <Data "hr_users">
929 #       Type "users"
930 #       Table false
931 #       Instance ""
932 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
933 #   </Data>
934 #   <Data "std_traffic">
935 #       Type "if_octets"
936 #       Table true
937 #       Instance "IF-MIB::ifDescr"
938 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
939 #   </Data>
940 #
941 #   <Host "some.switch.mydomain.org">
942 #       Address "192.168.0.2"
943 #       Version 1
944 #       Community "community_string"
945 #       Collect "std_traffic"
946 #       Interval 120
947 #   </Host>
948 #   <Host "some.server.mydomain.org">
949 #       Address "192.168.0.42"
950 #       Version 2
951 #       Community "another_string"
952 #       Collect "std_traffic" "hr_users"
953 #   </Host>
954 #   <Host "some.ups.mydomain.org">
955 #       Address "192.168.0.3"
956 #       Version 1
957 #       Community "more_communities"
958 #       Collect "powerplus_voltge_input"
959 #       Interval 300
960 #   </Host>
961 #</Plugin>
962
963 #<Plugin statsd>
964 #  Host "::"
965 #  Port "8125"
966 #  DeleteCounters false
967 #  DeleteTimers   false
968 #  DeleteGauges   false
969 #  DeleteSets     false
970 #  TimerPercentile 90.0
971 #</Plugin>
972
973 #<Plugin "swap">
974 #       ReportByDevice false
975 #       ReportBytes true
976 #</Plugin>
977
978 #<Plugin "table">
979 #       <Table "/proc/slabinfo">
980 #               Instance "slabinfo"
981 #               Separator " "
982 #               <Result>
983 #                       Type gauge
984 #                       InstancePrefix "active_objs"
985 #                       InstancesFrom 0
986 #                       ValuesFrom 1
987 #               </Result>
988 #               <Result>
989 #                       Type gauge
990 #                       InstancePrefix "objperslab"
991 #                       InstancesFrom 0
992 #                       ValuesFrom 4
993 #               </Result>
994 #       </Table>
995 #</Plugin>
996
997 #<Plugin "tail">
998 #  <File "/var/log/exim4/mainlog">
999 #    Instance "exim"
1000 #    <Match>
1001 #      Regex "S=([1-9][0-9]*)"
1002 #      DSType "CounterAdd"
1003 #      Type "ipt_bytes"
1004 #      Instance "total"
1005 #    </Match>
1006 #    <Match>
1007 #      Regex "\\<R=local_user\\>"
1008 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1009 #      DSType "CounterInc"
1010 #      Type "counter"
1011 #      Instance "local_user"
1012 #    </Match>
1013 #  </File>
1014 #</Plugin>
1015
1016 #<Plugin "tail_csv">
1017 #   <Metric "dropped">
1018 #       Type "percent"
1019 #       Instance "dropped"
1020 #       ValueFrom 1
1021 #   </Metric>
1022 #   <Metric "mbps">
1023 #       Type "bytes"
1024 #       Instance "wire-realtime"
1025 #       ValueFrom 2
1026 #   </Metric>
1027 #   <Metric "alerts">
1028 #       Type "alerts_per_second"
1029 #       ValueFrom 3
1030 #   </Metric>
1031 #   <Metric "kpps">
1032 #       Type "kpackets_wire_per_sec.realtime"
1033 #       ValueFrom 4
1034 #   </Metric>
1035 #   <File "/var/log/snort/snort.stats">
1036 #       Instance "snort-eth0"
1037 #       Interval 600
1038 #       Collect "dropped" "mbps" "alerts" "kpps"
1039 #       TimeFrom 0
1040 #   </File>
1041 #</Plugin>
1042
1043 #<Plugin tcpconns>
1044 #       ListeningPorts false
1045 #       LocalPort "25"
1046 #       RemotePort "25"
1047 #</Plugin>
1048
1049 #<Plugin teamspeak2>
1050 #       Host "127.0.0.1"
1051 #       Port "51234"
1052 #       Server "8767"
1053 #</Plugin>
1054
1055 #<Plugin ted>
1056 #       Device "/dev/ttyUSB0"
1057 #       Retries 0
1058 #</Plugin>
1059
1060 #<Plugin thermal>
1061 #       ForceUseProcfs false
1062 #       Device "THRM"
1063 #       IgnoreSelected false
1064 #</Plugin>
1065
1066 #<Plugin tokyotyrant>
1067 #       Host "localhost"
1068 #       Port "1978"
1069 #</Plugin>
1070
1071 #<Plugin unixsock>
1072 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1073 #       SocketGroup "collectd"
1074 #       SocketPerms "0660"
1075 #       DeleteSocket false
1076 #</Plugin>
1077
1078 #<Plugin uuid>
1079 #       UUIDFile "/etc/uuid"
1080 #</Plugin>
1081
1082 #<Plugin mic>
1083 #   ShowCPU true
1084 #   ShowCPUCores true
1085 #   ShowMemory true
1086 #   ShowTemperatures true
1087 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1088 ##  then inverted with a IgnoreSelectedTemperature.
1089 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1090 #   Temperature vddg
1091 #   IgnoreSelectedTemperature true
1092 #   ShowPower true
1093 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1094 ##  then inverted with a IgnoreSelectedTemperature.
1095 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1096 #   Power total1
1097 #   IgnoreSelectedPower true
1098 #</Plugin>
1099
1100 #<Plugin varnish>
1101 #   This tag support an argument if you want to
1102 #   monitor the local instance just use </Instance>
1103 #   If you prefer defining another instance you can do
1104 #   so by using <Instance "myinstance">
1105 #   <Instance>
1106 #      CollectCache true
1107 #      CollectBackend true
1108 #      CollectBan false           # Varnish 3 only
1109 #      CollectConnections true
1110 #      CollectDirectorDNS false   # Varnish 3 only
1111 #      CollectSHM true
1112 #      CollectESI false
1113 #      CollectFetch false
1114 #      CollectHCB false
1115 #      CollectObjects false
1116 #      CollectPurge false         # Varnish 2 only
1117 #      CollectSession false
1118 #      CollectSMA false           # Varnish 2 only
1119 #      CollectSMS false
1120 #      CollectSM false            # Varnish 2 only
1121 #      CollectStruct false
1122 #      CollectTotals false
1123 #      CollectUptime false
1124 #      CollectVCL false
1125 #      CollectWorkers false
1126 #   </Instance>
1127 #</Plugin>
1128
1129 #<Plugin vmem>
1130 #       Verbose false
1131 #</Plugin>
1132
1133 #<Plugin write_graphite>
1134 #  <Node "example">
1135 #    Host "localhost"
1136 #    Port "2003"
1137 #    Protocol "tcp"
1138 #    LogSendErrors true
1139 #    Prefix "collectd"
1140 #    Postfix "collectd"
1141 #    StoreRates true
1142 #    AlwaysAppendDS false
1143 #    EscapeCharacter "_"
1144 #  </Node>
1145 #</Plugin>
1146
1147 #<Plugin write_http>
1148 #       <URL "http://example.com/collectd-post">
1149 #               User "collectd"
1150 #               Password "weCh3ik0"
1151 #               VerifyPeer true
1152 #               VerifyHost true
1153 #               CACert "/etc/ssl/ca.crt"
1154 #               Format "Command"
1155 #               StoreRates false
1156 #       </URL>
1157 #</Plugin>
1158
1159 #<Plugin write_mongodb>
1160 #       <Node "example">
1161 #               Host "localhost"
1162 #               Port "27017"
1163 #               Timeout 1000
1164 #               StoreRates false
1165 #               Database "auth_db"
1166 #               User "auth_user"
1167 #               Password "auth_passwd"
1168 #       </Node>
1169 #</Plugin>
1170
1171 #<Plugin write_redis>
1172 #       <Node "example">
1173 #               Host "localhost"
1174 #               Port "6379"
1175 #               Timeout 1000
1176 #       </Node>
1177 #</Plugin>
1178
1179 #<Plugin write_riemann>
1180 #       <Node "example">
1181 #               Host "localhost"
1182 #               Port 5555
1183 #               Protocol UDP
1184 #               StoreRates true
1185 #               AlwaysAppendDS false
1186 #               TTLFactor 2.0
1187 #       </Node>
1188 #       Tag "foobar"
1189 #</Plugin>
1190
1191 #<Plugin write_tsdb>
1192 #       <Node>
1193 #               Host "localhost"
1194 #               Port "4242"
1195 #               HostTags "status=production"
1196 #       </Node>
1197 #</Plugin>
1198
1199 ##############################################################################
1200 # Filter configuration                                                       #
1201 #----------------------------------------------------------------------------#
1202 # The following configures collectd's filtering mechanism. Before changing   #
1203 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1204 # in the collectd.conf(5) manual page.                                       #
1205 ##############################################################################
1206
1207 # Load required matches:
1208 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1209 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1210 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1211 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1212 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1213
1214 # Load required targets:
1215 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1216 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1217 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1218 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1219 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1220
1221 #----------------------------------------------------------------------------#
1222 # The following block demonstrates the default behavior if no filtering is   #
1223 # configured at all: All values will be sent to all available write plugins. #
1224 #----------------------------------------------------------------------------#
1225
1226 #<Chain "PostCache">
1227 #  Target "write"
1228 #</Chain>
1229
1230 ##############################################################################
1231 # Threshold configuration                                                    #
1232 #----------------------------------------------------------------------------#
1233 # The following outlines how to configure collectd's threshold checking      #
1234 # plugin. The plugin and possible configuration options are documented in    #
1235 # the collectd-threshold(5) manual page.                                     #
1236 ##############################################################################
1237
1238 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1239 #<Plugin "threshold">
1240 #  <Type "foo">
1241 #    WarningMin    0.00
1242 #    WarningMax 1000.00
1243 #    FailureMin    0.00
1244 #    FailureMax 1200.00
1245 #    Invert false
1246 #    Instance "bar"
1247 #  </Type>
1248 #
1249 #  <Plugin "interface">
1250 #    Instance "eth0"
1251 #    <Type "if_octets">
1252 #      FailureMax 10000000
1253 #      DataSource "rx"
1254 #    </Type>
1255 #  </Plugin>
1256 #
1257 #  <Host "hostname">
1258 #    <Type "cpu">
1259 #      Instance "idle"
1260 #      FailureMin 10
1261 #    </Type>
1262 #
1263 #    <Plugin "memory">
1264 #      <Type "memory">
1265 #        Instance "cached"
1266 #        WarningMin 100000000
1267 #      </Type>
1268 #    </Plugin>
1269 #
1270 #    <Type "load">
1271 #       DataSource "midterm"
1272 #       FailureMax 4
1273 #       Hits 3
1274 #       Hysteresis 3
1275 #    </Type>
1276 #  </Host>
1277 #</Plugin>