[ansible][fedora] Update package name
[barometer.git] / puppet-barometer / templates / collectd.conf.erb
1 # Copyright 2017 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #
16 # Config file for collectd(1).
17 # Please read collectd.conf(5) for a list of options.
18 # http://collectd.org/
19 #
20
21 ##############################################################################
22 # Global                                                                     #
23 #----------------------------------------------------------------------------#
24 # Global settings for the daemon.                                            #
25 ##############################################################################
26
27 #Hostname    "localhost"
28 #FQDNLookup   true
29 #BaseDir     "/var/lib/collectd"
30 #PIDFile     "/var/run/collectd.pid"
31 #PluginDir   "/usr/lib64/collectd"
32 #TypesDB     "/usr/share/collectd/types.db"
33
34 #----------------------------------------------------------------------------#
35 # When enabled, plugins are loaded automatically with the default options    #
36 # when an appropriate <Plugin ...> block is encountered.                     #
37 # Disabled by default.                                                       #
38 #----------------------------------------------------------------------------#
39 #AutoLoadPlugin false
40
41 #----------------------------------------------------------------------------#
42 # When enabled, internal statistics are collected, using "collectd" as the   #
43 # plugin name.                                                               #
44 # Disabled by default.                                                       #
45 #----------------------------------------------------------------------------#
46 #CollectInternalStats false
47
48 #----------------------------------------------------------------------------#
49 # Interval at which to query values. This may be overwritten on a per-plugin #
50 # base by using the 'Interval' option of the LoadPlugin block:               #
51 #   <LoadPlugin foo>                                                         #
52 #       Interval 60                                                          #
53 #   </LoadPlugin>                                                            #
54 #----------------------------------------------------------------------------#
55 #Interval     10
56
57 #MaxReadInterval 86400
58 #Timeout         2
59 #ReadThreads     5
60 #WriteThreads    5
61
62 # Limit the size of the write queue. Default is no limit. Setting up a limit is
63 # recommended for servers handling a high volume of traffic.
64 #WriteQueueLimitHigh 1000000
65 #WriteQueueLimitLow   800000
66
67 ##############################################################################
68 # Logging                                                                    #
69 #----------------------------------------------------------------------------#
70 # Plugins which provide logging functions should be loaded first, so log     #
71 # messages generated when loading or configuring other plugins can be        #
72 # accessed.                                                                  #
73 ##############################################################################
74
75 LoadPlugin syslog
76 #LoadPlugin logfile
77 #LoadPlugin log_logstash
78
79 #<Plugin logfile>
80 #       LogLevel info
81 #       File STDOUT
82 #       Timestamp true
83 #       PrintSeverity false
84 #</Plugin>
85
86 #<Plugin log_logstash>
87 #       LogLevel info
88 #       File "/var/log/collectd.json.log"
89 #</Plugin>
90
91 #<Plugin syslog>
92 #       LogLevel info
93 #</Plugin>
94
95 ##############################################################################
96 # LoadPlugin section                                                         #
97 #----------------------------------------------------------------------------#
98 # Lines beginning with a single `#' belong to plugins which have been built  #
99 # but are disabled by default.                                               #
100 #                                                                            #
101 # Lines beginning with `##' belong to plugins which have not been built due  #
102 # to missing dependencies or because they have been deactivated explicitly.  #
103 ##############################################################################
104
105 #LoadPlugin aggregation
106 #LoadPlugin amqp
107 #LoadPlugin apache
108 #LoadPlugin apcups
109 ##LoadPlugin apple_sensors
110 ##LoadPlugin aquaero
111 #LoadPlugin ascent
112 ##LoadPlugin barometer
113 #LoadPlugin battery
114 #LoadPlugin bind
115 #LoadPlugin ceph
116 #LoadPlugin cgroups
117 #LoadPlugin chrony
118 #LoadPlugin conntrack
119 #LoadPlugin contextswitch
120 LoadPlugin cpu
121 #LoadPlugin cpufreq
122 #LoadPlugin cpusleep
123 #LoadPlugin csv
124 #LoadPlugin curl
125 #LoadPlugin curl_json
126 #LoadPlugin curl_xml
127 #LoadPlugin dbi
128 #LoadPlugin df
129 #LoadPlugin disk
130 #LoadPlugin dns
131 ##LoadPlugin dpdkevents
132 ##LoadPlugin dpdkstat
133 #LoadPlugin drbd
134 #LoadPlugin email
135 #LoadPlugin entropy
136 #LoadPlugin ethstat
137 #LoadPlugin exec
138 #LoadPlugin fhcount
139 #LoadPlugin filecount
140 #LoadPlugin fscache
141 #LoadPlugin gmond
142 #LoadPlugin gps
143 ##LoadPlugin grpc
144 #LoadPlugin hddtemp
145 #LoadPlugin hugepages
146 #LoadPlugin intel_rdt
147 LoadPlugin interface
148 #LoadPlugin ipc
149 #LoadPlugin ipmi
150 #LoadPlugin iptables
151 #LoadPlugin ipvs
152 #LoadPlugin irq
153 #LoadPlugin java
154 LoadPlugin load
155 ##LoadPlugin lpar
156 #LoadPlugin lua
157 #LoadPlugin lvm
158 #LoadPlugin madwifi
159 #LoadPlugin mbmon
160 #LoadPlugin mcelog
161 #LoadPlugin md
162 #LoadPlugin memcachec
163 #LoadPlugin memcached
164 LoadPlugin memory
165 ##LoadPlugin mic
166 #LoadPlugin modbus
167 #LoadPlugin mqtt
168 #LoadPlugin multimeter
169 #LoadPlugin mysql
170 ##LoadPlugin netapp
171 #LoadPlugin netlink
172 #LoadPlugin network
173 #LoadPlugin nfs
174 #LoadPlugin nginx
175 #LoadPlugin notify_desktop
176 #LoadPlugin notify_email
177 #LoadPlugin notify_nagios
178 #LoadPlugin ntpd
179 #LoadPlugin numa
180 #LoadPlugin nut
181 #LoadPlugin olsrd
182 ##LoadPlugin onewire
183 #LoadPlugin openldap
184 #LoadPlugin openvpn
185 ##LoadPlugin oracle
186 #LoadPlugin ovs_events
187 #LoadPlugin ovs_stats
188 #LoadPlugin perl
189 #LoadPlugin pinba
190 #LoadPlugin ping
191 #LoadPlugin postgresql
192 #LoadPlugin powerdns
193 #LoadPlugin processes
194 #LoadPlugin protocols
195 LoadPlugin python
196 #LoadPlugin redis
197 ##LoadPlugin routeros
198 #LoadPlugin rrdcached
199 #LoadPlugin rrdtool
200 #LoadPlugin sensors
201 #LoadPlugin serial
202 ##LoadPlugin sigrok
203 #LoadPlugin smart
204 #LoadPlugin snmp
205 #LoadPlugin statsd
206 #LoadPlugin swap
207 #LoadPlugin table
208 #LoadPlugin tail
209 #LoadPlugin tail_csv
210 ##LoadPlugin tape
211 #LoadPlugin tcpconns
212 #LoadPlugin teamspeak2
213 #LoadPlugin ted
214 #LoadPlugin thermal
215 ##LoadPlugin tokyotyrant
216 #LoadPlugin turbostat
217 #LoadPlugin unixsock
218 #LoadPlugin uptime
219 #LoadPlugin users
220 #LoadPlugin uuid
221 #LoadPlugin varnish
222 #LoadPlugin virt
223 #LoadPlugin vmem
224 #LoadPlugin vserver
225 #LoadPlugin wireless
226 #LoadPlugin write_graphite
227 #LoadPlugin write_http
228 ##LoadPlugin write_kafka
229 #LoadPlugin write_log
230 ##LoadPlugin write_mongodb
231 #LoadPlugin write_prometheus
232 #LoadPlugin write_redis
233 #LoadPlugin write_riemann
234 #LoadPlugin write_sensu
235 #LoadPlugin write_tsdb
236 ##LoadPlugin xencpu
237 ##LoadPlugin xmms
238 #LoadPlugin zfs_arc
239 ##LoadPlugin zone
240 #LoadPlugin zookeeper
241
242 ##############################################################################
243 # Plugin configuration                                                       #
244 #----------------------------------------------------------------------------#
245 # In this section configuration stubs for each plugin are provided. A desc-  #
246 # ription of those options is available in the collectd.conf(5) manual page. #
247 ##############################################################################
248
249 #<Plugin aggregation>
250 #  <Aggregation>
251 #    #Host "unspecified"
252 #    Plugin "cpu"
253 #    #PluginInstance "unspecified"
254 #    Type "cpu"
255 #    #TypeInstance "unspecified"
256 #
257 #    GroupBy "Host"
258 #    GroupBy "TypeInstance"
259 #
260 #    CalculateNum false
261 #    CalculateSum false
262 #    CalculateAverage true
263 #    CalculateMinimum false
264 #    CalculateMaximum false
265 #    CalculateStddev false
266 #  </Aggregation>
267 #</Plugin>
268
269 #<Plugin amqp>
270 #  <Publish "name">
271 #    Host "localhost"
272 #    Port "5672"
273 #    VHost "/"
274 #    User "guest"
275 #    Password "guest"
276 #    Exchange "amq.fanout"
277 #    RoutingKey "collectd"
278 #    Persistent false
279 #    StoreRates false
280 #    ConnectionRetryDelay 0
281 #  </Publish>
282 #</Plugin>
283
284 #<Plugin apache>
285 #  <Instance "local">
286 #    URL "http://localhost/status?auto"
287 #    User "www-user"
288 #    Password "secret"
289 #    CACert "/etc/ssl/ca.crt"
290 #  </Instance>
291 #</Plugin>
292
293 #<Plugin apcups>
294 #       Host "localhost"
295 #       Port "3551"
296 #       ReportSeconds true
297 #       PersistentConnection true
298 #</Plugin>
299
300 #<Plugin aquaero>
301 #       Device ""
302 #</Plugin>
303
304 #<Plugin ascent>
305 #       URL "http://localhost/ascent/status/"
306 #       User "www-user"
307 #       Password "secret"
308 #       CACert "/etc/ssl/ca.crt"
309 #</Plugin>
310
311 #<Plugin "barometer">
312 #   Device            "/dev/i2c-0";
313 #   Oversampling      512
314 #   PressureOffset    0.0
315 #   TemperatureOffset 0.0
316 #   Normalization     2
317 #   Altitude          238.0
318 #   TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
319 #</Plugin>
320
321 #<Plugin "battery">
322 #  ValuesPercentage false
323 #  ReportDegraded false
324 #  QueryStateFS false
325 #</Plugin>
326
327 #<Plugin "bind">
328 #  URL "http://localhost:8053/"
329 #  ParseTime       false
330 #  OpCodes         true
331 #  QTypes          true
332 #
333 #  ServerStats     true
334 #  ZoneMaintStats  true
335 #  ResolverStats   false
336 #  MemoryStats     true
337 #
338 #  <View "_default">
339 #    QTypes        true
340 #    ResolverStats true
341 #    CacheRRSets   true
342 #
343 #    Zone "127.in-addr.arpa/IN"
344 #  </View>
345 #</Plugin>
346
347 #<Plugin ceph>
348 #  LongRunAvgLatency false
349 #  ConvertSpecialMetricTypes true
350 #  <Daemon "osd.0">
351 #    SocketPath "/var/run/ceph/ceph-osd.0.asok"
352 #  </Daemon>
353 #  <Daemon "osd.1">
354 #    SocketPath "/var/run/ceph/ceph-osd.1.asok"
355 #  </Daemon>
356 #  <Daemon "mon.a">
357 #    SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
358 #  </Daemon>
359 #  <Daemon "mds.a">
360 #    SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
361 #  </Daemon>
362 #</Plugin>
363
364 #<Plugin chrony>
365 #       Host    "localhost"
366 #       Port    "323"
367 #       Timeout "2"
368 #</Plugin>
369
370 #<Plugin cgroups>
371 #  CGroup "libvirt"
372 #  IgnoreSelected false
373 #</Plugin>
374
375 #<Plugin cpu>
376 #  ReportByCpu true
377 #  ReportByState true
378 #  ValuesPercentage false
379 #</Plugin>
380 #
381 #<Plugin csv>
382 #       DataDir "/var/lib/collectd/csv"
383 #       StoreRates false
384 #</Plugin>
385
386 #<Plugin curl>
387 #  <Page "stock_quotes">
388 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
389 #    User "foo"
390 #    Password "bar"
391 #    Digest false
392 #    VerifyPeer true
393 #    VerifyHost true
394 #    CACert "/path/to/ca.crt"
395 #    Header "X-Custom-Header: foobar"
396 #    Post "foo=bar"
397 #
398 #    MeasureResponseTime false
399 #    MeasureResponseCode false
400 #    <Match>
401 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
402 #      DSType "GaugeAverage"
403 #      Type "stock_value"
404 #      Instance "AMD"
405 #    </Match>
406 #  </Page>
407 #</Plugin>
408
409 #<Plugin curl_json>
410 #  <URL "http://localhost:80/test.json">
411 #    Instance "test_http_json"
412 #    <Key "testArray/0">
413 #      Type "gauge"
414 #      # Expect: 1
415 #    </Key>
416 #    <Key "testArray/1">
417 #      Type "gauge"
418 #      # Expect: 2
419 #    </Key>
420 #    <Key "testArrayInbetween/0/blarg">
421 #      Type "gauge"
422 #      # Expect: 3
423 #    </Key>
424 #    <Key "testArrayInbetween/1/blub">
425 #      Type "gauge"
426 #      # Expect: 4
427 #    </Key>
428 #    <Key "testDirectHit">
429 #      Type "gauge"
430 #      # Expect: 5
431 #    </Key>
432 #    <Key "testSubLevelHit/oneMoreLevel">
433 #      Type "gauge"
434 #      # Expect: 6
435 #    </Key>
436 #  </URL>
437 # put this as test.json on your webserver, the above config demonstraces
438 # how to match them.
439 # {
440 #  "testArray":[1,2],
441 #  "testArrayInbetween":[{"blarg":3},{"blub":4}],
442 #  "testDirectHit":5,
443 #  "testSubLevelHit":{"oneMoreLevel":6}
444 # }
445 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
446 #  <URL "http://localhost:5984/_stats">
447 #    Instance "httpd"
448 #    <Key "httpd/requests/count">
449 #      Type "http_requests"
450 #    </Key>
451 #
452 #    <Key "httpd_request_methods/*/count">
453 #      Type "http_request_methods"
454 #    </Key>
455 #
456 #    <Key "httpd_status_codes/*/count">
457 #      Type "http_response_codes"
458 #    </Key>
459 #  </URL>
460 ## Database status metrics:
461 #  <URL "http://localhost:5984/_all_dbs">
462 #    Instance "dbs"
463 #    <Key "*/doc_count">
464 #      Type "gauge"
465 #    </Key>
466 #    <Key "*/doc_del_count">
467 #      Type "counter"
468 #    </Key>
469 #    <Key "*/disk_size">
470 #      Type "bytes"
471 #    </Key>
472 #  </URL>
473 #</Plugin>
474
475 #<Plugin curl_xml>
476 #  <URL "http://localhost/stats.xml">
477 #    Host "my_host"
478 #    Instance "some_instance"
479 #    User "collectd"
480 #    Password "thaiNg0I"
481 #    Digest false
482 #    VerifyPeer true
483 #    VerifyHost true
484 #    CACert "/path/to/ca.crt"
485 #    Header "X-Custom-Header: foobar"
486 #    Post "foo=bar"
487 #
488 #    <XPath "table[@id=\"magic_level\"]/tr">
489 #      Type "magic_level"
490 #      #InstancePrefix "prefix-"
491 #      InstanceFrom "td[1]"
492 #      ValuesFrom "td[2]/span[@class=\"level\"]"
493 #    </XPath>
494 #  </URL>
495 #</Plugin>
496
497 #<Plugin dbi>
498 #       <Query "num_of_customers">
499 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
500 #               <Result>
501 #                       Type "gauge"
502 #                       InstancesFrom "c_key"
503 #                       ValuesFrom "c_value"
504 #               </Result>
505 #       </Query>
506 #       <Database "customers_db">
507 #               Driver "mysql"
508 #               DriverOption "host" "localhost"
509 #               DriverOption "username" "collectd"
510 #               DriverOption "password" "AeXohy0O"
511 #               DriverOption "dbname" "custdb0"
512 #               #SelectDB "custdb0"
513 #               Query "num_of_customers"
514 #               #Query "..."
515 #               #Host "..."
516 #       </Database>
517 #</Plugin>
518
519 #<Plugin df>
520 #       Device "/dev/hda1"
521 #       Device "192.168.0.2:/mnt/nfs"
522 #       MountPoint "/home"
523 #       FSType "ext3"
524 #       IgnoreSelected false
525 #       ReportByDevice false
526 #       ReportInodes false
527 #       ValuesAbsolute true
528 #       ValuesPercentage false
529 #</Plugin>
530
531 #<Plugin disk>
532 #       Disk "/^[hs]d[a-f][0-9]?$/"
533 #       IgnoreSelected false
534 #       UseBSDName false
535 #       UdevNameAttr "DEVNAME"
536 #</Plugin>
537
538 #<Plugin dns>
539 #       Interface "eth0"
540 #       IgnoreSource "192.168.0.1"
541 #       SelectNumericQueryTypes true
542 #</Plugin>
543
544 #<Plugin "dpdkevents">
545 #  <EAL>
546 #    Coremask "0x1"
547 #    MemoryChannels "4"
548 #    ProcessType "secondary"
549 #    FilePrefix "rte"
550 #  </EAL>
551 #  <Event "link_status">
552 #    SendEventsOnUpdate true
553 #    EnabledPortMask 0xffff
554 #    PortName "interface1"
555 #    PortName "interface2"
556 #    SendNotification false
557 #  </Event>
558 #  <Event "keep_alive">
559 #    SendEventsOnUpdate true
560 #    LCoreMask "0xf"
561 #    KeepAliveShmName "/dpdk_keepalive_shm_name"
562 #    SendNotification false
563 #  </Event>
564 #</Plugin>
565
566 #<Plugin dpdkstat>
567 #  <EAL>
568 #    Coremask "0x2"
569 #    MemoryChannels "4"
570 #    ProcessType "secondary"
571 #    FilePrefix "rte"
572 #  </EAL>
573 #  SharedMemObj "dpdk_collectd_stats_0"
574 #  EnabledPortMask 0xffff
575 #  PortName "interface1"
576 #  PortName "interface2"
577 #</Plugin>
578
579 #<Plugin email>
580 #       SocketFile "/var/run/collectd-email"
581 #       SocketGroup "collectd"
582 #       SocketPerms "0770"
583 #       MaxConns 5
584 #</Plugin>
585
586 #<Plugin ethstat>
587 #       Interface "eth0"
588 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
589 #       Map "multicast" "if_multicast"
590 #       MappedOnly false
591 #</Plugin>
592
593 #<Plugin exec>
594 #       Exec "user:group" "/path/to/exec"
595 #       NotificationExec "user:group" "/path/to/exec"
596 #</Plugin>
597
598 #<Plugin fhcount>
599 #       ValuesAbsolute true
600 #       ValuesPercentage false
601 #</Plugin>
602
603 #<Plugin filecount>
604 #       <Directory "/path/to/dir">
605 #               Instance "foodir"
606 #               Name "*.conf"
607 #               MTime "-5m"
608 #               Size "+10k"
609 #               Recursive true
610 #               IncludeHidden false
611 #       </Directory>
612 #</Plugin>
613
614 #<Plugin gmond>
615 #  MCReceiveFrom "239.2.11.71" "8649"
616 #  <Metric "swap_total">
617 #    Type "swap"
618 #    TypeInstance "total"
619 #    DataSource "value"
620 #  </Metric>
621 #  <Metric "swap_free">
622 #    Type "swap"
623 #    TypeInstance "free"
624 #    DataSource "value"
625 #  </Metric>
626 #</Plugin>
627
628 #<Plugin gps>
629 #  Host "127.0.0.1"
630 #  Port "2947"
631 #  Timeout 0.015
632 #  PauseConnect 5
633 #</Plugin>
634
635 #<Plugin grpc>
636 #       <Server "example.com" "50051">
637 #               EnableSSL true
638 #               SSLCACertificateFile "/path/to/root.pem"
639 #               SSLCertificateFile "/path/to/server.pem"
640 #               SSLCertificateKeyFile "/path/to/server.key"
641 #       </Server>
642 #       <Listen "0.0.0.0" "50051">
643 #               EnableSSL true
644 #               SSLCACertificateFile "/path/to/root.pem"
645 #               SSLCertificateFile "/path/to/client.pem"
646 #               SSLCertificateKeyFile "/path/to/client.key"
647 #       </Listen>
648 #</Plugin>
649
650 #<Plugin hddtemp>
651 #  Host "127.0.0.1"
652 #  Port "7634"
653 #</Plugin>
654
655 #<Plugin hugepages>
656 #    ReportPerNodeHP  true
657 #    ReportRootHP     true
658 #    ValuesPages      true
659 #    ValuesBytes      false
660 #    ValuesPercentage false
661 #</Plugin>
662
663 #<Plugin "intel_rdt">
664 #  Cores "0-2"
665 #</Plugin>
666
667 #<Plugin interface>
668 #       Interface "eth0"
669 #       IgnoreSelected false
670 #       ReportInactive true
671 #       UniqueName false
672 #</Plugin>
673
674 #<Plugin ipmi>
675 #       Sensor "some_sensor"
676 #       Sensor "another_one"
677 #       IgnoreSelected false
678 #       NotifySensorAdd false
679 #       NotifySensorRemove true
680 #       NotifySensorNotPresent false
681 #</Plugin>
682
683 #<Plugin iptables>
684 #       Chain table chain
685 #       Chain6 table chain
686 #</Plugin>
687
688 #<Plugin irq>
689 #       Irq 7
690 #       Irq 8
691 #       Irq 9
692 #       IgnoreSelected true
693 #</Plugin>
694
695 #<Plugin java>
696 #       JVMArg "-verbose:jni"
697 #       JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
698 #
699 #       LoadPlugin "org.collectd.java.Foobar"
700 #       <Plugin "org.collectd.java.Foobar">
701 #         # To be parsed by the plugin
702 #       </Plugin>
703 #</Plugin>
704
705 #<Plugin load>
706 #        ReportRelative true
707 #</Plugin>
708
709 #<Plugin lpar>
710 #       CpuPoolStats   false
711 #       ReportBySerial false
712 #</Plugin>
713
714 #<Plugin lua>
715 #       BasePath "/usr/share/collectd/lua"
716 #       Script "script1.lua"
717 #       Script "script2.lua"
718 #</Plugin>
719
720 #<Plugin madwifi>
721 #       Interface "wlan0"
722 #       IgnoreSelected false
723 #       Source "SysFS"
724 #       WatchSet "None"
725 #       WatchAdd "node_octets"
726 #       WatchAdd "node_rssi"
727 #       WatchAdd "is_rx_acl"
728 #       WatchAdd "is_scan_active"
729 #</Plugin>
730
731 #<Plugin mbmon>
732 #       Host "127.0.0.1"
733 #       Port "411"
734 #</Plugin>
735
736 #<Plugin mcelog>
737 #       McelogClientSocket "/var/run/mcelog-client"
738 #       McelogLogfile "/var/log/mcelog"
739 #</Plugin>
740
741 #<Plugin md>
742 #       Device "/dev/md0"
743 #       IgnoreSelected false
744 #</Plugin>
745
746 #<Plugin memcachec>
747 #       <Page "plugin_instance">
748 #               Server "localhost"
749 #               Key "page_key"
750 #               <Match>
751 #                       Regex "(\\d+) bytes sent"
752 #                       ExcludeRegex "<lines to be excluded>"
753 #                       DSType CounterAdd
754 #                       Type "ipt_octets"
755 #                       Instance "type_instance"
756 #               </Match>
757 #       </Page>
758 #</Plugin>
759
760 #<Plugin memcached>
761 #       <Instance "local">
762 #               #Host "memcache.example.com"
763 #               Address "127.0.0.1"
764 #               Port "11211"
765 #       </Instance>
766 #</Plugin>
767
768 #<Plugin memory>
769 #       ValuesAbsolute true
770 #       ValuesPercentage false
771 #</Plugin>
772
773 #<Plugin modbus>
774 #       <Data "data_name">
775 #               RegisterBase 1234
776 #               RegisterCmd ReadHolding
777 #               RegisterType float
778 #               Type gauge
779 #               Instance "..."
780 #       </Data>
781 #
782 #       <Host "name">
783 #               Address "addr"
784 #               Port "1234"
785 #               Interval 60
786 #
787 #               <Slave 1>
788 #                       Instance "foobar" # optional
789 #                       Collect "data_name"
790 #               </Slave>
791 #       </Host>
792 #</Plugin>
793
794 #<Plugin mqtt>
795 #       <Publish "name">
796 #               Host "localhost"
797 #               Port 1883
798 #               ClientId "localhost"
799 #               User "user"
800 #               Password "secret"
801 #               QoS 0
802 #               Prefix "collectd"
803 #               StoreRates true
804 #               Retain false
805 #               CACert "/etc/ssl/ca.crt"
806 #               CertificateFile "/etc/ssl/client.crt"
807 #               CertificateKeyFile "/etc/ssl/client.pem"
808 #               TLSProtocol "tlsv1.2"
809 #               CipherSuite "ciphers"
810 #       </Publish>
811 #       <Subscribe "name">
812 #               Host "localhost"
813 #               Port 1883
814 #               ClientId "localhost"
815 #               User "user"
816 #               Password "secret"
817 #               QoS 2
818 #               Topic "collectd/#"
819 #               CleanSession true
820 #       </Subscribe>
821 #</Plugin>
822
823 #<Plugin mysql>
824 #       <Database db_name>
825 #               Host "database.serv.er"
826 #               User "db_user"
827 #               Password "secret"
828 #               Database "db_name"
829 #               SSLKey "/path/to/key.pem"
830 #               SSLCert "/path/to/cert.pem"
831 #               SSLCA "/path/to/ca.pem"
832 #               SSLCAPath "/path/to/cas/"
833 #               SSLCipher "DHE-RSA-AES256-SHA"
834 #               MasterStats true
835 #               ConnectTimeout 10
836 #               InnodbStats true
837 #       </Database>
838 #
839 #       <Database db_name2>
840 #               Alias "squeeze"
841 #               Host "localhost"
842 #               Socket "/var/run/mysql/mysqld.sock"
843 #               SlaveStats true
844 #               SlaveNotifications true
845 #       </Database>
846 #       <Database galera>
847 #               Alias "galera"
848 #               Host "localhost"
849 #               Socket "/var/run/mysql/mysqld.sock"
850 #               WsrepStats true
851 #       </Database>
852 #</Plugin>
853
854 #<Plugin netapp>
855 #       <Host "netapp1.example.com">
856 #               Protocol      "https"
857 #               Address       "10.0.0.1"
858 #               Port          443
859 #               User          "username"
860 #               Password      "aef4Aebe"
861 #               Interval      30
862 #
863 #               <WAFL>
864 #                       Interval 30
865 #                       GetNameCache   true
866 #                       GetDirCache    true
867 #                       GetBufferCache true
868 #                       GetInodeCache  true
869 #               </WAFL>
870 #
871 #               <Disks>
872 #                       Interval 30
873 #                       GetBusy true
874 #               </Disks>
875 #
876 #               <VolumePerf>
877 #                       Interval 30
878 #                       GetIO      "volume0"
879 #                       IgnoreSelectedIO      false
880 #                       GetOps     "volume0"
881 #                       IgnoreSelectedOps     false
882 #                       GetLatency "volume0"
883 #                       IgnoreSelectedLatency false
884 #               </VolumePerf>
885 #
886 #               <VolumeUsage>
887 #                       Interval 30
888 #                       GetCapacity "vol0"
889 #                       GetCapacity "vol1"
890 #                       IgnoreSelectedCapacity false
891 #                       GetSnapshot "vol1"
892 #                       GetSnapshot "vol3"
893 #                       IgnoreSelectedSnapshot false
894 #               </VolumeUsage>
895 #
896 #               <System>
897 #                       Interval 30
898 #                       GetCPULoad     true
899 #                       GetInterfaces  true
900 #                       GetDiskOps     true
901 #                       GetDiskIO      true
902 #               </System>
903 #       </Host>
904 #</Plugin>
905
906 #<Plugin netlink>
907 #       Interface "All"
908 #       VerboseInterface "All"
909 #       QDisc "eth0" "pfifo_fast-1:0"
910 #       Class "ppp0" "htb-1:10"
911 #       Filter "ppp0" "u32-1:0"
912 #       IgnoreSelected false
913 #</Plugin>
914
915 #<Plugin network>
916 #       # client setup:
917 #       Server "ff18::efc0:4a42" "25826"
918 #       <Server "239.192.74.66" "25826">
919 #               SecurityLevel Encrypt
920 #               Username "user"
921 #               Password "secret"
922 #               Interface "eth0"
923 #               ResolveInterval 14400
924 #       </Server>
925 #       TimeToLive 128
926 #
927 #       # server setup:
928 #       Listen "ff18::efc0:4a42" "25826"
929 #       <Listen "239.192.74.66" "25826">
930 #               SecurityLevel Sign
931 #               AuthFile "/etc/collectd/passwd"
932 #               Interface "eth0"
933 #       </Listen>
934 #       MaxPacketSize 1452
935 #
936 #       # proxy setup (client and server as above):
937 #       Forward true
938 #
939 #       # statistics about the network plugin itself
940 #       ReportStats false
941 #
942 #       # "garbage collection"
943 #       CacheFlush 1800
944 #</Plugin>
945
946 #<Plugin nginx>
947 #       URL "http://localhost/status?auto"
948 #       User "www-user"
949 #       Password "secret"
950 #       CACert "/etc/ssl/ca.crt"
951 #</Plugin>
952
953 #<Plugin notify_desktop>
954 #       OkayTimeout 1000
955 #       WarningTimeout 5000
956 #       FailureTimeout 0
957 #</Plugin>
958
959 #<Plugin notify_email>
960 #       SMTPServer "localhost"
961 #       SMTPPort 25
962 #       SMTPUser "my-username"
963 #       SMTPPassword "my-password"
964 #       From "collectd@main0server.com"
965 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
966 #       Subject "Aaaaaa!! %s on %s!!!!!"
967 #       Recipient "email1@domain1.net"
968 #       Recipient "email2@domain2.com"
969 #</Plugin>
970
971 #<Plugin notify_nagios>
972 #       CommandFile "/usr/local/nagios/var/rw/nagios.cmd"
973 #</Plugin>
974
975 #<Plugin ntpd>
976 #       Host "localhost"
977 #       Port 123
978 #       ReverseLookups false
979 #       IncludeUnitID true
980 #</Plugin>
981
982 #<Plugin nut>
983 #       UPS "upsname@hostname:port"
984 #       ForceSSL true
985 #       VerifyPeer true
986 #       CAPath "/path/to/folder"
987 #</Plugin>
988
989 #<Plugin olsrd>
990 #       Host "127.0.0.1"
991 #       Port "2006"
992 #       CollectLinks "Summary"
993 #       CollectRoutes "Summary"
994 #       CollectTopology "Summary"
995 #</Plugin>
996
997 #<Plugin onewire>
998 #       Device "-s localhost:4304"
999 #       Sensor "F10FCA000800"
1000 #       IgnoreSelected false
1001 #</Plugin>
1002
1003 #<Plugin openldap>
1004 #  <Instance "localhost">
1005 #    URL "ldap://localhost:389"
1006 #    StartTLS false
1007 #    VerifyHost true
1008 #    CACert "/path/to/ca.crt"
1009 #    Timeout -1
1010 #    Version 3
1011 #  </Instance>
1012 #</Plugin>
1013
1014 #<Plugin openvpn>
1015 #       StatusFile "/etc/openvpn/openvpn-status.log"
1016 #       ImprovedNamingSchema false
1017 #       CollectCompression true
1018 #       CollectIndividualUsers true
1019 #       CollectUserCount false
1020 #</Plugin>
1021
1022 #<Plugin oracle>
1023 #  <Query "out_of_stock">
1024 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
1025 #    <Result>
1026 #      Type "gauge"
1027 #      InstancesFrom "category"
1028 #      ValuesFrom "value"
1029 #    </Result>
1030 #  </Query>
1031 #  <Database "product_information">
1032 #    ConnectID "db01"
1033 #    Username "oracle"
1034 #    Password "secret"
1035 #    Query "out_of_stock"
1036 #  </Database>
1037 #</Plugin>
1038
1039 #<Plugin ovs_events>
1040 #  Port "6640"
1041 #  Address "127.0.0.1"
1042 #  Socket "/var/run/openvswitch/db.sock"
1043 #  Interfaces "br0" "veth0"
1044 #  SendNotification true
1045 #  DispatchValues false
1046 #</Plugin>
1047
1048 #<Plugin ovs_stats>
1049 #  Port "6640"
1050 #  Address "127.0.0.1"
1051 #  Socket "/var/run/openvswitch/db.sock"
1052 #  Bridges "br0" "br_ext"
1053 #</Plugin>
1054
1055 #<Plugin perl>
1056 #       IncludeDir "/my/include/path"
1057 #       BaseName "Collectd::Plugins"
1058 #       EnableDebugger ""
1059 #       LoadPlugin Monitorus
1060 #       LoadPlugin OpenVZ
1061 #
1062 #       <Plugin foo>
1063 #               Foo "Bar"
1064 #               Qux "Baz"
1065 #       </Plugin>
1066 #</Plugin>
1067
1068 #<Plugin pinba>
1069 #       Address "::0"
1070 #       Port "30002"
1071 #       <View "name">
1072 #               Host "host name"
1073 #               Server "server name"
1074 #               Script "script name"
1075 #       </View>
1076 #</Plugin>
1077
1078 #<Plugin ping>
1079 #       Host "host.foo.bar"
1080 #       Interval 1.0
1081 #       Timeout 0.9
1082 #       TTL 255
1083 #       SourceAddress "1.2.3.4"
1084 #       Device "eth0"
1085 #       MaxMissed -1
1086 #</Plugin>
1087
1088 #<Plugin postgresql>
1089 #       <Query magic>
1090 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
1091 #               Param hostname
1092 #               <Result>
1093 #                       Type gauge
1094 #                       InstancePrefix "magic"
1095 #                       ValuesFrom magic
1096 #               </Result>
1097 #       </Query>
1098 #       <Query rt36_tickets>
1099 #               Statement "SELECT COUNT(type) AS count, type \
1100 #                                 FROM (SELECT CASE \
1101 #                                              WHEN resolved = 'epoch' THEN 'open' \
1102 #                                              ELSE 'resolved' END AS type \
1103 #                                              FROM tickets) type \
1104 #                                 GROUP BY type;"
1105 #               <Result>
1106 #                       Type counter
1107 #                       InstancePrefix "rt36_tickets"
1108 #                       InstancesFrom "type"
1109 #                       ValuesFrom "count"
1110 #               </Result>
1111 #       </Query>
1112 #       <Writer sqlstore>
1113 #               # See contrib/postgresql/collectd_insert.sql for details
1114 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
1115 #               StoreRates true
1116 #       </Writer>
1117 #       <Database foo>
1118 #               Host "hostname"
1119 #               Port "5432"
1120 #               User "username"
1121 #               Password "secret"
1122 #               SSLMode "prefer"
1123 #               KRBSrvName "kerberos_service_name"
1124 #               Query magic
1125 #       </Database>
1126 #       <Database bar>
1127 #               Interval 60
1128 #               Service "service_name"
1129 #               Query backend # predefined
1130 #               Query rt36_tickets
1131 #       </Database>
1132 #       <Database qux>
1133 #               Service "collectd_store"
1134 #               Writer sqlstore
1135 #               # see collectd.conf(5) for details
1136 #               CommitInterval 30
1137 #       </Database>
1138 #</Plugin>
1139
1140 #<Plugin powerdns>
1141 #  <Server "server_name">
1142 #    Collect "latency"
1143 #    Collect "udp-answers" "udp-queries"
1144 #    Socket "/var/run/pdns.controlsocket"
1145 #  </Server>
1146 #  <Recursor "recursor_name">
1147 #    Collect "questions"
1148 #    Collect "cache-hits" "cache-misses"
1149 #    Socket "/var/run/pdns_recursor.controlsocket"
1150 #  </Recursor>
1151 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1152 #</Plugin>
1153
1154 #<Plugin processes>
1155 #       Process "name"
1156 #</Plugin>
1157
1158 #<Plugin protocols>
1159 #       Value "/^Tcp:/"
1160 #       IgnoreSelected false
1161 #</Plugin>
1162
1163 #<Plugin python>
1164 #       ModulePath "/path/to/your/python/modules"
1165 #       LogTraces true
1166 #       Interactive true
1167 #       Import "spam"
1168 #
1169 #       <Module spam>
1170 #               spam "wonderful" "lovely"
1171 #       </Module>
1172 #</Plugin>
1173
1174 #<Plugin redis>
1175 #   <Node example>
1176 #      Host "redis.example.com"
1177 #      Port "6379"
1178 #      Timeout 2000
1179 #   </Node>
1180 #</Plugin>
1181
1182 #<Plugin routeros>
1183 #       <Router>
1184 #               Host "router.example.com"
1185 #               Port "8728"
1186 #               User "admin"
1187 #               Password "dozaiTh4"
1188 #               CollectInterface true
1189 #               CollectRegistrationTable true
1190 #               CollectCPULoad true
1191 #               CollectMemory true
1192 #               CollectDF true
1193 #               CollectDisk true
1194 #       </Router>
1195 #</Plugin>
1196
1197 #<Plugin rrdcached>
1198 #       DaemonAddress "unix:/tmp/rrdcached.sock"
1199 #       DataDir "/var/lib/collectd/rrd"
1200 #       CreateFiles true
1201 #       CreateFilesAsync false
1202 #       CollectStatistics true
1203 #</Plugin>
1204
1205 #<Plugin rrdtool>
1206 #       DataDir "/var/lib/collectd/rrd"
1207 #       CreateFilesAsync false
1208 #       CacheTimeout 120
1209 #       CacheFlush   900
1210 #       WritesPerSecond 50
1211 #</Plugin>
1212
1213 #<Plugin sensors>
1214 #       SensorConfigFile "/etc/sensors.conf"
1215 #       Sensor "it8712-isa-0290/temperature-temp1"
1216 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1217 #       Sensor "it8712-isa-0290/voltage-in8"
1218 #       IgnoreSelected false
1219 #</Plugin>
1220
1221 #<Plugin sigrok>
1222 #  LogLevel 3
1223 #  <Device "AC Voltage">
1224 #    Driver "fluke-dmm"
1225 #    MinimumInterval 10
1226 #    Conn "/dev/ttyUSB2"
1227 #  </Device>
1228 #  <Device "Sound Level">
1229 #    Driver "cem-dt-885x"
1230 #    Conn "/dev/ttyUSB1"
1231 #  </Device>
1232 #</Plugin>
1233
1234 #<Plugin smart>
1235 #  Disk "/^[hs]d[a-f][0-9]?$/"
1236 #  IgnoreSelected false
1237 #</Plugin>
1238
1239 #<Plugin snmp>
1240 #   <Data "powerplus_voltge_input">
1241 #       Type "voltage"
1242 #       Table false
1243 #       Instance "input_line1"
1244 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1245 #   </Data>
1246 #   <Data "hr_users">
1247 #       Type "users"
1248 #       Table false
1249 #       Instance ""
1250 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1251 #   </Data>
1252 #   <Data "std_traffic">
1253 #       Type "if_octets"
1254 #       Table true
1255 #       Instance "IF-MIB::ifDescr"
1256 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1257 #   </Data>
1258 #
1259 #   <Host "some.switch.mydomain.org">
1260 #       Address "192.168.0.2"
1261 #       Version 1
1262 #       Community "community_string"
1263 #       Collect "std_traffic"
1264 #       Interval 120
1265 #   </Host>
1266 #   <Host "some.server.mydomain.org">
1267 #       Address "192.168.0.42"
1268 #       Version 2
1269 #       Community "another_string"
1270 #       Collect "std_traffic" "hr_users"
1271 #   </Host>
1272 #   <Host "some.ups.mydomain.org">
1273 #       Address "192.168.0.3"
1274 #       Version 1
1275 #       Community "more_communities"
1276 #       Collect "powerplus_voltge_input"
1277 #       Interval 300
1278 #   </Host>
1279 #</Plugin>
1280
1281 #<Plugin statsd>
1282 #  Host "::"
1283 #  Port "8125"
1284 #  DeleteCounters false
1285 #  DeleteTimers   false
1286 #  DeleteGauges   false
1287 #  DeleteSets     false
1288 #  CounterSum     false
1289 #  TimerPercentile 90.0
1290 #  TimerPercentile 95.0
1291 #  TimerPercentile 99.0
1292 #  TimerLower     false
1293 #  TimerUpper     false
1294 #  TimerSum       false
1295 #  TimerCount     false
1296 #</Plugin>
1297
1298 #<Plugin swap>
1299 #       ReportByDevice false
1300 #       ReportBytes true
1301 #       ValuesAbsolute true
1302 #       ValuesPercentage false
1303 #</Plugin>
1304
1305 #<Plugin table>
1306 #       <Table "/proc/slabinfo">
1307 #               Instance "slabinfo"
1308 #               Separator " "
1309 #               <Result>
1310 #                       Type gauge
1311 #                       InstancePrefix "active_objs"
1312 #                       InstancesFrom 0
1313 #                       ValuesFrom 1
1314 #               </Result>
1315 #               <Result>
1316 #                       Type gauge
1317 #                       InstancePrefix "objperslab"
1318 #                       InstancesFrom 0
1319 #                       ValuesFrom 4
1320 #               </Result>
1321 #       </Table>
1322 #</Plugin>
1323
1324 #<Plugin tail>
1325 #  <File "/var/log/exim4/mainlog">
1326 #    Instance "exim"
1327 #    Interval 60
1328 #    <Match>
1329 #      Regex "S=([1-9][0-9]*)"
1330 #      DSType "CounterAdd"
1331 #      Type "ipt_bytes"
1332 #      Instance "total"
1333 #    </Match>
1334 #    <Match>
1335 #      Regex "\\<R=local_user\\>"
1336 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1337 #      DSType "CounterInc"
1338 #      Type "counter"
1339 #      Instance "local_user"
1340 #    </Match>
1341 #  </File>
1342 #  <File "/var/log/nginx/apache-time.log">
1343 #    #Use the following log format in nginx:
1344 #    #log_format response_time '[$host] "$upstream_response_time" ...'
1345 #    Instance "apache"
1346 #    <Match>
1347 #      Regex "^\\S+ \"([0-9.]+)\""
1348 #      <DSType Distribution>
1349 #        Percentile 80    # -> latency-foo-80
1350 #        Percentile 95    # -> latency-foo-95
1351 #        Percentile 99    # -> latency-foo-99
1352 #        Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1353 #        Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1354 #        Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1355 #        Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1356 #        Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1357 #        Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1358 #      </DSType>
1359 #      Type "latency"
1360 #      Instance "foo"
1361 #    </Match>
1362 #  </File>
1363 #</Plugin>
1364
1365 #<Plugin tail_csv>
1366 #   <Metric "dropped">
1367 #       Type "percent"
1368 #       Instance "dropped"
1369 #       ValueFrom 1
1370 #   </Metric>
1371 #   <Metric "mbps">
1372 #       Type "bytes"
1373 #       Instance "wire-realtime"
1374 #       ValueFrom 2
1375 #   </Metric>
1376 #   <Metric "alerts">
1377 #       Type "alerts_per_second"
1378 #       ValueFrom 3
1379 #   </Metric>
1380 #   <Metric "kpps">
1381 #       Type "kpackets_wire_per_sec.realtime"
1382 #       ValueFrom 4
1383 #   </Metric>
1384 #   <File "/var/log/snort/snort.stats">
1385 #       Instance "snort-eth0"
1386 #       Interval 600
1387 #       Collect "dropped" "mbps" "alerts" "kpps"
1388 #       TimeFrom 0
1389 #   </File>
1390 #</Plugin>
1391
1392 #<Plugin tcpconns>
1393 #       ListeningPorts false
1394 #       AllPortsSummary false
1395 #       LocalPort "25"
1396 #       RemotePort "25"
1397 #</Plugin>
1398
1399 #<Plugin teamspeak2>
1400 #       Host "127.0.0.1"
1401 #       Port "51234"
1402 #       Server "8767"
1403 #</Plugin>
1404
1405 #<Plugin ted>
1406 #       Device "/dev/ttyUSB0"
1407 #       Retries 0
1408 #</Plugin>
1409
1410 #<Plugin thermal>
1411 #       ForceUseProcfs false
1412 #       Device "THRM"
1413 #       IgnoreSelected false
1414 #</Plugin>
1415
1416 #<Plugin tokyotyrant>
1417 #       Host "localhost"
1418 #       Port "1978"
1419 #</Plugin>
1420
1421 #<Plugin turbostat>
1422 ##      None of the following option should be set manually
1423 ##      This plugin automatically detect most optimal options
1424 ##      Only set values here if:
1425 ##      - The module asks you to
1426 ##      - You want to disable the collection of some data
1427 ##      - Your (Intel) CPU is not supported (yet) by the module
1428 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1429 ##      In the last two cases, please open a bug request
1430 #
1431 #       TCCActivationTemp "100"
1432 #       CoreCstates "392"
1433 #       PackageCstates "396"
1434 #       SystemManagementInterrupt true
1435 #       DigitalTemperatureSensor true
1436 #       PackageThermalManagement true
1437 #       RunningAveragePowerLimit "7"    
1438 #</Plugin>
1439
1440 #<Plugin unixsock>
1441 #       SocketFile "/usr/var/run/collectd-unixsock"
1442 #       SocketGroup "collectd"
1443 #       SocketPerms "0660"
1444 #       DeleteSocket false
1445 #</Plugin>
1446
1447 #<Plugin uuid>
1448 #       UUIDFile "/etc/uuid"
1449 #</Plugin>
1450
1451 #<Plugin mic>
1452 #   ShowCPU true
1453 #   ShowCPUCores true
1454 #   ShowMemory true
1455 #   ShowTemperatures true
1456 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1457 ##  then inverted with a IgnoreSelectedTemperature.
1458 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1459 #   Temperature vddg
1460 #   IgnoreSelectedTemperature true
1461 #   ShowPower true
1462 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1463 ##  then inverted with a IgnoreSelectedTemperature.
1464 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1465 #   Power total1
1466 #   IgnoreSelectedPower true
1467 #</Plugin>
1468
1469 #<Plugin varnish>
1470 #   This tag support an argument if you want to
1471 #   monitor the local instance just use </Instance>
1472 #   If you prefer defining another instance you can do
1473 #   so by using <Instance "myinstance">
1474 #   <Instance>
1475 #      CollectBackend true
1476 #      CollectBan false           # Varnish 3 and above
1477 #      CollectCache true
1478 #      CollectConnections true
1479 #      CollectDirectorDNS false   # Varnish 3 only
1480 #      CollectESI false
1481 #      CollectFetch false
1482 #      CollectHCB false
1483 #      CollectObjects false
1484 #      CollectPurge false         # Varnish 2 only
1485 #      CollectSession false
1486 #      CollectSHM true
1487 #      CollectSMA false           # Varnish 2 only
1488 #      CollectSMS false
1489 #      CollectSM false            # Varnish 2 only
1490 #      CollectStruct false
1491 #      CollectTotals false
1492 #      CollectUptime false        # Varnish 3 and above
1493 #      CollectVCL false
1494 #      CollectVSM false           # Varnish 4 only
1495 #      CollectWorkers false
1496 #   </Instance>
1497 #</Plugin>
1498
1499 #<Plugin virt>
1500 #       Connection "xen:///"
1501 #       RefreshInterval 60
1502 #       Domain "name"
1503 #       BlockDevice "name:device"
1504 #       BlockDeviceFormat target
1505 #       BlockDeviceFormatBasename false
1506 #       InterfaceDevice "name:device"
1507 #       IgnoreSelected false
1508 #       HostnameFormat name
1509 #       InterfaceFormat name
1510 #       PluginInstanceFormat name
1511 #       Instances 1
1512 #       ExtraStats "disk pcpu"
1513 #</Plugin>
1514
1515 #<Plugin vmem>
1516 #       Verbose false
1517 #</Plugin>
1518
1519 #<Plugin write_graphite>
1520 #  <Node "example">
1521 #    Host "localhost"
1522 #    Port "2003"
1523 #    Protocol "tcp"
1524 #    ReconnectInterval 0
1525 #    LogSendErrors true
1526 #    Prefix "collectd"
1527 #    Postfix "collectd"
1528 #    StoreRates true
1529 #    AlwaysAppendDS false
1530 #    EscapeCharacter "_"
1531 #    SeparateInstances false
1532 #    PreserveSeparator false
1533 #    DropDuplicateFields false
1534 #  </Node>
1535 #</Plugin>
1536
1537 #<Plugin write_http>
1538 #       <Node "example">
1539 #               URL "http://example.com/collectd-post"
1540 #               User "collectd"
1541 #               Password "weCh3ik0"
1542 #               VerifyPeer true
1543 #               VerifyHost true
1544 #               CACert "/etc/ssl/ca.crt"
1545 #               CAPath "/etc/ssl/certs/"
1546 #               ClientKey "/etc/ssl/client.pem"
1547 #               ClientCert "/etc/ssl/client.crt"
1548 #               ClientKeyPass "secret"
1549 #               Header "X-Custom-Header: custom_value"
1550 #               SSLVersion "TLSv1"
1551 #               Format "Command"
1552 #               Attribute "key" "value"     # only available for KAIROSDB format
1553 #               Metrics true
1554 #               Notifications false
1555 #               StoreRates false
1556 #               BufferSize 4096
1557 #               LowSpeedLimit 0
1558 #               Timeout 0
1559 #       </Node>
1560 #</Plugin>
1561
1562 #<Plugin write_kafka>
1563 #  Property "metadata.broker.list" "localhost:9092"
1564 #  <Topic "collectd">
1565 #    Format JSON
1566 #  </Topic>
1567 #</Plugin>
1568
1569 #<Plugin write_mongodb>
1570 #       <Node "example">
1571 #               Host "localhost"
1572 #               Port "27017"
1573 #               Timeout 1000
1574 #               StoreRates false
1575 #               Database "auth_db"
1576 #               User "auth_user"
1577 #               Password "auth_passwd"
1578 #       </Node>
1579 #</Plugin>
1580
1581 #<Plugin write_prometheus>
1582 #       Port "9103"
1583 #</Plugin>
1584
1585 #<Plugin write_redis>
1586 #       <Node "example">
1587 #               Host "localhost"
1588 #               Port "6379"
1589 #               Timeout 1000
1590 #               Prefix "collectd/"
1591 #       </Node>
1592 #</Plugin>
1593
1594 #<Plugin write_riemann>
1595 #       <Node "example">
1596 #               Host "localhost"
1597 #               Port 5555
1598 #               Protocol TCP
1599 #               Batch true
1600 #               BatchMaxSize 8192
1601 #               StoreRates true
1602 #               AlwaysAppendDS false
1603 #               TTLFactor 2.0
1604 #               Notifications true
1605 #               CheckThresholds false
1606 #               EventServicePrefix ""
1607 #       </Node>
1608 #       Tag "foobar"
1609 #       Attribute "foo" "bar"
1610 #</Plugin>
1611
1612 #<Plugin write_sensu>
1613 #       <Node "example">
1614 #               Host "localhost"
1615 #               Port 3030
1616 #               StoreRates true
1617 #               AlwaysAppendDS false
1618 #               Notifications true
1619 #               Metrics true
1620 #               EventServicePrefix ""
1621 #               MetricHandler "influx"
1622 #               MetricHandler "default"
1623 #               NotificationHandler "flapjack"
1624 #               NotificationHandler "howling_monkey"
1625 #       </Node>
1626 #       Tag "foobar"
1627 #       Attribute "foo" "bar"
1628 #</Plugin>
1629
1630 #<Plugin write_tsdb>
1631 #       <Node>
1632 #               Host "localhost"
1633 #               Port "4242"
1634 #               HostTags "status=production"
1635 #               StoreRates false
1636 #               AlwaysAppendDS false
1637 #       </Node>
1638 #</Plugin>
1639
1640 #<Plugin zookeeper>
1641 #    Host "localhost"
1642 #    Port "2181"
1643 #</Plugin>
1644
1645 ##############################################################################
1646 # Filter configuration                                                       #
1647 #----------------------------------------------------------------------------#
1648 # The following configures collectd's filtering mechanism. Before changing   #
1649 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1650 # in the collectd.conf(5) manual page.                                       #
1651 ##############################################################################
1652
1653 # Load required matches:
1654 #LoadPlugin match_empty_counter
1655 #LoadPlugin match_hashed
1656 #LoadPlugin match_regex
1657 #LoadPlugin match_value
1658 #LoadPlugin match_timediff
1659
1660 # Load required targets:
1661 #LoadPlugin target_notification
1662 #LoadPlugin target_replace
1663 #LoadPlugin target_scale
1664 #LoadPlugin target_set
1665 #LoadPlugin target_v5upgrade
1666
1667 #----------------------------------------------------------------------------#
1668 # The following block demonstrates the default behavior if no filtering is   #
1669 # configured at all: All values will be sent to all available write plugins. #
1670 #----------------------------------------------------------------------------#
1671
1672 #<Chain "PostCache">
1673 #  Target "write"
1674 #</Chain>
1675
1676 ##############################################################################
1677 # Threshold configuration                                                    #
1678 #----------------------------------------------------------------------------#
1679 # The following outlines how to configure collectd's threshold checking      #
1680 # plugin. The plugin and possible configuration options are documented in    #
1681 # the collectd-threshold(5) manual page.                                     #
1682 ##############################################################################
1683
1684 #LoadPlugin "threshold"
1685 #<Plugin threshold>
1686 #  <Type "foo">
1687 #    WarningMin    0.00
1688 #    WarningMax 1000.00
1689 #    FailureMin    0.00
1690 #    FailureMax 1200.00
1691 #    Invert false
1692 #    Instance "bar"
1693 #  </Type>
1694 #
1695 #  <Plugin "interface">
1696 #    Instance "eth0"
1697 #    <Type "if_octets">
1698 #      FailureMax 10000000
1699 #      DataSource "rx"
1700 #    </Type>
1701 #  </Plugin>
1702 #
1703 #  <Host "hostname">
1704 #    <Type "cpu">
1705 #      Instance "idle"
1706 #      FailureMin 10
1707 #    </Type>
1708 #
1709 #    <Plugin "memory">
1710 #      <Type "memory">
1711 #        Instance "cached"
1712 #        WarningMin 100000000
1713 #      </Type>
1714 #    </Plugin>
1715 #
1716 #    <Type "load">
1717 #       DataSource "midterm"
1718 #       FailureMax 4
1719 #       Hits 3
1720 #       Hysteresis 3
1721 #    </Type>
1722 #  </Host>
1723 #</Plugin>
1724
1725 <Include "/etc/collectd/collectd.conf.d">
1726         Filter "*.conf"
1727 </Include>
1728