2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
7 ##############################################################################
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon. #
11 ##############################################################################
15 #BaseDir "${prefix}/var/lib/collectd"
16 #PIDFile "${prefix}/var/run/collectd.pid"
17 #PluginDir "${exec_prefix}/lib/collectd"
18 #TypesDB "/usr/share/collectd/types.db"
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 #----------------------------------------------------------------------------#
27 #----------------------------------------------------------------------------#
28 # When enabled, internal statistics are collected, using "collectd" as the #
30 # Disabled by default. #
31 #----------------------------------------------------------------------------#
32 #CollectInternalStats false
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: #
40 #----------------------------------------------------------------------------#
43 #MaxReadInterval 86400
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
53 ##############################################################################
55 #----------------------------------------------------------------------------#
56 # Plugins which provide logging functions should be loaded first, so log #
57 # messages generated when loading or configuring other plugins can be #
59 ##############################################################################
63 #LoadPlugin log_logstash
72 #<Plugin log_logstash>
74 # File "${prefix}/var/log/collectd.json.log"
81 ##############################################################################
82 # LoadPlugin section #
83 #----------------------------------------------------------------------------#
84 # Lines beginning with a single `#' belong to plugins which have been built #
85 # but are disabled by default. #
87 # Lines begnning with `##' belong to plugins which have not been built due #
88 # to missing dependencies or because they have been deactivated explicitly. #
89 ##############################################################################
91 #LoadPlugin aggregation
95 ##LoadPlugin apple_sensors
98 ##LoadPlugin barometer
102 #LoadPlugin conntrack
103 #LoadPlugin contextswitch
109 #LoadPlugin curl_json
121 #LoadPlugin filecount
138 #LoadPlugin memcachec
139 #LoadPlugin memcached
142 #LoadPlugin multimeter
149 ##LoadPlugin notify_desktop
150 #LoadPlugin notify_email
156 ##LoadPlugin openldap
162 #LoadPlugin postgresql
164 #LoadPlugin processes
165 #LoadPlugin protocols
168 ##LoadPlugin routeros
169 #LoadPlugin rrdcached
183 #LoadPlugin teamspeak2
186 #LoadPlugin tokyotyrant
187 #LoadPlugin turbostat
198 #LoadPlugin write_graphite
199 LoadPlugin write_http
200 ##LoadPlugin write_kafka
201 #LoadPlugin write_log
202 ##LoadPlugin write_mongodb
203 #LoadPlugin write_redis
204 #LoadPlugin write_riemann
205 #LoadPlugin write_sensu
206 #LoadPlugin write_tsdb
209 #LoadPlugin zookeeper
211 ##############################################################################
212 # Plugin configuration #
213 #----------------------------------------------------------------------------#
214 # In this section configuration stubs for each plugin are provided. A desc- #
215 # ription of those options is available in the collectd.conf(5) manual page. #
216 ##############################################################################
218 #<Plugin aggregation>
220 # #Host "unspecified"
222 # #PluginInstance "unspecified"
224 # #TypeInstance "unspecified"
227 # GroupBy "TypeInstance"
231 # CalculateAverage true
232 # CalculateMinimum false
233 # CalculateMaximum false
234 # CalculateStddev false
245 # Exchange "amq.fanout"
246 # RoutingKey "collectd"
249 # ConnectionRetryDelay 0
255 # URL "http://localhost/status?auto"
258 # CACert "/etc/ssl/ca.crt"
273 # URL "http://localhost/ascent/status/"
276 # CACert "/etc/ssl/ca.crt"
279 #<Plugin "barometer">
280 # Device "/dev/i2c-0";
283 # TemperatureOffset 0.0
286 # TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
290 # ValuesPercentage false
295 # URL "http://localhost:8053/"
301 # ZoneMaintStats true
302 # ResolverStats false
310 # Zone "127.in-addr.arpa/IN"
315 # LongRunAvgLatency false
316 # ConvertSpecialMetricTypes true
318 # SocketPath "/var/run/ceph/ceph-osd.0.asok"
321 # SocketPath "/var/run/ceph/ceph-osd.1.asok"
324 # SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
327 # SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
333 # IgnoreSelected false
339 # ValuesPercentage false
343 # DataDir "${prefix}/var/lib/collectd/csv"
348 # <Page "stock_quotes">
349 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
355 # CACert "/path/to/ca.crt"
356 # Header "X-Custom-Header: foobar"
359 # MeasureResponseTime false
360 # MeasureResponseCode false
362 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
363 # DSType "GaugeAverage"
371 # <URL "http://localhost:80/test.json">
372 # Instance "test_http_json"
373 # <Key "testArray/0">
377 # <Key "testArray/1">
381 # <Key "testArrayInbetween/0/blarg">
385 # <Key "testArrayInbetween/1/blub">
389 # <Key "testDirectHit">
393 # <Key "testSubLevelHit/oneMoreLevel">
398 # put this as test.json on your webserver, the above config demonstraces
402 # "testArrayInbetween":[{"blarg":3},{"blub":4}],
404 # "testSubLevelHit":{"oneMoreLevel":6}
406 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
407 # <URL "http://localhost:5984/_stats">
409 # <Key "httpd/requests/count">
410 # Type "http_requests"
413 # <Key "httpd_request_methods/*/count">
414 # Type "http_request_methods"
417 # <Key "httpd_status_codes/*/count">
418 # Type "http_response_codes"
421 ## Database status metrics:
422 # <URL "http://localhost:5984/_all_dbs">
424 # <Key "*/doc_count">
427 # <Key "*/doc_del_count">
430 # <Key "*/disk_size">
437 # <URL "http://localhost/stats.xml">
439 # Instance "some_instance"
441 # Password "thaiNg0I"
445 # CACert "/path/to/ca.crt"
446 # Header "X-Custom-Header: foobar"
449 # <XPath "table[@id=\"magic_level\"]/tr">
451 # #InstancePrefix "prefix-"
452 # InstanceFrom "td[1]"
453 # ValuesFrom "td[2]/span[@class=\"level\"]"
459 # <Query "num_of_customers">
460 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
463 # InstancesFrom "c_key"
464 # ValuesFrom "c_value"
467 # <Database "customers_db">
469 # DriverOption "host" "localhost"
470 # DriverOption "username" "collectd"
471 # DriverOption "password" "AeXohy0O"
472 # DriverOption "dbname" "custdb0"
473 # #SelectDB "custdb0"
474 # Query "num_of_customers"
482 # Device "192.168.0.2:/mnt/nfs"
485 # IgnoreSelected false
486 # ReportByDevice false
487 # ReportReserved false
489 # ValuesAbsolute true
490 # ValuesPercentage false
494 # Disk "/^[hs]d[a-f][0-9]?$/"
495 # IgnoreSelected false
497 # UdevNameAttr "DEVNAME"
502 # IgnoreSource "192.168.0.1"
503 # SelectNumericQueryTypes true
507 # SocketFile "${prefix}/var/run/collectd-email"
508 # SocketGroup "collectd"
515 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
516 # Map "multicast" "if_multicast"
521 # Exec "user:group" "/path/to/exec"
522 # NotificationExec "user:group" "/path/to/exec"
526 # ValuesAbsolute true
527 # ValuesPercentage false
531 # <Directory "/path/to/dir">
537 # IncludeHidden false
542 # MCReceiveFrom "239.2.11.71" "8649"
543 # <Metric "swap_total">
545 # TypeInstance "total"
548 # <Metric "swap_free">
550 # TypeInstance "free"
562 # IgnoreSelected false
566 # Sensor "some_sensor"
567 # Sensor "another_one"
568 # IgnoreSelected false
569 # NotifySensorAdd false
570 # NotifySensorRemove true
571 # NotifySensorNotPresent false
582 # IgnoreSelected true
586 # JVMArg "-verbose:jni"
587 # JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
589 # LoadPlugin "org.collectd.java.Foobar"
590 # <Plugin "org.collectd.java.Foobar">
591 # # To be parsed by the plugin
596 # ReportRelative true
601 # ReportBySerial false
606 # IgnoreSelected false
609 # WatchAdd "node_octets"
610 # WatchAdd "node_rssi"
611 # WatchAdd "is_rx_acl"
612 # WatchAdd "is_scan_active"
622 # IgnoreSelected false
626 # <Page "plugin_instance">
630 # Regex "(\\d+) bytes sent"
631 # ExcludeRegex "<lines to be excluded>"
634 # Instance "type_instance"
647 # ValuesAbsolute true
648 # ValuesPercentage false
654 # RegisterCmd ReadHolding
666 # Instance "foobar" # optional
667 # Collect "data_name"
674 # Host "database.serv.er"
683 # <Database db_name2>
686 # Socket "/var/run/mysql/mysqld.sock"
688 # SlaveNotifications true
693 # <Host "netapp1.example.com">
698 # Password "aef4Aebe"
705 # GetBufferCache true
717 # IgnoreSelectedIO false
719 # IgnoreSelectedOps false
720 # GetLatency "volume0"
721 # IgnoreSelectedLatency false
728 # IgnoreSelectedCapacity false
731 # IgnoreSelectedSnapshot false
746 # VerboseInterface "All"
747 # QDisc "eth0" "pfifo_fast-1:0"
748 # Class "ppp0" "htb-1:10"
749 # Filter "ppp0" "u32-1:0"
750 # IgnoreSelected false
754 Listen "192.168.121.2" "25826"
759 # Server "ff18::efc0:4a42" "25826"
760 # <Server "239.192.74.66" "25826">
761 # SecurityLevel Encrypt
765 # ResolveInterval 14400
770 # Listen "ff18::efc0:4a42" "25826"
771 # <Listen "239.192.74.66" "25826">
773 # AuthFile "/etc/collectd/passwd"
778 # # proxy setup (client and server as above):
781 # # statistics about the network plugin itself
784 # # "garbage collection"
789 # URL "http://localhost/status?auto"
792 # CACert "/etc/ssl/ca.crt"
795 #<Plugin notify_desktop>
797 # WarningTimeout 5000
801 #<Plugin notify_email>
802 # SMTPServer "localhost"
804 # SMTPUser "my-username"
805 # SMTPPassword "my-password"
806 # From "collectd@main0server.com"
807 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
808 # Subject "Aaaaaa!! %s on %s!!!!!"
809 # Recipient "email1@domain1.net"
810 # Recipient "email2@domain2.com"
816 # ReverseLookups false
821 # UPS "upsname@hostname:port"
827 # CollectLinks "Summary"
828 # CollectRoutes "Summary"
829 # CollectTopology "Summary"
833 # Device "-s localhost:4304"
834 # Sensor "F10FCA000800"
835 # IgnoreSelected false
839 # <Instance "localhost">
840 # URL "ldap://localhost:389"
843 # CACert "/path/to/ca.crt"
850 # StatusFile "/etc/openvpn/openvpn-status.log"
851 # ImprovedNamingSchema false
852 # CollectCompression true
853 # CollectIndividualUsers true
854 # CollectUserCount false
858 # <Query "out_of_stock">
859 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
862 # InstancesFrom "category"
866 # <Database "product_information">
870 # Query "out_of_stock"
875 # IncludeDir "/my/include/path"
876 # BaseName "Collectd::Plugins"
878 # LoadPlugin Monitorus
892 # Server "server name"
893 # Script "script name"
898 # Host "host.foo.bar"
902 # SourceAddress "1.2.3.4"
909 # Statement "SELECT magic FROM wizard WHERE host = $1;"
913 # InstancePrefix "magic"
917 # <Query rt36_tickets>
918 # Statement "SELECT COUNT(type) AS count, type \
919 # FROM (SELECT CASE \
920 # WHEN resolved = 'epoch' THEN 'open' \
921 # ELSE 'resolved' END AS type \
922 # FROM tickets) type \
926 # InstancePrefix "rt36_tickets"
927 # InstancesFrom "type"
932 # # See contrib/postgresql/collectd_insert.sql for details
933 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
942 # KRBSrvName "kerberos_service_name"
947 # Service "service_name"
948 # Query backend # predefined
952 # Service "collectd_store"
954 # # see collectd.conf(5) for details
960 # <Server "server_name">
962 # Collect "udp-answers" "udp-queries"
963 # Socket "/var/run/pdns.controlsocket"
965 # <Recursor "recursor_name">
966 # Collect "questions"
967 # Collect "cache-hits" "cache-misses"
968 # Socket "/var/run/pdns_recursor.controlsocket"
970 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
979 # IgnoreSelected false
983 # ModulePath "/path/to/your/python/modules"
989 # spam "wonderful" "lovely"
995 # Host "redis.example.com"
1003 # Host "router.example.com"
1006 # Password "dozaiTh4"
1007 # CollectInterface true
1008 # CollectRegistrationTable true
1009 # CollectCPULoad true
1010 # CollectMemory true
1017 # DaemonAddress "unix:/tmp/rrdcached.sock"
1018 # DataDir "${prefix}/var/lib/collectd/rrd"
1020 # CreateFilesAsync false
1021 # CollectStatistics true
1025 DataDir "/var/lib/collectd/rrd"
1026 CreateFilesAsync false
1033 # SensorConfigFile "/etc/sensors.conf"
1034 # Sensor "it8712-isa-0290/temperature-temp1"
1035 # Sensor "it8712-isa-0290/fanspeed-fan3"
1036 # Sensor "it8712-isa-0290/voltage-in8"
1037 # IgnoreSelected false
1042 # <Device "AC Voltage">
1043 # Driver "fluke-dmm"
1044 # MinimumInterval 10
1045 # Conn "/dev/ttyUSB2"
1047 # <Device "Sound Level">
1048 # Driver "cem-dt-885x"
1049 # Conn "/dev/ttyUSB1"
1054 # Disk "/^[hs]d[a-f][0-9]?$/"
1055 # IgnoreSelected false
1059 # <Data "powerplus_voltge_input">
1062 # Instance "input_line1"
1063 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1069 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1071 # <Data "std_traffic">
1074 # Instance "IF-MIB::ifDescr"
1075 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1078 # <Host "some.switch.mydomain.org">
1079 # Address "192.168.0.2"
1081 # Community "community_string"
1082 # Collect "std_traffic"
1085 # <Host "some.server.mydomain.org">
1086 # Address "192.168.0.42"
1088 # Community "another_string"
1089 # Collect "std_traffic" "hr_users"
1091 # <Host "some.ups.mydomain.org">
1092 # Address "192.168.0.3"
1094 # Community "more_communities"
1095 # Collect "powerplus_voltge_input"
1103 # DeleteCounters false
1104 # DeleteTimers false
1105 # DeleteGauges false
1107 # TimerPercentile 90.0
1108 # TimerPercentile 95.0
1109 # TimerPercentile 99.0
1117 # ReportByDevice false
1119 # ValuesAbsolute true
1120 # ValuesPercentage false
1124 # <Table "/proc/slabinfo">
1125 # Instance "slabinfo"
1129 # InstancePrefix "active_objs"
1135 # InstancePrefix "objperslab"
1143 # <File "/var/log/exim4/mainlog">
1147 # Regex "S=([1-9][0-9]*)"
1148 # DSType "CounterAdd"
1153 # Regex "\\<R=local_user\\>"
1154 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1155 # DSType "CounterInc"
1157 # Instance "local_user"
1163 # <Metric "dropped">
1165 # Instance "dropped"
1170 # Instance "wire-realtime"
1174 # Type "alerts_per_second"
1178 # Type "kpackets_wire_per_sec.realtime"
1181 # <File "/var/log/snort/snort.stats">
1182 # Instance "snort-eth0"
1184 # Collect "dropped" "mbps" "alerts" "kpps"
1190 # ListeningPorts false
1191 # AllPortsSummary false
1196 #<Plugin teamspeak2>
1203 # Device "/dev/ttyUSB0"
1208 # ForceUseProcfs false
1210 # IgnoreSelected false
1213 #<Plugin tokyotyrant>
1219 ## None of the following option should be set manually
1220 ## This plugin automatically detect most optimal options
1221 ## Only set values here if:
1222 ## - The module ask you to
1223 ## - You want to disable the collection of some data
1224 ## - Your (intel) CPU is not supported (yet) by the module
1225 ## - The module generate a lot of errors 'MSR offset 0x... read failed'
1226 ## In the last two cases, please open a bug request
1228 # TCCActivationTemp "100"
1230 # PackageCstates "396"
1231 # SystemManagementInterrupt true
1232 # DigitalTemperatureSensor true
1233 # PackageThermalManagement true
1234 # RunningAveragePowerLimit "7"
1238 # SocketFile "/usr/var/run/collectd-unixsock"
1239 # SocketGroup "collectd"
1240 # SocketPerms "0660"
1241 # DeleteSocket false
1245 # UUIDFile "/etc/uuid"
1252 # ShowTemperatures true
1253 ## Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1254 ## then inverted with a IgnoreSelectedTemperature.
1255 ## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1257 # IgnoreSelectedTemperature true
1259 ## Power Sensors can be ignored/shown by repeated #Power lines, and
1260 ## then inverted with a IgnoreSelectedTemperature.
1261 ## Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1263 # IgnoreSelectedPower true
1267 # This tag support an argument if you want to
1268 # monitor the local instance just use </Instance>
1269 # If you prefer defining another instance you can do
1270 # so by using <Instance "myinstance">
1272 # CollectBackend true
1273 # CollectBan false # Varnish 3 and above
1275 # CollectConnections true
1276 # CollectDirectorDNS false # Varnish 3 only
1278 # CollectFetch false
1280 # CollectObjects false
1281 # CollectPurge false # Varnish 2 only
1282 # CollectSession false
1284 # CollectSMA false # Varnish 2 only
1286 # CollectSM false # Varnish 2 only
1287 # CollectStruct false
1288 # CollectTotals false
1289 # CollectUptime false # Varnish 3 and above
1291 # CollectVSM false # Varnish 4 only
1292 # CollectWorkers false
1297 # Connection "xen:///"
1298 # RefreshInterval 60
1300 # BlockDevice "name:device"
1301 # InterfaceDevice "name:device"
1302 # IgnoreSelected false
1303 # HostnameFormat name
1304 # InterfaceFormat name
1305 # PluginInstanceFormat name
1312 #<Plugin write_graphite>
1317 # LogSendErrors true
1319 # Postfix "collectd"
1321 # AlwaysAppendDS false
1322 # EscapeCharacter "_"
1327 <Node "collectd_exporter">
1328 URL "http://192.168.121.2:9103/collectd-post"
1334 #<Plugin write_http>
1336 # URL "http://example.com/collectd-post"
1338 # Password "weCh3ik0"
1341 # CACert "/etc/ssl/ca.crt"
1342 # CAPath "/etc/ssl/certs/"
1343 # ClientKey "/etc/ssl/client.pem"
1344 # ClientCert "/etc/ssl/client.crt"
1345 # ClientKeyPass "secret"
1346 # SSLVersion "TLSv1"
1355 #<Plugin write_kafka>
1356 # Property "metadata.broker.list" "localhost:9092"
1357 # <Topic "collectd">
1362 #<Plugin write_mongodb>
1368 # Database "auth_db"
1370 # Password "auth_passwd"
1374 #<Plugin write_redis>
1382 #<Plugin write_riemann>
1390 # AlwaysAppendDS false
1392 # Notifications true
1393 # CheckThresholds false
1394 # EventServicePrefix ""
1397 # Attribute "foo" "bar"
1400 #<Plugin write_sensu>
1405 # AlwaysAppendDS false
1406 # Notifications true
1408 # EventServicePrefix ""
1409 # MetricHandler "influx"
1410 # MetricHandler "default"
1411 # NotificationHandler "flapjack"
1412 # NotificationHandler "howling_monkey"
1415 # Attribute "foo" "bar"
1418 #<Plugin write_tsdb>
1422 # HostTags "status=production"
1424 # AlwaysAppendDS false
1433 ##############################################################################
1434 # Filter configuration #
1435 #----------------------------------------------------------------------------#
1436 # The following configures collectd's filtering mechanism. Before changing #
1437 # anything in this section, please read the `FILTER CONFIGURATION' section #
1438 # in the collectd.conf(5) manual page. #
1439 ##############################################################################
1441 # Load required matches:
1442 #LoadPlugin match_empty_counter
1443 #LoadPlugin match_hashed
1444 #LoadPlugin match_regex
1445 #LoadPlugin match_value
1446 #LoadPlugin match_timediff
1448 # Load required targets:
1449 #LoadPlugin target_notification
1450 #LoadPlugin target_replace
1451 #LoadPlugin target_scale
1452 #LoadPlugin target_set
1453 #LoadPlugin target_v5upgrade
1455 #----------------------------------------------------------------------------#
1456 # The following block demonstrates the default behavior if no filtering is #
1457 # configured at all: All values will be sent to all available write plugins. #
1458 #----------------------------------------------------------------------------#
1460 #<Chain "PostCache">
1464 ##############################################################################
1465 # Threshold configuration #
1466 #----------------------------------------------------------------------------#
1467 # The following outlines how to configure collectd's threshold checking #
1468 # plugin. The plugin and possible configuration options are documented in #
1469 # the collectd-threshold(5) manual page. #
1470 ##############################################################################
1472 #LoadPlugin "threshold"
1476 # WarningMax 1000.00
1478 # FailureMax 1200.00
1483 # <Plugin "interface">
1485 # <Type "if_octets">
1486 # FailureMax 10000000
1500 # WarningMin 100000000
1505 # DataSource "midterm"