Merge remote-tracking branch 'github/pr/1558'
[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 #               #FilesSizeType "bytes"
605 #               #FilesCountType "files"
606 #               #TypeInstance "instance"
607 #       </Directory>
608 #</Plugin>
609
610 #<Plugin gmond>
611 #  MCReceiveFrom "239.2.11.71" "8649"
612 #  <Metric "swap_total">
613 #    Type "swap"
614 #    TypeInstance "total"
615 #    DataSource "value"
616 #  </Metric>
617 #  <Metric "swap_free">
618 #    Type "swap"
619 #    TypeInstance "free"
620 #    DataSource "value"
621 #  </Metric>
622 #</Plugin>
623
624 #<Plugin gps>
625 #  Host "127.0.0.1"
626 #  Port "2947"
627 #  Timeout 0.015
628 #  PauseConnect 5
629 #</Plugin>
630
631 #<Plugin grpc>
632 #       <Server "example.com" "50051">
633 #               EnableSSL true
634 #               SSLCACertificateFile "/path/to/root.pem"
635 #               SSLCertificateFile "/path/to/server.pem"
636 #               SSLCertificateKeyFile "/path/to/server.key"
637 #       </Server>
638 #       <Listen "0.0.0.0" "50051">
639 #               EnableSSL true
640 #               SSLCACertificateFile "/path/to/root.pem"
641 #               SSLCertificateFile "/path/to/client.pem"
642 #               SSLCertificateKeyFile "/path/to/client.key"
643 #       </Listen>
644 #</Plugin>
645
646 #<Plugin hddtemp>
647 #  Host "127.0.0.1"
648 #  Port "7634"
649 #</Plugin>
650
651 #<Plugin hugepages>
652 #    ReportPerNodeHP  true
653 #    ReportRootHP     true
654 #    ValuesPages      true
655 #    ValuesBytes      false
656 #    ValuesPercentage false
657 #</Plugin>
658
659 #<Plugin intel_pmu>
660 #    ReportHardwareCacheEvents true
661 #    ReportKernelPMUEvents true
662 #    ReportSoftwareEvents true
663 #    EventList "/var/cache/pmu/GenuineIntel-6-2D-core.json"
664 #    HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
665 #</Plugin>
666
667 #<Plugin "intel_rdt">
668 #  Cores "0-2"
669 #</Plugin>
670
671 #<Plugin interface>
672 #       Interface "eth0"
673 #       IgnoreSelected false
674 #       ReportInactive true
675 #       UniqueName false
676 #</Plugin>
677
678 #<Plugin ipmi>
679 #       Sensor "some_sensor"
680 #       Sensor "another_one"
681 #       IgnoreSelected false
682 #       NotifySensorAdd false
683 #       NotifySensorRemove true
684 #       NotifySensorNotPresent false
685 #</Plugin>
686
687 #<Plugin iptables>
688 #       Chain table chain
689 #       Chain6 table chain
690 #</Plugin>
691
692 #<Plugin irq>
693 #       Irq 7
694 #       Irq 8
695 #       Irq 9
696 #       IgnoreSelected true
697 #</Plugin>
698
699 #<Plugin java>
700 #       JVMArg "-verbose:jni"
701 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
702 #
703 #       LoadPlugin "org.collectd.java.Foobar"
704 #       <Plugin "org.collectd.java.Foobar">
705 #         # To be parsed by the plugin
706 #       </Plugin>
707 #</Plugin>
708
709 #<Plugin load>
710 #        ReportRelative true
711 #</Plugin>
712
713 #<Plugin lpar>
714 #       CpuPoolStats   false
715 #       ReportBySerial false
716 #</Plugin>
717
718 #<Plugin lua>
719 #       BasePath "@prefix@/share/@PACKAGE_NAME@/lua"
720 #       Script "script1.lua"
721 #       Script "script2.lua"
722 #</Plugin>
723
724 #<Plugin madwifi>
725 #       Interface "wlan0"
726 #       IgnoreSelected false
727 #       Source "SysFS"
728 #       WatchSet "None"
729 #       WatchAdd "node_octets"
730 #       WatchAdd "node_rssi"
731 #       WatchAdd "is_rx_acl"
732 #       WatchAdd "is_scan_active"
733 #</Plugin>
734
735 #<Plugin mbmon>
736 #       Host "127.0.0.1"
737 #       Port "411"
738 #</Plugin>
739
740 #<Plugin mcelog>
741 #  <Memory>
742 #    McelogClientSocket "/var/run/mcelog-client"
743 #    PersistentNotification false
744 #  </Memory>
745 #  McelogLogfile "/var/log/mcelog"
746 #</Plugin>
747
748 #<Plugin md>
749 #       Device "/dev/md0"
750 #       IgnoreSelected false
751 #</Plugin>
752
753 #<Plugin memcachec>
754 #       <Page "plugin_instance">
755 #               Server "localhost"
756 #               Key "page_key"
757 #               <Match>
758 #                       Regex "(\\d+) bytes sent"
759 #                       ExcludeRegex "<lines to be excluded>"
760 #                       DSType CounterAdd
761 #                       Type "ipt_octets"
762 #                       Instance "type_instance"
763 #               </Match>
764 #       </Page>
765 #</Plugin>
766
767 #<Plugin memcached>
768 #       <Instance "local">
769 #               #Host "memcache.example.com"
770 #               Address "127.0.0.1"
771 #               Port "11211"
772 #       </Instance>
773 #</Plugin>
774
775 #<Plugin memory>
776 #       ValuesAbsolute true
777 #       ValuesPercentage false
778 #</Plugin>
779
780 #<Plugin modbus>
781 #       <Data "data_name">
782 #               RegisterBase 1234
783 #               RegisterCmd ReadHolding
784 #               RegisterType float
785 #               Type gauge
786 #               Instance "..."
787 #       </Data>
788 #
789 #       <Host "name">
790 #               Address "addr"
791 #               Port "1234"
792 #               Interval 60
793 #
794 #               <Slave 1>
795 #                       Instance "foobar" # optional
796 #                       Collect "data_name"
797 #               </Slave>
798 #       </Host>
799 #</Plugin>
800
801 #<Plugin mqtt>
802 #       <Publish "name">
803 #               Host "localhost"
804 #               Port 1883
805 #               ClientId "localhost"
806 #               User "user"
807 #               Password "secret"
808 #               QoS 0
809 #               Prefix "collectd"
810 #               StoreRates true
811 #               Retain false
812 #               CACert "/etc/ssl/ca.crt"
813 #               CertificateFile "/etc/ssl/client.crt"
814 #               CertificateKeyFile "/etc/ssl/client.pem"
815 #               TLSProtocol "tlsv1.2"
816 #               CipherSuite "ciphers"
817 #       </Publish>
818 #       <Subscribe "name">
819 #               Host "localhost"
820 #               Port 1883
821 #               ClientId "localhost"
822 #               User "user"
823 #               Password "secret"
824 #               QoS 2
825 #               Topic "collectd/#"
826 #               CleanSession true
827 #               CACert "/etc/ssl/ca.crt"
828 #               CertificateFile "/etc/ssl/client.crt"
829 #               CertificateKeyFile "/etc/ssl/client.pem"
830 #               TLSProtocol "tlsv1.2"
831 #               CipherSuite "ciphers"
832 #       </Subscribe>
833 #</Plugin>
834
835 #<Plugin mysql>
836 #       <Database db_name>
837 #               Host "database.serv.er"
838 #               User "db_user"
839 #               Password "secret"
840 #               Database "db_name"
841 #               SSLKey "/path/to/key.pem"
842 #               SSLCert "/path/to/cert.pem"
843 #               SSLCA "/path/to/ca.pem"
844 #               SSLCAPath "/path/to/cas/"
845 #               SSLCipher "DHE-RSA-AES256-SHA"
846 #               MasterStats true
847 #               ConnectTimeout 10
848 #               InnodbStats true
849 #       </Database>
850 #
851 #       <Database db_name2>
852 #               Alias "squeeze"
853 #               Host "localhost"
854 #               Socket "/var/run/mysql/mysqld.sock"
855 #               SlaveStats true
856 #               SlaveNotifications true
857 #       </Database>
858 #       <Database galera>
859 #               Alias "galera"
860 #               Host "localhost"
861 #               Socket "/var/run/mysql/mysqld.sock"
862 #               WsrepStats true
863 #       </Database>
864 #</Plugin>
865
866 #<Plugin netapp>
867 #       <Host "netapp1.example.com">
868 #               Protocol      "https"
869 #               Address       "10.0.0.1"
870 #               Port          443
871 #               User          "username"
872 #               Password      "aef4Aebe"
873 #               Interval      30
874 #
875 #               <WAFL>
876 #                       Interval 30
877 #                       GetNameCache   true
878 #                       GetDirCache    true
879 #                       GetBufferCache true
880 #                       GetInodeCache  true
881 #               </WAFL>
882 #
883 #               <Disks>
884 #                       Interval 30
885 #                       GetBusy true
886 #               </Disks>
887 #
888 #               <VolumePerf>
889 #                       Interval 30
890 #                       GetIO      "volume0"
891 #                       IgnoreSelectedIO      false
892 #                       GetOps     "volume0"
893 #                       IgnoreSelectedOps     false
894 #                       GetLatency "volume0"
895 #                       IgnoreSelectedLatency false
896 #               </VolumePerf>
897 #
898 #               <VolumeUsage>
899 #                       Interval 30
900 #                       GetCapacity "vol0"
901 #                       GetCapacity "vol1"
902 #                       IgnoreSelectedCapacity false
903 #                       GetSnapshot "vol1"
904 #                       GetSnapshot "vol3"
905 #                       IgnoreSelectedSnapshot false
906 #               </VolumeUsage>
907 #
908 #               <System>
909 #                       Interval 30
910 #                       GetCPULoad     true
911 #                       GetInterfaces  true
912 #                       GetDiskOps     true
913 #                       GetDiskIO      true
914 #               </System>
915 #       </Host>
916 #</Plugin>
917
918 #<Plugin netlink>
919 #       Interface "All"
920 #       VerboseInterface "All"
921 #       QDisc "eth0" "pfifo_fast-1:0"
922 #       Class "ppp0" "htb-1:10"
923 #       Filter "ppp0" "u32-1:0"
924 #       IgnoreSelected false
925 #</Plugin>
926
927 @LOAD_PLUGIN_NETWORK@<Plugin network>
928 #       # client setup:
929 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
930 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
931 #               SecurityLevel Encrypt
932 #               Username "user"
933 #               Password "secret"
934 #               Interface "eth0"
935 #               ResolveInterval 14400
936 @LOAD_PLUGIN_NETWORK@   </Server>
937 #       TimeToLive 128
938 #
939 #       # server setup:
940 #       Listen "ff18::efc0:4a42" "25826"
941 #       <Listen "239.192.74.66" "25826">
942 #               SecurityLevel Sign
943 #               AuthFile "/etc/collectd/passwd"
944 #               Interface "eth0"
945 #       </Listen>
946 #       MaxPacketSize 1452
947 #
948 #       # proxy setup (client and server as above):
949 #       Forward true
950 #
951 #       # statistics about the network plugin itself
952 #       ReportStats false
953 #
954 #       # "garbage collection"
955 #       CacheFlush 1800
956 @LOAD_PLUGIN_NETWORK@</Plugin>
957
958 #<Plugin nfs>
959 #       ReportV2 false
960 #       #ReportV3 false
961 #       #ReportV4 false
962 #</Plugin>
963
964 #<Plugin nginx>
965 #       URL "http://localhost/status?auto"
966 #       User "www-user"
967 #       Password "secret"
968 #       CACert "/etc/ssl/ca.crt"
969 #</Plugin>
970
971 #<Plugin notify_desktop>
972 #       OkayTimeout 1000
973 #       WarningTimeout 5000
974 #       FailureTimeout 0
975 #</Plugin>
976
977 #<Plugin notify_email>
978 #       SMTPServer "localhost"
979 #       SMTPPort 25
980 #       SMTPUser "my-username"
981 #       SMTPPassword "my-password"
982 #       From "collectd@main0server.com"
983 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
984 #       Subject "Aaaaaa!! %s on %s!!!!!"
985 #       Recipient "email1@domain1.net"
986 #       Recipient "email2@domain2.com"
987 #</Plugin>
988
989 #<Plugin notify_nagios>
990 #       CommandFile "/usr/local/nagios/var/rw/nagios.cmd"
991 #</Plugin>
992
993 #<Plugin ntpd>
994 #       Host "localhost"
995 #       Port 123
996 #       ReverseLookups false
997 #       IncludeUnitID true
998 #</Plugin>
999
1000 #<Plugin nut>
1001 #       UPS "upsname@hostname:port"
1002 #       ForceSSL true
1003 #       VerifyPeer true
1004 #       CAPath "/path/to/folder"
1005 #       #ConnectTimeout 5000
1006 #</Plugin>
1007
1008 #<Plugin olsrd>
1009 #       Host "127.0.0.1"
1010 #       Port "2006"
1011 #       CollectLinks "Summary"
1012 #       CollectRoutes "Summary"
1013 #       CollectTopology "Summary"
1014 #</Plugin>
1015
1016 #<Plugin onewire>
1017 #       Device "-s localhost:4304"
1018 #       Sensor "F10FCA000800"
1019 #       IgnoreSelected false
1020 #</Plugin>
1021
1022 #<Plugin openldap>
1023 #  <Instance "localhost">
1024 #    URL "ldap://localhost:389"
1025 #    StartTLS false
1026 #    VerifyHost true
1027 #    CACert "/path/to/ca.crt"
1028 #    Timeout -1
1029 #    Version 3
1030 #  </Instance>
1031 #</Plugin>
1032
1033 #<Plugin openvpn>
1034 #       StatusFile "/etc/openvpn/openvpn-status.log"
1035 #       ImprovedNamingSchema false
1036 #       CollectCompression true
1037 #       CollectIndividualUsers true
1038 #       CollectUserCount false
1039 #</Plugin>
1040
1041 #<Plugin oracle>
1042 #  <Query "out_of_stock">
1043 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
1044 #    <Result>
1045 #      Type "gauge"
1046 #      InstancesFrom "category"
1047 #      ValuesFrom "value"
1048 #    </Result>
1049 #  </Query>
1050 #  <Database "product_information">
1051 #    #Plugin "warehouse"
1052 #    ConnectID "db01"
1053 #    Username "oracle"
1054 #    Password "secret"
1055 #    Query "out_of_stock"
1056 #  </Database>
1057 #</Plugin>
1058
1059 #<Plugin ovs_events>
1060 #  Port "6640"
1061 #  Address "127.0.0.1"
1062 #  Socket "/var/run/openvswitch/db.sock"
1063 #  Interfaces "br0" "veth0"
1064 #  SendNotification true
1065 #  DispatchValues false
1066 #</Plugin>
1067
1068 #<Plugin ovs_stats>
1069 #  Port "6640"
1070 #  Address "127.0.0.1"
1071 #  Socket "/var/run/openvswitch/db.sock"
1072 #  Bridges "br0" "br_ext"
1073 #</Plugin>
1074
1075 #<Plugin perl>
1076 #       IncludeDir "/my/include/path"
1077 #       BaseName "Collectd::Plugins"
1078 #       EnableDebugger ""
1079 #       LoadPlugin Monitorus
1080 #       LoadPlugin OpenVZ
1081 #
1082 #       <Plugin foo>
1083 #               Foo "Bar"
1084 #               Qux "Baz"
1085 #       </Plugin>
1086 #</Plugin>
1087
1088 #<Plugin pinba>
1089 #       Address "::0"
1090 #       Port "30002"
1091 #       <View "name">
1092 #               Host "host name"
1093 #               Server "server name"
1094 #               Script "script name"
1095 #       </View>
1096 #</Plugin>
1097
1098 #<Plugin ping>
1099 #       Host "host.foo.bar"
1100 #       Interval 1.0
1101 #       Timeout 0.9
1102 #       TTL 255
1103 #       SourceAddress "1.2.3.4"
1104 #       Device "eth0"
1105 #       MaxMissed -1
1106 #</Plugin>
1107
1108 #<Plugin postgresql>
1109 #       <Query magic>
1110 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
1111 #               Param hostname
1112 #               <Result>
1113 #                       Type gauge
1114 #                       InstancePrefix "magic"
1115 #                       ValuesFrom magic
1116 #               </Result>
1117 #       </Query>
1118 #       <Query rt36_tickets>
1119 #               Statement "SELECT COUNT(type) AS count, type \
1120 #                                 FROM (SELECT CASE \
1121 #                                              WHEN resolved = 'epoch' THEN 'open' \
1122 #                                              ELSE 'resolved' END AS type \
1123 #                                              FROM tickets) type \
1124 #                                 GROUP BY type;"
1125 #               <Result>
1126 #                       Type counter
1127 #                       InstancePrefix "rt36_tickets"
1128 #                       InstancesFrom "type"
1129 #                       ValuesFrom "count"
1130 #               </Result>
1131 #       </Query>
1132 #       <Writer sqlstore>
1133 #               # See contrib/postgresql/collectd_insert.sql for details
1134 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
1135 #               StoreRates true
1136 #       </Writer>
1137 #       <Database foo>
1138 #               #Plugin "kingdom"
1139 #               Host "hostname"
1140 #               Port "5432"
1141 #               User "username"
1142 #               Password "secret"
1143 #               SSLMode "prefer"
1144 #               KRBSrvName "kerberos_service_name"
1145 #               Query magic
1146 #       </Database>
1147 #       <Database bar>
1148 #               Interval 60
1149 #               Service "service_name"
1150 #               Query backend # predefined
1151 #               Query rt36_tickets
1152 #       </Database>
1153 #       <Database qux>
1154 #               Service "collectd_store"
1155 #               Writer sqlstore
1156 #               # see collectd.conf(5) for details
1157 #               CommitInterval 30
1158 #       </Database>
1159 #</Plugin>
1160
1161 #<Plugin powerdns>
1162 #  <Server "server_name">
1163 #    Collect "latency"
1164 #    Collect "udp-answers" "udp-queries"
1165 #    Socket "/var/run/pdns.controlsocket"
1166 #  </Server>
1167 #  <Recursor "recursor_name">
1168 #    Collect "questions"
1169 #    Collect "cache-hits" "cache-misses"
1170 #    Socket "/var/run/pdns_recursor.controlsocket"
1171 #  </Recursor>
1172 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1173 #</Plugin>
1174
1175 #<Plugin processes>
1176 #       CollectFileDescriptor true
1177 #       CollectContextSwitch true
1178 #       CollectMemoryMaps true
1179 #       Process "name"
1180 #       ProcessMatch "name" "regex"
1181 #       <Process "collectd">
1182 #               CollectFileDescriptor false
1183 #               CollectContextSwitch false
1184 #       </Process>
1185 #       <ProcessMatch "name" "regex">
1186 #               CollectFileDescriptor false
1187 #               CollectContextSwitch true
1188 #       </Process>
1189 #</Plugin>
1190
1191 #<Plugin protocols>
1192 #       Value "/^Tcp:/"
1193 #       IgnoreSelected false
1194 #</Plugin>
1195
1196 #<Plugin python>
1197 #       ModulePath "/path/to/your/python/modules"
1198 #       LogTraces true
1199 #       Interactive true
1200 #       Import "spam"
1201 #
1202 #       <Module spam>
1203 #               spam "wonderful" "lovely"
1204 #       </Module>
1205 #</Plugin>
1206
1207 #<Plugin redis>
1208 #   <Node example>
1209 #      Host "redis.example.com"
1210 #      Port "6379"
1211 #      Timeout 2000
1212 #   </Node>
1213 #</Plugin>
1214
1215 #<Plugin routeros>
1216 #       <Router>
1217 #               Host "router.example.com"
1218 #               Port "8728"
1219 #               User "admin"
1220 #               Password "dozaiTh4"
1221 #               CollectInterface true
1222 #               CollectRegistrationTable true
1223 #               CollectCPULoad true
1224 #               CollectMemory true
1225 #               CollectDF true
1226 #               CollectDisk true
1227 #       </Router>
1228 #</Plugin>
1229
1230 #<Plugin rrdcached>
1231 #       DaemonAddress "unix:/tmp/rrdcached.sock"
1232 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1233 #       CreateFiles true
1234 #       CreateFilesAsync false
1235 #       CollectStatistics true
1236 #</Plugin>
1237
1238 #<Plugin rrdtool>
1239 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1240 #       CreateFilesAsync false
1241 #       CacheTimeout 120
1242 #       CacheFlush   900
1243 #       WritesPerSecond 50
1244 #</Plugin>
1245
1246 #<Plugin sensors>
1247 #       SensorConfigFile "/etc/sensors.conf"
1248 #       Sensor "it8712-isa-0290/temperature-temp1"
1249 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1250 #       Sensor "it8712-isa-0290/voltage-in8"
1251 #       IgnoreSelected false
1252 #</Plugin>
1253
1254 #<Plugin sigrok>
1255 #  LogLevel 3
1256 #  <Device "AC Voltage">
1257 #    Driver "fluke-dmm"
1258 #    MinimumInterval 10
1259 #    Conn "/dev/ttyUSB2"
1260 #  </Device>
1261 #  <Device "Sound Level">
1262 #    Driver "cem-dt-885x"
1263 #    Conn "/dev/ttyUSB1"
1264 #  </Device>
1265 #</Plugin>
1266
1267 #<Plugin smart>
1268 #  Disk "/^[hs]d[a-f][0-9]?$/"
1269 #  IgnoreSelected false
1270 #</Plugin>
1271
1272 #<Plugin snmp>
1273 #   <Data "powerplus_voltge_input">
1274 #       Type "voltage"
1275 #       Table false
1276 #       Instance "input_line1"
1277 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1278 #   </Data>
1279 #   <Data "hr_users">
1280 #       Type "users"
1281 #       Table false
1282 #       Instance ""
1283 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1284 #   </Data>
1285 #   <Data "std_traffic">
1286 #       Type "if_octets"
1287 #       Table true
1288 #       Instance "IF-MIB::ifDescr"
1289 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1290 #   </Data>
1291 #
1292 #   <Host "some.switch.mydomain.org">
1293 #       Address "192.168.0.2"
1294 #       Version 1
1295 #       Community "community_string"
1296 #       Collect "std_traffic"
1297 #       Interval 120
1298 #   </Host>
1299 #   <Host "some.server.mydomain.org">
1300 #       Address "192.168.0.42"
1301 #       Version 2
1302 #       Community "another_string"
1303 #       Collect "std_traffic" "hr_users"
1304 #   </Host>
1305 #   <Host "some.ups.mydomain.org">
1306 #       Address "192.168.0.3"
1307 #       Version 1
1308 #       Community "more_communities"
1309 #       Collect "powerplus_voltge_input"
1310 #       Interval 300
1311 #   </Host>
1312 #</Plugin>
1313
1314 #<Plugin snmp_agent>
1315 #  <Data "memAvailReal">
1316 #    Plugin "memory"
1317 #    Type "memory"
1318 #    TypeInstance "free"
1319 #    OIDs "1.3.6.1.4.1.2021.4.6.0"
1320 #  </Data>
1321 #  <Table "ifTable">
1322 #    IndexOID "IF-MIB::ifIndex"
1323 #    SizeOID "IF-MIB::ifNumber"
1324 #    <Data "ifDescr">
1325 #      Instance true
1326 #      Plugin "interface"
1327 #      OIDs "IF-MIB::ifDescr"
1328 #    </Data>
1329 #    <Data "ifOctets">
1330 #      Plugin "interface"
1331 #      Type "if_octets"
1332 #      TypeInstance ""
1333 #      OIDs "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1334 #    </Data>
1335 #  </Table>
1336 #</Plugin>
1337
1338 #<Plugin statsd>
1339 #  Host "::"
1340 #  Port "8125"
1341 #  DeleteCounters false
1342 #  DeleteTimers   false
1343 #  DeleteGauges   false
1344 #  DeleteSets     false
1345 #  CounterSum     false
1346 #  TimerPercentile 90.0
1347 #  TimerPercentile 95.0
1348 #  TimerPercentile 99.0
1349 #  TimerLower     false
1350 #  TimerUpper     false
1351 #  TimerSum       false
1352 #  TimerCount     false
1353 #</Plugin>
1354
1355 #<Plugin swap>
1356 #       ReportByDevice false
1357 #       ReportBytes true
1358 #       ValuesAbsolute true
1359 #       ValuesPercentage false
1360 #       ReportIO true
1361 #</Plugin>
1362
1363 #<Plugin table>
1364 #       <Table "/proc/slabinfo">
1365 #               #Plugin "table"
1366 #               Instance "slabinfo"
1367 #               Separator " "
1368 #               <Result>
1369 #                       Type gauge
1370 #                       InstancePrefix "active_objs"
1371 #                       InstancesFrom 0
1372 #                       ValuesFrom 1
1373 #               </Result>
1374 #               <Result>
1375 #                       Type gauge
1376 #                       InstancePrefix "objperslab"
1377 #                       InstancesFrom 0
1378 #                       ValuesFrom 4
1379 #               </Result>
1380 #       </Table>
1381 #</Plugin>
1382
1383 #<Plugin tail>
1384 #  <File "/var/log/exim4/mainlog">
1385 #    Instance "exim"
1386 #    Interval 60
1387 #    <Match>
1388 #      Regex "S=([1-9][0-9]*)"
1389 #      DSType "CounterAdd"
1390 #      Type "ipt_bytes"
1391 #      Instance "total"
1392 #    </Match>
1393 #    <Match>
1394 #      Regex "\\<R=local_user\\>"
1395 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1396 #      DSType "CounterInc"
1397 #      Type "counter"
1398 #      Instance "local_user"
1399 #    </Match>
1400 #  </File>
1401 #  <File "/var/log/nginx/apache-time.log">
1402 #    #Use the following log format in nginx:
1403 #    #log_format response_time '[$host] "$upstream_response_time" ...'
1404 #    Instance "apache"
1405 #    <Match>
1406 #      Regex "^\\S+ \"([0-9.]+)\""
1407 #      <DSType Distribution>
1408 #        Percentile 80    # -> latency-foo-80
1409 #        Percentile 95    # -> latency-foo-95
1410 #        Percentile 99    # -> latency-foo-99
1411 #        Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1412 #        Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1413 #        Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1414 #        Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1415 #        Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1416 #        Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1417 #        #BucketType "bucket"
1418 #      </DSType>
1419 #      Type "latency"
1420 #      Instance "foo"
1421 #    </Match>
1422 #  </File>
1423 #</Plugin>
1424
1425 #<Plugin tail_csv>
1426 #   <Metric "dropped">
1427 #       Type "percent"
1428 #       Instance "dropped"
1429 #       ValueFrom 1
1430 #   </Metric>
1431 #   <Metric "mbps">
1432 #       Type "bytes"
1433 #       Instance "wire-realtime"
1434 #       ValueFrom 2
1435 #   </Metric>
1436 #   <Metric "alerts">
1437 #       Type "alerts_per_second"
1438 #       ValueFrom 3
1439 #   </Metric>
1440 #   <Metric "kpps">
1441 #       Type "kpackets_wire_per_sec.realtime"
1442 #       ValueFrom 4
1443 #   </Metric>
1444 #   <File "/var/log/snort/snort.stats">
1445 #       Instance "snort-eth0"
1446 #       Interval 600
1447 #       Collect "dropped" "mbps" "alerts" "kpps"
1448 #       TimeFrom 0
1449 #   </File>
1450 #</Plugin>
1451
1452 #<Plugin tcpconns>
1453 #       ListeningPorts false
1454 #       AllPortsSummary false
1455 #       LocalPort "25"
1456 #       RemotePort "25"
1457 #</Plugin>
1458
1459 #<Plugin teamspeak2>
1460 #       Host "127.0.0.1"
1461 #       Port "51234"
1462 #       Server "8767"
1463 #</Plugin>
1464
1465 #<Plugin ted>
1466 #       Device "/dev/ttyUSB0"
1467 #       Retries 0
1468 #</Plugin>
1469
1470 #<Plugin thermal>
1471 #       ForceUseProcfs false
1472 #       Device "THRM"
1473 #       IgnoreSelected false
1474 #</Plugin>
1475
1476 #<Plugin tokyotyrant>
1477 #       Host "localhost"
1478 #       Port "1978"
1479 #</Plugin>
1480
1481 #<Plugin turbostat>
1482 ##      None of the following option should be set manually
1483 ##      This plugin automatically detect most optimal options
1484 ##      Only set values here if:
1485 ##      - The module asks you to
1486 ##      - You want to disable the collection of some data
1487 ##      - Your (Intel) CPU is not supported (yet) by the module
1488 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1489 ##      In the last two cases, please open a bug request
1490 #
1491 #       TCCActivationTemp "100"
1492 #       CoreCstates "392"
1493 #       PackageCstates "396"
1494 #       SystemManagementInterrupt true
1495 #       DigitalTemperatureSensor true
1496 #       PackageThermalManagement true
1497 #       RunningAveragePowerLimit "7"
1498 #</Plugin>
1499
1500 #<Plugin unixsock>
1501 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1502 #       SocketGroup "collectd"
1503 #       SocketPerms "0660"
1504 #       DeleteSocket false
1505 #</Plugin>
1506
1507 #<Plugin uuid>
1508 #       UUIDFile "/etc/uuid"
1509 #</Plugin>
1510
1511 #<Plugin mic>
1512 #   ShowCPU true
1513 #   ShowCPUCores true
1514 #   ShowMemory true
1515 #   ShowTemperatures true
1516 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1517 ##  then inverted with a IgnoreSelectedTemperature.
1518 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1519 #   Temperature vddg
1520 #   IgnoreSelectedTemperature true
1521 #   ShowPower true
1522 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1523 ##  then inverted with a IgnoreSelectedTemperature.
1524 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1525 #   Power total1
1526 #   IgnoreSelectedPower true
1527 #</Plugin>
1528
1529 #<Plugin varnish>
1530 #   This tag support an argument if you want to
1531 #   monitor the local instance just use </Instance>
1532 #   If you prefer defining another instance you can do
1533 #   so by using <Instance "myinstance">
1534 #   <Instance>
1535 #      CollectBackend true
1536 #      CollectBan false           # Varnish 3 and above
1537 #      CollectCache true
1538 #      CollectConnections true
1539 #      CollectDirectorDNS false   # Varnish 3 only
1540 #      CollectESI false
1541 #      CollectFetch false
1542 #      CollectHCB false
1543 #      CollectObjects false
1544 #      CollectPurge false         # Varnish 2 only
1545 #      CollectSession false
1546 #      CollectSHM true
1547 #      CollectSMA false           # Varnish 2 & 4 only
1548 #      CollectSMS false
1549 #      CollectSM false            # Varnish 2 only
1550 #      CollectStruct false
1551 #      CollectTotals false
1552 #      CollectUptime false        # Varnish 3 and above
1553 #      CollectVCL false
1554 #      CollectVSM false           # Varnish 4 only
1555 #      CollectWorkers false
1556 #      CollectLock false          # Varnish 4 only
1557 #      CollectMempool false       # Varnish 4 only
1558 #      CollectManagement false    # Varnish 4 only
1559 #      CollectSMF false           # Varnish 4 only
1560 #      CollectVBE false           # Varnish 4 only
1561 #   </Instance>
1562 #</Plugin>
1563
1564 #<Plugin virt>
1565 #       Connection "xen:///"
1566 #       RefreshInterval 60
1567 #       Domain "name"
1568 #       BlockDevice "name:device"
1569 #       BlockDeviceFormat target
1570 #       BlockDeviceFormatBasename false
1571 #       InterfaceDevice "name:device"
1572 #       IgnoreSelected false
1573 #       HostnameFormat name
1574 #       InterfaceFormat name
1575 #       PluginInstanceFormat name
1576 #       Instances 1
1577 #       ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpupin"
1578 #</Plugin>
1579
1580 #<Plugin vmem>
1581 #       Verbose false
1582 #</Plugin>
1583
1584 #<Plugin write_graphite>
1585 #  <Node "example">
1586 #    Host "localhost"
1587 #    Port "2003"
1588 #    Protocol "tcp"
1589 #    ReconnectInterval 0
1590 #    LogSendErrors true
1591 #    Prefix "collectd"
1592 #    Postfix "collectd"
1593 #    StoreRates true
1594 #    AlwaysAppendDS false
1595 #    EscapeCharacter "_"
1596 #    SeparateInstances false
1597 #    PreserveSeparator false
1598 #    DropDuplicateFields false
1599 #  </Node>
1600 #</Plugin>
1601
1602 #<Plugin write_http>
1603 #       <Node "example">
1604 #               URL "http://example.com/collectd-post"
1605 #               User "collectd"
1606 #               Password "weCh3ik0"
1607 #               VerifyPeer true
1608 #               VerifyHost true
1609 #               CACert "/etc/ssl/ca.crt"
1610 #               CAPath "/etc/ssl/certs/"
1611 #               ClientKey "/etc/ssl/client.pem"
1612 #               ClientCert "/etc/ssl/client.crt"
1613 #               ClientKeyPass "secret"
1614 #               Header "X-Custom-Header: custom_value"
1615 #               SSLVersion "TLSv1"
1616 #               Format "Command"
1617 #               Attribute "key" "value"     # only available for KAIROSDB format
1618 #               TTL 0   # data ttl, only available for KAIROSDB format
1619 #               Metrics true
1620 #               Notifications false
1621 #               StoreRates false
1622 #               BufferSize 4096
1623 #               LowSpeedLimit 0
1624 #               Timeout 0
1625 #       </Node>
1626 #</Plugin>
1627
1628 #<Plugin write_kafka>
1629 #  Property "metadata.broker.list" "localhost:9092"
1630 #  <Topic "collectd">
1631 #    Format JSON
1632 #  </Topic>
1633 #</Plugin>
1634
1635 #<Plugin write_mongodb>
1636 #       <Node "example">
1637 #               Host "localhost"
1638 #               Port "27017"
1639 #               Timeout 1000
1640 #               StoreRates false
1641 #               Database "auth_db"
1642 #               User "auth_user"
1643 #               Password "auth_passwd"
1644 #       </Node>
1645 #</Plugin>
1646
1647 #<Plugin write_prometheus>
1648 #       Port "9103"
1649 #</Plugin>
1650
1651 #<Plugin write_redis>
1652 #       <Node "example">
1653 #               Host "localhost"
1654 #               Port "6379"
1655 #               Timeout 1000
1656 #               Prefix "collectd/"
1657 #       </Node>
1658 #</Plugin>
1659
1660 #<Plugin write_riemann>
1661 #       <Node "example">
1662 #               Host "localhost"
1663 #               Port 5555
1664 #               Protocol TCP
1665 #               Batch true
1666 #               BatchMaxSize 8192
1667 #               StoreRates true
1668 #               AlwaysAppendDS false
1669 #               TTLFactor 2.0
1670 #               Notifications true
1671 #               CheckThresholds false
1672 #               EventServicePrefix ""
1673 #       </Node>
1674 #       Tag "foobar"
1675 #       Attribute "foo" "bar"
1676 #</Plugin>
1677
1678 #<Plugin write_sensu>
1679 #       <Node "example">
1680 #               Host "localhost"
1681 #               Port 3030
1682 #               StoreRates true
1683 #               AlwaysAppendDS false
1684 #               Notifications true
1685 #               Metrics true
1686 #               EventServicePrefix ""
1687 #               MetricHandler "influx"
1688 #               MetricHandler "default"
1689 #               NotificationHandler "flapjack"
1690 #               NotificationHandler "howling_monkey"
1691 #       </Node>
1692 #       Tag "foobar"
1693 #       Attribute "foo" "bar"
1694 #</Plugin>
1695
1696 #<Plugin write_tsdb>
1697 #       <Node>
1698 #               Host "localhost"
1699 #               Port "4242"
1700 #               HostTags "status=production"
1701 #               StoreRates false
1702 #               AlwaysAppendDS false
1703 #       </Node>
1704 #</Plugin>
1705
1706 #<Plugin zookeeper>
1707 #    Host "localhost"
1708 #    Port "2181"
1709 #</Plugin>
1710
1711 ##############################################################################
1712 # Filter configuration                                                       #
1713 #----------------------------------------------------------------------------#
1714 # The following configures collectd's filtering mechanism. Before changing   #
1715 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1716 # in the collectd.conf(5) manual page.                                       #
1717 ##############################################################################
1718
1719 # Load required matches:
1720 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1721 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1722 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1723 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1724 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1725
1726 # Load required targets:
1727 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1728 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1729 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1730 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1731 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1732
1733 #----------------------------------------------------------------------------#
1734 # The following block demonstrates the default behavior if no filtering is   #
1735 # configured at all: All values will be sent to all available write plugins. #
1736 #----------------------------------------------------------------------------#
1737
1738 #<Chain "PostCache">
1739 #  Target "write"
1740 #</Chain>
1741
1742 ##############################################################################
1743 # Threshold configuration                                                    #
1744 #----------------------------------------------------------------------------#
1745 # The following outlines how to configure collectd's threshold checking      #
1746 # plugin. The plugin and possible configuration options are documented in    #
1747 # the collectd-threshold(5) manual page.                                     #
1748 ##############################################################################
1749
1750 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1751 #<Plugin threshold>
1752 #  <Type "foo">
1753 #    WarningMin    0.00
1754 #    WarningMax 1000.00
1755 #    FailureMin    0.00
1756 #    FailureMax 1200.00
1757 #    Invert false
1758 #    Instance "bar"
1759 #  </Type>
1760 #
1761 #  <Plugin "interface">
1762 #    Instance "eth0"
1763 #    <Type "if_octets">
1764 #      FailureMax 10000000
1765 #      DataSource "rx"
1766 #    </Type>
1767 #  </Plugin>
1768 #
1769 #  <Host "hostname">
1770 #    <Type "cpu">
1771 #      Instance "idle"
1772 #      FailureMin 10
1773 #    </Type>
1774 #
1775 #    <Plugin "memory">
1776 #      <Type "memory">
1777 #        Instance "cached"
1778 #        WarningMin 100000000
1779 #      </Type>
1780 #    </Plugin>
1781 #
1782 #    <Type "load">
1783 #       DataSource "midterm"
1784 #       FailureMax 4
1785 #       Hits 3
1786 #       Hysteresis 3
1787 #    </Type>
1788 #  </Host>
1789 #</Plugin>