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