Merge pull request #2194 from maryamtahhan/feat_dpdkstat_fix
[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 #  SharedMemObj "dpdk_collectd_stats_0"
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 #       ForceSSL true
947 #       VerifyPeer true
948 #       CAPath "/path/to/folder"
949 #</Plugin>
950
951 #<Plugin olsrd>
952 #       Host "127.0.0.1"
953 #       Port "2006"
954 #       CollectLinks "Summary"
955 #       CollectRoutes "Summary"
956 #       CollectTopology "Summary"
957 #</Plugin>
958
959 #<Plugin onewire>
960 #       Device "-s localhost:4304"
961 #       Sensor "F10FCA000800"
962 #       IgnoreSelected false
963 #</Plugin>
964
965 #<Plugin openldap>
966 #  <Instance "localhost">
967 #    URL "ldap://localhost:389"
968 #    StartTLS false
969 #    VerifyHost true
970 #    CACert "/path/to/ca.crt"
971 #    Timeout -1
972 #    Version 3
973 #  </Instance>
974 #</Plugin>
975
976 #<Plugin openvpn>
977 #       StatusFile "/etc/openvpn/openvpn-status.log"
978 #       ImprovedNamingSchema false
979 #       CollectCompression true
980 #       CollectIndividualUsers true
981 #       CollectUserCount false
982 #</Plugin>
983
984 #<Plugin oracle>
985 #  <Query "out_of_stock">
986 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
987 #    <Result>
988 #      Type "gauge"
989 #      InstancesFrom "category"
990 #      ValuesFrom "value"
991 #    </Result>
992 #  </Query>
993 #  <Database "product_information">
994 #    ConnectID "db01"
995 #    Username "oracle"
996 #    Password "secret"
997 #    Query "out_of_stock"
998 #  </Database>
999 #</Plugin>
1000
1001 #<Plugin ovs_events>
1002 #  Port "6640"
1003 #  Address "127.0.0.1"
1004 #  Socket "/var/run/openvswitch/db.sock"
1005 #  Interfaces "br0" "veth0"
1006 #  SendNotification false
1007 #  DispatchValues true
1008 #</Plugin>
1009
1010 #<Plugin perl>
1011 #       IncludeDir "/my/include/path"
1012 #       BaseName "Collectd::Plugins"
1013 #       EnableDebugger ""
1014 #       LoadPlugin Monitorus
1015 #       LoadPlugin OpenVZ
1016 #
1017 #       <Plugin foo>
1018 #               Foo "Bar"
1019 #               Qux "Baz"
1020 #       </Plugin>
1021 #</Plugin>
1022
1023 #<Plugin pinba>
1024 #       Address "::0"
1025 #       Port "30002"
1026 #       <View "name">
1027 #               Host "host name"
1028 #               Server "server name"
1029 #               Script "script name"
1030 #       </View>
1031 #</Plugin>
1032
1033 #<Plugin ping>
1034 #       Host "host.foo.bar"
1035 #       Interval 1.0
1036 #       Timeout 0.9
1037 #       TTL 255
1038 #       SourceAddress "1.2.3.4"
1039 #       Device "eth0"
1040 #       MaxMissed -1
1041 #</Plugin>
1042
1043 #<Plugin postgresql>
1044 #       <Query magic>
1045 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
1046 #               Param hostname
1047 #               <Result>
1048 #                       Type gauge
1049 #                       InstancePrefix "magic"
1050 #                       ValuesFrom magic
1051 #               </Result>
1052 #       </Query>
1053 #       <Query rt36_tickets>
1054 #               Statement "SELECT COUNT(type) AS count, type \
1055 #                                 FROM (SELECT CASE \
1056 #                                              WHEN resolved = 'epoch' THEN 'open' \
1057 #                                              ELSE 'resolved' END AS type \
1058 #                                              FROM tickets) type \
1059 #                                 GROUP BY type;"
1060 #               <Result>
1061 #                       Type counter
1062 #                       InstancePrefix "rt36_tickets"
1063 #                       InstancesFrom "type"
1064 #                       ValuesFrom "count"
1065 #               </Result>
1066 #       </Query>
1067 #       <Writer sqlstore>
1068 #               # See contrib/postgresql/collectd_insert.sql for details
1069 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
1070 #               StoreRates true
1071 #       </Writer>
1072 #       <Database foo>
1073 #               Host "hostname"
1074 #               Port "5432"
1075 #               User "username"
1076 #               Password "secret"
1077 #               SSLMode "prefer"
1078 #               KRBSrvName "kerberos_service_name"
1079 #               Query magic
1080 #       </Database>
1081 #       <Database bar>
1082 #               Interval 60
1083 #               Service "service_name"
1084 #               Query backend # predefined
1085 #               Query rt36_tickets
1086 #       </Database>
1087 #       <Database qux>
1088 #               Service "collectd_store"
1089 #               Writer sqlstore
1090 #               # see collectd.conf(5) for details
1091 #               CommitInterval 30
1092 #       </Database>
1093 #</Plugin>
1094
1095 #<Plugin powerdns>
1096 #  <Server "server_name">
1097 #    Collect "latency"
1098 #    Collect "udp-answers" "udp-queries"
1099 #    Socket "/var/run/pdns.controlsocket"
1100 #  </Server>
1101 #  <Recursor "recursor_name">
1102 #    Collect "questions"
1103 #    Collect "cache-hits" "cache-misses"
1104 #    Socket "/var/run/pdns_recursor.controlsocket"
1105 #  </Recursor>
1106 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1107 #</Plugin>
1108
1109 #<Plugin processes>
1110 #       Process "name"
1111 #</Plugin>
1112
1113 #<Plugin protocols>
1114 #       Value "/^Tcp:/"
1115 #       IgnoreSelected false
1116 #</Plugin>
1117
1118 #<Plugin python>
1119 #       ModulePath "/path/to/your/python/modules"
1120 #       LogTraces true
1121 #       Interactive true
1122 #       Import "spam"
1123 #
1124 #       <Module spam>
1125 #               spam "wonderful" "lovely"
1126 #       </Module>
1127 #</Plugin>
1128
1129 #<Plugin redis>
1130 #   <Node example>
1131 #      Host "redis.example.com"
1132 #      Port "6379"
1133 #      Timeout 2000
1134 #   </Node>
1135 #</Plugin>
1136
1137 #<Plugin routeros>
1138 #       <Router>
1139 #               Host "router.example.com"
1140 #               Port "8728"
1141 #               User "admin"
1142 #               Password "dozaiTh4"
1143 #               CollectInterface true
1144 #               CollectRegistrationTable true
1145 #               CollectCPULoad true
1146 #               CollectMemory true
1147 #               CollectDF true
1148 #               CollectDisk true
1149 #       </Router>
1150 #</Plugin>
1151
1152 #<Plugin rrdcached>
1153 #       DaemonAddress "unix:/tmp/rrdcached.sock"
1154 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1155 #       CreateFiles true
1156 #       CreateFilesAsync false
1157 #       CollectStatistics true
1158 #</Plugin>
1159
1160 #<Plugin rrdtool>
1161 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1162 #       CreateFilesAsync false
1163 #       CacheTimeout 120
1164 #       CacheFlush   900
1165 #       WritesPerSecond 50
1166 #</Plugin>
1167
1168 #<Plugin sensors>
1169 #       SensorConfigFile "/etc/sensors.conf"
1170 #       Sensor "it8712-isa-0290/temperature-temp1"
1171 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1172 #       Sensor "it8712-isa-0290/voltage-in8"
1173 #       IgnoreSelected false
1174 #</Plugin>
1175
1176 #<Plugin sigrok>
1177 #  LogLevel 3
1178 #  <Device "AC Voltage">
1179 #    Driver "fluke-dmm"
1180 #    MinimumInterval 10
1181 #    Conn "/dev/ttyUSB2"
1182 #  </Device>
1183 #  <Device "Sound Level">
1184 #    Driver "cem-dt-885x"
1185 #    Conn "/dev/ttyUSB1"
1186 #  </Device>
1187 #</Plugin>
1188
1189 #<Plugin smart>
1190 #  Disk "/^[hs]d[a-f][0-9]?$/"
1191 #  IgnoreSelected false
1192 #</Plugin>
1193
1194 #<Plugin snmp>
1195 #   <Data "powerplus_voltge_input">
1196 #       Type "voltage"
1197 #       Table false
1198 #       Instance "input_line1"
1199 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1200 #   </Data>
1201 #   <Data "hr_users">
1202 #       Type "users"
1203 #       Table false
1204 #       Instance ""
1205 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1206 #   </Data>
1207 #   <Data "std_traffic">
1208 #       Type "if_octets"
1209 #       Table true
1210 #       Instance "IF-MIB::ifDescr"
1211 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1212 #   </Data>
1213 #
1214 #   <Host "some.switch.mydomain.org">
1215 #       Address "192.168.0.2"
1216 #       Version 1
1217 #       Community "community_string"
1218 #       Collect "std_traffic"
1219 #       Interval 120
1220 #   </Host>
1221 #   <Host "some.server.mydomain.org">
1222 #       Address "192.168.0.42"
1223 #       Version 2
1224 #       Community "another_string"
1225 #       Collect "std_traffic" "hr_users"
1226 #   </Host>
1227 #   <Host "some.ups.mydomain.org">
1228 #       Address "192.168.0.3"
1229 #       Version 1
1230 #       Community "more_communities"
1231 #       Collect "powerplus_voltge_input"
1232 #       Interval 300
1233 #   </Host>
1234 #</Plugin>
1235
1236 #<Plugin statsd>
1237 #  Host "::"
1238 #  Port "8125"
1239 #  DeleteCounters false
1240 #  DeleteTimers   false
1241 #  DeleteGauges   false
1242 #  DeleteSets     false
1243 #  CounterSum     false
1244 #  TimerPercentile 90.0
1245 #  TimerPercentile 95.0
1246 #  TimerPercentile 99.0
1247 #  TimerLower     false
1248 #  TimerUpper     false
1249 #  TimerSum       false
1250 #  TimerCount     false
1251 #</Plugin>
1252
1253 #<Plugin swap>
1254 #       ReportByDevice false
1255 #       ReportBytes true
1256 #       ValuesAbsolute true
1257 #       ValuesPercentage false
1258 #</Plugin>
1259
1260 #<Plugin table>
1261 #       <Table "/proc/slabinfo">
1262 #               Instance "slabinfo"
1263 #               Separator " "
1264 #               <Result>
1265 #                       Type gauge
1266 #                       InstancePrefix "active_objs"
1267 #                       InstancesFrom 0
1268 #                       ValuesFrom 1
1269 #               </Result>
1270 #               <Result>
1271 #                       Type gauge
1272 #                       InstancePrefix "objperslab"
1273 #                       InstancesFrom 0
1274 #                       ValuesFrom 4
1275 #               </Result>
1276 #       </Table>
1277 #</Plugin>
1278
1279 #<Plugin tail>
1280 #  <File "/var/log/exim4/mainlog">
1281 #    Instance "exim"
1282 #    Interval 60
1283 #    <Match>
1284 #      Regex "S=([1-9][0-9]*)"
1285 #      DSType "CounterAdd"
1286 #      Type "ipt_bytes"
1287 #      Instance "total"
1288 #    </Match>
1289 #    <Match>
1290 #      Regex "\\<R=local_user\\>"
1291 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1292 #      DSType "CounterInc"
1293 #      Type "counter"
1294 #      Instance "local_user"
1295 #    </Match>
1296 #  </File>
1297 #  <File "/var/log/nginx/apache-time.log">
1298 #    #Use the following log format in nginx:
1299 #    #log_format response_time '[$host] "$upstream_response_time" ...'
1300 #    Instance "apache"
1301 #    <Match>
1302 #      Regex "^\\S+ \"([0-9.]+)\""
1303 #      <DSType Distribution>
1304 #        Percentile 80    # -> latency-foo-80
1305 #        Percentile 95    # -> latency-foo-95
1306 #        Percentile 99    # -> latency-foo-99
1307 #        Bucket 0   0.1   # -> bucket-latency-foo-0_0.1
1308 #        Bucket 0.1 0.2   # -> bucket-latency-foo-0.1_0.2
1309 #        Bucket 0.2 0.5   # -> bucket-latency-foo-0.2_0.5
1310 #        Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
1311 #        Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
1312 #        Bucket 2.0 0     # -> bucket-latency-foo-2_inf
1313 #      </DSType>
1314 #      Type "latency"
1315 #      Instance "foo"
1316 #    </Match>
1317 #  </File>
1318 #</Plugin>
1319
1320 #<Plugin tail_csv>
1321 #   <Metric "dropped">
1322 #       Type "percent"
1323 #       Instance "dropped"
1324 #       ValueFrom 1
1325 #   </Metric>
1326 #   <Metric "mbps">
1327 #       Type "bytes"
1328 #       Instance "wire-realtime"
1329 #       ValueFrom 2
1330 #   </Metric>
1331 #   <Metric "alerts">
1332 #       Type "alerts_per_second"
1333 #       ValueFrom 3
1334 #   </Metric>
1335 #   <Metric "kpps">
1336 #       Type "kpackets_wire_per_sec.realtime"
1337 #       ValueFrom 4
1338 #   </Metric>
1339 #   <File "/var/log/snort/snort.stats">
1340 #       Instance "snort-eth0"
1341 #       Interval 600
1342 #       Collect "dropped" "mbps" "alerts" "kpps"
1343 #       TimeFrom 0
1344 #   </File>
1345 #</Plugin>
1346
1347 #<Plugin tcpconns>
1348 #       ListeningPorts false
1349 #       AllPortsSummary false
1350 #       LocalPort "25"
1351 #       RemotePort "25"
1352 #</Plugin>
1353
1354 #<Plugin teamspeak2>
1355 #       Host "127.0.0.1"
1356 #       Port "51234"
1357 #       Server "8767"
1358 #</Plugin>
1359
1360 #<Plugin ted>
1361 #       Device "/dev/ttyUSB0"
1362 #       Retries 0
1363 #</Plugin>
1364
1365 #<Plugin thermal>
1366 #       ForceUseProcfs false
1367 #       Device "THRM"
1368 #       IgnoreSelected false
1369 #</Plugin>
1370
1371 #<Plugin tokyotyrant>
1372 #       Host "localhost"
1373 #       Port "1978"
1374 #</Plugin>
1375
1376 #<Plugin turbostat>
1377 ##      None of the following option should be set manually
1378 ##      This plugin automatically detect most optimal options
1379 ##      Only set values here if:
1380 ##      - The module asks you to
1381 ##      - You want to disable the collection of some data
1382 ##      - Your (Intel) CPU is not supported (yet) by the module
1383 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1384 ##      In the last two cases, please open a bug request
1385 #
1386 #       TCCActivationTemp "100"
1387 #       CoreCstates "392"
1388 #       PackageCstates "396"
1389 #       SystemManagementInterrupt true
1390 #       DigitalTemperatureSensor true
1391 #       PackageThermalManagement true
1392 #       RunningAveragePowerLimit "7"    
1393 #</Plugin>
1394
1395 #<Plugin unixsock>
1396 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1397 #       SocketGroup "collectd"
1398 #       SocketPerms "0660"
1399 #       DeleteSocket false
1400 #</Plugin>
1401
1402 #<Plugin uuid>
1403 #       UUIDFile "/etc/uuid"
1404 #</Plugin>
1405
1406 #<Plugin mic>
1407 #   ShowCPU true
1408 #   ShowCPUCores true
1409 #   ShowMemory true
1410 #   ShowTemperatures true
1411 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1412 ##  then inverted with a IgnoreSelectedTemperature.
1413 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1414 #   Temperature vddg
1415 #   IgnoreSelectedTemperature true
1416 #   ShowPower true
1417 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1418 ##  then inverted with a IgnoreSelectedTemperature.
1419 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1420 #   Power total1
1421 #   IgnoreSelectedPower true
1422 #</Plugin>
1423
1424 #<Plugin varnish>
1425 #   This tag support an argument if you want to
1426 #   monitor the local instance just use </Instance>
1427 #   If you prefer defining another instance you can do
1428 #   so by using <Instance "myinstance">
1429 #   <Instance>
1430 #      CollectBackend true
1431 #      CollectBan false           # Varnish 3 and above
1432 #      CollectCache true
1433 #      CollectConnections true
1434 #      CollectDirectorDNS false   # Varnish 3 only
1435 #      CollectESI false
1436 #      CollectFetch false
1437 #      CollectHCB false
1438 #      CollectObjects false
1439 #      CollectPurge false         # Varnish 2 only
1440 #      CollectSession false
1441 #      CollectSHM true
1442 #      CollectSMA false           # Varnish 2 only
1443 #      CollectSMS false
1444 #      CollectSM false            # Varnish 2 only
1445 #      CollectStruct false
1446 #      CollectTotals false
1447 #      CollectUptime false        # Varnish 3 and above
1448 #      CollectVCL false
1449 #      CollectVSM false           # Varnish 4 only
1450 #      CollectWorkers false
1451 #   </Instance>
1452 #</Plugin>
1453
1454 #<Plugin virt>
1455 #       Connection "xen:///"
1456 #       RefreshInterval 60
1457 #       Domain "name"
1458 #       BlockDevice "name:device"
1459 #       BlockDeviceFormat target
1460 #       BlockDeviceFormatBasename false
1461 #       InterfaceDevice "name:device"
1462 #       IgnoreSelected false
1463 #       HostnameFormat name
1464 #       InterfaceFormat name
1465 #       PluginInstanceFormat name
1466 #       Instances 1
1467 #       ExtraStats "disk pcpu"
1468 #</Plugin>
1469
1470 #<Plugin vmem>
1471 #       Verbose false
1472 #</Plugin>
1473
1474 #<Plugin write_graphite>
1475 #  <Node "example">
1476 #    Host "localhost"
1477 #    Port "2003"
1478 #    Protocol "tcp"
1479 #    ReconnectInterval 0
1480 #    LogSendErrors true
1481 #    Prefix "collectd"
1482 #    Postfix "collectd"
1483 #    StoreRates true
1484 #    AlwaysAppendDS false
1485 #    EscapeCharacter "_"
1486 #    SeparateInstances false
1487 #    PreserveSeparator false
1488 #    DropDuplicateFields false
1489 #  </Node>
1490 #</Plugin>
1491
1492 #<Plugin write_http>
1493 #       <Node "example">
1494 #               URL "http://example.com/collectd-post"
1495 #               User "collectd"
1496 #               Password "weCh3ik0"
1497 #               VerifyPeer true
1498 #               VerifyHost true
1499 #               CACert "/etc/ssl/ca.crt"
1500 #               CAPath "/etc/ssl/certs/"
1501 #               ClientKey "/etc/ssl/client.pem"
1502 #               ClientCert "/etc/ssl/client.crt"
1503 #               ClientKeyPass "secret"
1504 #               Header "X-Custom-Header: custom_value"
1505 #               SSLVersion "TLSv1"
1506 #               Format "Command"
1507 #               Metrics true
1508 #               Notifications false
1509 #               StoreRates false
1510 #               BufferSize 4096
1511 #               LowSpeedLimit 0
1512 #               Timeout 0
1513 #       </Node>
1514 #</Plugin>
1515
1516 #<Plugin write_kafka>
1517 #  Property "metadata.broker.list" "localhost:9092"
1518 #  <Topic "collectd">
1519 #    Format JSON
1520 #  </Topic>
1521 #</Plugin>
1522
1523 #<Plugin write_mongodb>
1524 #       <Node "example">
1525 #               Host "localhost"
1526 #               Port "27017"
1527 #               Timeout 1000
1528 #               StoreRates false
1529 #               Database "auth_db"
1530 #               User "auth_user"
1531 #               Password "auth_passwd"
1532 #       </Node>
1533 #</Plugin>
1534
1535 #<Plugin write_prometheus>
1536 #       Port "9103"
1537 #</Plugin>
1538
1539 #<Plugin write_redis>
1540 #       <Node "example">
1541 #               Host "localhost"
1542 #               Port "6379"
1543 #               Timeout 1000
1544 #               Prefix "collectd/"
1545 #       </Node>
1546 #</Plugin>
1547
1548 #<Plugin write_riemann>
1549 #       <Node "example">
1550 #               Host "localhost"
1551 #               Port 5555
1552 #               Protocol TCP
1553 #               Batch true
1554 #               BatchMaxSize 8192
1555 #               StoreRates true
1556 #               AlwaysAppendDS false
1557 #               TTLFactor 2.0
1558 #               Notifications true
1559 #               CheckThresholds false
1560 #               EventServicePrefix ""
1561 #       </Node>
1562 #       Tag "foobar"
1563 #       Attribute "foo" "bar"
1564 #</Plugin>
1565
1566 #<Plugin write_sensu>
1567 #       <Node "example">
1568 #               Host "localhost"
1569 #               Port 3030
1570 #               StoreRates true
1571 #               AlwaysAppendDS false
1572 #               Notifications true
1573 #               Metrics true
1574 #               EventServicePrefix ""
1575 #               MetricHandler "influx"
1576 #               MetricHandler "default"
1577 #               NotificationHandler "flapjack"
1578 #               NotificationHandler "howling_monkey"
1579 #       </Node>
1580 #       Tag "foobar"
1581 #       Attribute "foo" "bar"
1582 #</Plugin>
1583
1584 #<Plugin write_tsdb>
1585 #       <Node>
1586 #               Host "localhost"
1587 #               Port "4242"
1588 #               HostTags "status=production"
1589 #               StoreRates false
1590 #               AlwaysAppendDS false
1591 #       </Node>
1592 #</Plugin>
1593
1594 #<Plugin zookeeper>
1595 #    Host "localhost"
1596 #    Port "2181"
1597 #</Plugin>
1598
1599 ##############################################################################
1600 # Filter configuration                                                       #
1601 #----------------------------------------------------------------------------#
1602 # The following configures collectd's filtering mechanism. Before changing   #
1603 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1604 # in the collectd.conf(5) manual page.                                       #
1605 ##############################################################################
1606
1607 # Load required matches:
1608 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1609 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1610 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1611 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1612 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1613
1614 # Load required targets:
1615 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1616 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1617 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1618 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1619 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1620
1621 #----------------------------------------------------------------------------#
1622 # The following block demonstrates the default behavior if no filtering is   #
1623 # configured at all: All values will be sent to all available write plugins. #
1624 #----------------------------------------------------------------------------#
1625
1626 #<Chain "PostCache">
1627 #  Target "write"
1628 #</Chain>
1629
1630 ##############################################################################
1631 # Threshold configuration                                                    #
1632 #----------------------------------------------------------------------------#
1633 # The following outlines how to configure collectd's threshold checking      #
1634 # plugin. The plugin and possible configuration options are documented in    #
1635 # the collectd-threshold(5) manual page.                                     #
1636 ##############################################################################
1637
1638 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1639 #<Plugin threshold>
1640 #  <Type "foo">
1641 #    WarningMin    0.00
1642 #    WarningMax 1000.00
1643 #    FailureMin    0.00
1644 #    FailureMax 1200.00
1645 #    Invert false
1646 #    Instance "bar"
1647 #  </Type>
1648 #
1649 #  <Plugin "interface">
1650 #    Instance "eth0"
1651 #    <Type "if_octets">
1652 #      FailureMax 10000000
1653 #      DataSource "rx"
1654 #    </Type>
1655 #  </Plugin>
1656 #
1657 #  <Host "hostname">
1658 #    <Type "cpu">
1659 #      Instance "idle"
1660 #      FailureMin 10
1661 #    </Type>
1662 #
1663 #    <Plugin "memory">
1664 #      <Type "memory">
1665 #        Instance "cached"
1666 #        WarningMin 100000000
1667 #      </Type>
1668 #    </Plugin>
1669 #
1670 #    <Type "load">
1671 #       DataSource "midterm"
1672 #       FailureMax 4
1673 #       Hits 3
1674 #       Hysteresis 3
1675 #    </Type>
1676 #  </Host>
1677 #</Plugin>