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