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