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