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