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