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