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