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