├── docker-compose.yml ├── README.md ├── LICENSE ├── influxdb.conf ├── types.db └── collectd.conf /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | collectd: 5 | image: fr3nd/collectd 6 | privileged: true 7 | network_mode: host 8 | volumes: 9 | - /proc:/mnt/proc:ro 10 | - ./collectd.conf:/etc/collectd/collectd.conf 11 | influxdb: 12 | image: influxdb:1.0 13 | ports: 14 | - "8083:8083" 15 | - "8086:8086" 16 | - "25826:25826/udp" 17 | volumes: 18 | - /var/lib/influxdb 19 | - ./influxdb.conf:/etc/influxdb/influxdb.conf 20 | - ./types.db:/usr/share/collectd/types.db:ro 21 | grafana: 22 | image: grafana/grafana:3.1.1 23 | ports: 24 | - "3000:3000" 25 | volumes: 26 | - /var/lib/grafana 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | This repository shows how to use a docker compose file to setup a local collectd, influxdb, grafana stack, 4 | 5 | You can use this repository to try collect system data, store it in influxdb and create graph chart in Grafana. 6 | 7 | This repository is linked from my medium post, check details [here](https://blog.laputa.io/try-influxdb-and-grafana-by-docker-6b4d50c6a446#.7z7oz5st5). 8 | 9 | # How to 10 | 11 | It's easy, just clone this repository and run: 12 | 13 | ``` 14 | $ docker-compose up -d 15 | ``` 16 | 17 | Then you can open: 18 | 19 | - influxdb admin page 20 | - grafana web page (login with admin/admin) 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Han Xiao 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /influxdb.conf: -------------------------------------------------------------------------------- 1 | reporting-disabled = false 2 | bind-address = ":8088" 3 | 4 | [meta] 5 | dir = "/var/lib/influxdb/meta" 6 | retention-autocreate = true 7 | logging-enabled = true 8 | 9 | [data] 10 | dir = "/var/lib/influxdb/data" 11 | engine = "tsm1" 12 | wal-dir = "/var/lib/influxdb/wal" 13 | wal-logging-enabled = true 14 | query-log-enabled = true 15 | cache-max-memory-size = 524288000 16 | cache-snapshot-memory-size = 26214400 17 | cache-snapshot-write-cold-duration = "1h0m0s" 18 | compact-full-write-cold-duration = "24h0m0s" 19 | max-points-per-block = 0 20 | max-series-per-database = 1000000 21 | trace-logging-enabled = false 22 | 23 | [coordinator] 24 | write-timeout = "10s" 25 | max-concurrent-queries = 0 26 | query-timeout = "0" 27 | log-queries-after = "0" 28 | max-select-point = 0 29 | max-select-series = 0 30 | max-select-buckets = 0 31 | 32 | [retention] 33 | enabled = true 34 | check-interval = "30m0s" 35 | 36 | [shard-precreation] 37 | enabled = true 38 | check-interval = "10m0s" 39 | advance-period = "30m0s" 40 | 41 | [admin] 42 | enabled = true 43 | bind-address = ":8083" 44 | https-enabled = false 45 | https-certificate = "/etc/ssl/influxdb.pem" 46 | 47 | [monitor] 48 | store-enabled = true 49 | store-database = "_internal" 50 | store-interval = "10s" 51 | 52 | [subscriber] 53 | enabled = true 54 | http-timeout = "30s" 55 | 56 | [http] 57 | enabled = true 58 | bind-address = ":8086" 59 | auth-enabled = false 60 | log-enabled = true 61 | write-tracing = false 62 | https-enabled = false 63 | https-certificate = "/etc/ssl/influxdb.pem" 64 | https-private-key = "" 65 | max-row-limit = 10000 66 | max-connection-limit = 0 67 | shared-secret = "" 68 | realm = "InfluxDB" 69 | 70 | [[graphite]] 71 | enabled = false 72 | bind-address = ":2003" 73 | database = "graphite" 74 | retention-policy = "" 75 | protocol = "tcp" 76 | batch-size = 5000 77 | batch-pending = 10 78 | batch-timeout = "1s" 79 | consistency-level = "one" 80 | separator = "." 81 | udp-read-buffer = 0 82 | 83 | [[collectd]] 84 | enabled = true 85 | bind-address = ":25826" 86 | database = "collectd" 87 | retention-policy = "" 88 | batch-size = 5000 89 | batch-pending = 10 90 | batch-timeout = "10s" 91 | read-buffer = 0 92 | typesdb = "/usr/share/collectd/types.db" 93 | 94 | [[opentsdb]] 95 | enabled = false 96 | bind-address = ":4242" 97 | database = "opentsdb" 98 | retention-policy = "" 99 | consistency-level = "one" 100 | tls-enabled = false 101 | certificate = "/etc/ssl/influxdb.pem" 102 | batch-size = 1000 103 | batch-pending = 5 104 | batch-timeout = "1s" 105 | log-point-errors = true 106 | 107 | [[udp]] 108 | enabled = false 109 | bind-address = ":8089" 110 | database = "udp" 111 | retention-policy = "" 112 | batch-size = 5000 113 | batch-pending = 10 114 | read-buffer = 0 115 | batch-timeout = "1s" 116 | precision = "" 117 | 118 | [continuous_queries] 119 | log-enabled = true 120 | enabled = true 121 | run-interval = "1s" 122 | 123 | -------------------------------------------------------------------------------- /types.db: -------------------------------------------------------------------------------- 1 | absolute value:ABSOLUTE:0:U 2 | apache_bytes value:DERIVE:0:U 3 | apache_connections value:GAUGE:0:65535 4 | apache_idle_workers value:GAUGE:0:65535 5 | apache_requests value:DERIVE:0:U 6 | apache_scoreboard value:GAUGE:0:65535 7 | ath_nodes value:GAUGE:0:65535 8 | ath_stat value:DERIVE:0:U 9 | backends value:GAUGE:0:65535 10 | bitrate value:GAUGE:0:4294967295 11 | blocked_clients value:GAUGE:0:U 12 | bytes value:GAUGE:0:U 13 | cache_eviction value:DERIVE:0:U 14 | cache_operation value:DERIVE:0:U 15 | cache_ratio value:GAUGE:0:100 16 | cache_result value:DERIVE:0:U 17 | cache_size value:GAUGE:0:U 18 | ceph_bytes value:GAUGE:U:U 19 | ceph_latency value:GAUGE:U:U 20 | ceph_rate value:DERIVE:0:U 21 | changes_since_last_save value:GAUGE:0:U 22 | charge value:GAUGE:0:U 23 | compression_ratio value:GAUGE:0:2 24 | compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U 25 | connections value:DERIVE:0:U 26 | conntrack value:GAUGE:0:4294967295 27 | contextswitch value:DERIVE:0:U 28 | count value:GAUGE:0:U 29 | counter value:COUNTER:U:U 30 | cpufreq value:GAUGE:0:U 31 | cpu value:DERIVE:0:U 32 | current_connections value:GAUGE:0:U 33 | current_sessions value:GAUGE:0:U 34 | current value:GAUGE:U:U 35 | delay value:GAUGE:-1000000:1000000 36 | derive value:DERIVE:0:U 37 | df_complex value:GAUGE:0:U 38 | df_inodes value:GAUGE:0:U 39 | df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623 40 | disk_latency read:GAUGE:0:U, write:GAUGE:0:U 41 | disk_merged read:DERIVE:0:U, write:DERIVE:0:U 42 | disk_octets read:DERIVE:0:U, write:DERIVE:0:U 43 | disk_ops_complex value:DERIVE:0:U 44 | disk_ops read:DERIVE:0:U, write:DERIVE:0:U 45 | disk_time read:DERIVE:0:U, write:DERIVE:0:U 46 | disk_io_time io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U 47 | dns_answer value:DERIVE:0:U 48 | dns_notify value:DERIVE:0:U 49 | dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U 50 | dns_opcode value:DERIVE:0:U 51 | dns_qtype_cached value:GAUGE:0:4294967295 52 | dns_qtype value:DERIVE:0:U 53 | dns_query value:DERIVE:0:U 54 | dns_question value:DERIVE:0:U 55 | dns_rcode value:DERIVE:0:U 56 | dns_reject value:DERIVE:0:U 57 | dns_request value:DERIVE:0:U 58 | dns_resolver value:DERIVE:0:U 59 | dns_response value:DERIVE:0:U 60 | dns_transfer value:DERIVE:0:U 61 | dns_update value:DERIVE:0:U 62 | dns_zops value:DERIVE:0:U 63 | drbd_resource value:DERIVE:0:U 64 | duration seconds:GAUGE:0:U 65 | email_check value:GAUGE:0:U 66 | email_count value:GAUGE:0:U 67 | email_size value:GAUGE:0:U 68 | entropy value:GAUGE:0:4294967295 69 | expired_keys value:GAUGE:0:U 70 | fanspeed value:GAUGE:0:U 71 | file_handles value:GAUGE:0:U 72 | file_size value:GAUGE:0:U 73 | files value:GAUGE:0:U 74 | flow value:GAUGE:0:U 75 | fork_rate value:DERIVE:0:U 76 | frequency_offset value:GAUGE:-1000000:1000000 77 | frequency value:GAUGE:0:U 78 | fscache_stat value:DERIVE:0:U 79 | gauge value:GAUGE:U:U 80 | hash_collisions value:DERIVE:0:U 81 | http_request_methods value:DERIVE:0:U 82 | http_requests value:DERIVE:0:U 83 | http_response_codes value:DERIVE:0:U 84 | humidity value:GAUGE:0:100 85 | if_collisions value:DERIVE:0:U 86 | if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U 87 | if_errors rx:DERIVE:0:U, tx:DERIVE:0:U 88 | if_multicast value:DERIVE:0:U 89 | if_octets rx:DERIVE:0:U, tx:DERIVE:0:U 90 | if_packets rx:DERIVE:0:U, tx:DERIVE:0:U 91 | if_rx_errors value:DERIVE:0:U 92 | if_rx_octets value:DERIVE:0:U 93 | if_tx_errors value:DERIVE:0:U 94 | if_tx_octets value:DERIVE:0:U 95 | invocations value:DERIVE:0:U 96 | io_octets rx:DERIVE:0:U, tx:DERIVE:0:U 97 | io_packets rx:DERIVE:0:U, tx:DERIVE:0:U 98 | ipt_bytes value:DERIVE:0:U 99 | ipt_packets value:DERIVE:0:U 100 | irq value:DERIVE:0:U 101 | latency value:GAUGE:0:U 102 | links value:GAUGE:0:U 103 | load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000 104 | md_disks value:GAUGE:0:U 105 | memcached_command value:DERIVE:0:U 106 | memcached_connections value:GAUGE:0:U 107 | memcached_items value:GAUGE:0:U 108 | memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U 109 | memcached_ops value:DERIVE:0:U 110 | memory value:GAUGE:0:281474976710656 111 | memory_lua value:GAUGE:0:281474976710656 112 | multimeter value:GAUGE:U:U 113 | mutex_operations value:DERIVE:0:U 114 | mysql_commands value:DERIVE:0:U 115 | mysql_handler value:DERIVE:0:U 116 | mysql_locks value:DERIVE:0:U 117 | mysql_log_position value:DERIVE:0:U 118 | mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U 119 | mysql_bpool_pages value:GAUGE:0:U 120 | mysql_bpool_bytes value:GAUGE:0:U 121 | mysql_bpool_counters value:DERIVE:0:U 122 | mysql_innodb_data value:DERIVE:0:U 123 | mysql_innodb_dblwr value:DERIVE:0:U 124 | mysql_innodb_log value:DERIVE:0:U 125 | mysql_innodb_pages value:DERIVE:0:U 126 | mysql_innodb_row_lock value:DERIVE:0:U 127 | mysql_innodb_rows value:DERIVE:0:U 128 | mysql_select value:DERIVE:0:U 129 | mysql_sort value:DERIVE:0:U 130 | nfs_procedure value:DERIVE:0:U 131 | nginx_connections value:GAUGE:0:U 132 | nginx_requests value:DERIVE:0:U 133 | node_octets rx:DERIVE:0:U, tx:DERIVE:0:U 134 | node_rssi value:GAUGE:0:255 135 | node_stat value:DERIVE:0:U 136 | node_tx_rate value:GAUGE:0:127 137 | objects value:GAUGE:0:U 138 | operations value:DERIVE:0:U 139 | packets value:DERIVE:0:U 140 | pending_operations value:GAUGE:0:U 141 | percent value:GAUGE:0:100.1 142 | percent_bytes value:GAUGE:0:100.1 143 | percent_inodes value:GAUGE:0:100.1 144 | pf_counters value:DERIVE:0:U 145 | pf_limits value:DERIVE:0:U 146 | pf_source value:DERIVE:0:U 147 | pf_states value:GAUGE:0:U 148 | pf_state value:DERIVE:0:U 149 | pg_blks value:DERIVE:0:U 150 | pg_db_size value:GAUGE:0:U 151 | pg_n_tup_c value:DERIVE:0:U 152 | pg_n_tup_g value:GAUGE:0:U 153 | pg_numbackends value:GAUGE:0:U 154 | pg_scan value:DERIVE:0:U 155 | pg_xact value:DERIVE:0:U 156 | ping_droprate value:GAUGE:0:100 157 | ping_stddev value:GAUGE:0:65535 158 | ping value:GAUGE:0:65535 159 | players value:GAUGE:0:1000000 160 | power value:GAUGE:0:U 161 | pressure value:GAUGE:0:U 162 | protocol_counter value:DERIVE:0:U 163 | ps_code value:GAUGE:0:9223372036854775807 164 | ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000 165 | ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U 166 | ps_data value:GAUGE:0:9223372036854775807 167 | ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U 168 | ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U 169 | ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U 170 | ps_rss value:GAUGE:0:9223372036854775807 171 | ps_stacksize value:GAUGE:0:9223372036854775807 172 | ps_state value:GAUGE:0:65535 173 | ps_vm value:GAUGE:0:9223372036854775807 174 | pubsub value:GAUGE:0:U 175 | queue_length value:GAUGE:0:U 176 | records value:GAUGE:0:U 177 | requests value:GAUGE:0:U 178 | response_time value:GAUGE:0:U 179 | response_code value:GAUGE:0:U 180 | route_etx value:GAUGE:0:U 181 | route_metric value:GAUGE:0:U 182 | routes value:GAUGE:0:U 183 | segments value:GAUGE:0:65535 184 | serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U 185 | signal_noise value:GAUGE:U:0 186 | signal_power value:GAUGE:U:0 187 | signal_quality value:GAUGE:0:U 188 | smart_poweron value:GAUGE:0:U 189 | smart_powercycles value:GAUGE:0:U 190 | smart_badsectors value:GAUGE:0:U 191 | smart_temperature value:GAUGE:-300:300 192 | smart_attribute current:GAUGE:0:255, worst:GAUGE:0:255, threshold:GAUGE:0:255, pretty:GAUGE:0:U 193 | snr value:GAUGE:0:U 194 | spam_check value:GAUGE:0:U 195 | spam_score value:GAUGE:U:U 196 | spl value:GAUGE:U:U 197 | swap_io value:DERIVE:0:U 198 | swap value:GAUGE:0:1099511627776 199 | tcp_connections value:GAUGE:0:4294967295 200 | temperature value:GAUGE:U:U 201 | threads value:GAUGE:0:U 202 | time_dispersion value:GAUGE:-1000000:1000000 203 | timeleft value:GAUGE:0:U 204 | time_offset value:GAUGE:-1000000:1000000 205 | total_bytes value:DERIVE:0:U 206 | total_connections value:DERIVE:0:U 207 | total_objects value:DERIVE:0:U 208 | total_operations value:DERIVE:0:U 209 | total_requests value:DERIVE:0:U 210 | total_sessions value:DERIVE:0:U 211 | total_threads value:DERIVE:0:U 212 | total_time_in_ms value:DERIVE:0:U 213 | total_values value:DERIVE:0:U 214 | uptime value:GAUGE:0:4294967295 215 | users value:GAUGE:0:65535 216 | vcl value:GAUGE:0:65535 217 | vcpu value:GAUGE:0:U 218 | virt_cpu_total value:DERIVE:0:U 219 | virt_vcpu value:DERIVE:0:U 220 | vmpage_action value:DERIVE:0:U 221 | vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U 222 | vmpage_io in:DERIVE:0:U, out:DERIVE:0:U 223 | vmpage_number value:GAUGE:0:4294967295 224 | volatile_changes value:GAUGE:0:U 225 | voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U 226 | voltage value:GAUGE:U:U 227 | vs_memory value:GAUGE:0:9223372036854775807 228 | vs_processes value:GAUGE:0:65535 229 | vs_threads value:GAUGE:0:65535 230 | 231 | # 232 | # Legacy types 233 | # (required for the v5 upgrade target) 234 | # 235 | arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U 236 | arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U 237 | arc_l2_size value:GAUGE:0:U 238 | arc_ratio value:GAUGE:0:U 239 | arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U 240 | mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U 241 | mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U 242 | -------------------------------------------------------------------------------- /collectd.conf: -------------------------------------------------------------------------------- 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 "${prefix}/var/lib/collectd" 16 | #PIDFile "${prefix}/var/run/collectd.pid" 17 | #PluginDir "${exec_prefix}/lib/collectd" 18 | #TypesDB "/usr/share/collectd/types.db" 19 | 20 | #----------------------------------------------------------------------------# 21 | # When enabled, plugins are loaded automatically with the default options # 22 | # when an appropriate 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 | # # 38 | # Interval 60 # 39 | # # 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 | LoadPlugin syslog 62 | #LoadPlugin logfile 63 | #LoadPlugin log_logstash 64 | 65 | # 66 | # LogLevel info 67 | # File STDOUT 68 | # Timestamp true 69 | # PrintSeverity false 70 | # 71 | 72 | # 73 | # LogLevel info 74 | # File "${prefix}/var/log/collectd.json.log" 75 | # 76 | 77 | # 78 | # LogLevel info 79 | # 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 begnning with `##' belong to plugins which have not been built due # 88 | # to missing dependencies or because they have been deactivated explicitly. # 89 | ############################################################################## 90 | 91 | #LoadPlugin aggregation 92 | #LoadPlugin amqp 93 | #LoadPlugin apache 94 | #LoadPlugin apcups 95 | ##LoadPlugin apple_sensors 96 | ##LoadPlugin aquaero 97 | #LoadPlugin ascent 98 | ##LoadPlugin barometer 99 | #LoadPlugin battery 100 | #LoadPlugin bind 101 | #LoadPlugin conntrack 102 | #LoadPlugin contextswitch 103 | #LoadPlugin cgroups 104 | LoadPlugin cpu 105 | #LoadPlugin cpufreq 106 | #LoadPlugin csv 107 | #LoadPlugin curl 108 | #LoadPlugin curl_json 109 | #LoadPlugin curl_xml 110 | #LoadPlugin dbi 111 | #LoadPlugin df 112 | #LoadPlugin disk 113 | #LoadPlugin dns 114 | #LoadPlugin drbd 115 | #LoadPlugin email 116 | #LoadPlugin entropy 117 | #LoadPlugin ethstat 118 | #LoadPlugin exec 119 | #LoadPlugin filecount 120 | #LoadPlugin fscache 121 | #LoadPlugin gmond 122 | #LoadPlugin hddtemp 123 | LoadPlugin interface 124 | #LoadPlugin iptables 125 | #LoadPlugin ipmi 126 | #LoadPlugin ipvs 127 | #LoadPlugin irq 128 | ##LoadPlugin java 129 | LoadPlugin load 130 | ##LoadPlugin lpar 131 | #LoadPlugin lvm 132 | #LoadPlugin madwifi 133 | #LoadPlugin mbmon 134 | #LoadPlugin md 135 | #LoadPlugin memcachec 136 | #LoadPlugin memcached 137 | LoadPlugin memory 138 | #LoadPlugin modbus 139 | #LoadPlugin multimeter 140 | #LoadPlugin mysql 141 | ##LoadPlugin netapp 142 | #LoadPlugin netlink 143 | LoadPlugin network 144 | #LoadPlugin nfs 145 | #LoadPlugin nginx 146 | ##LoadPlugin notify_desktop 147 | #LoadPlugin notify_email 148 | #LoadPlugin ntpd 149 | #LoadPlugin numa 150 | #LoadPlugin nut 151 | #LoadPlugin olsrd 152 | #LoadPlugin onewire 153 | ##LoadPlugin openldap 154 | #LoadPlugin openvpn 155 | ##LoadPlugin oracle 156 | # 157 | # Globals true 158 | # 159 | #LoadPlugin pinba 160 | #LoadPlugin ping 161 | #LoadPlugin postgresql 162 | #LoadPlugin powerdns 163 | #LoadPlugin processes 164 | #LoadPlugin protocols 165 | # 166 | # Globals true 167 | # 168 | #LoadPlugin redis 169 | ##LoadPlugin routeros 170 | #LoadPlugin rrdcached 171 | LoadPlugin rrdtool 172 | #LoadPlugin sensors 173 | #LoadPlugin serial 174 | ##LoadPlugin sigrok 175 | ##LoadPlugin smart 176 | #LoadPlugin snmp 177 | #LoadPlugin statsd 178 | #LoadPlugin swap 179 | #LoadPlugin table 180 | #LoadPlugin tail 181 | #LoadPlugin tail_csv 182 | ##LoadPlugin tape 183 | #LoadPlugin tcpconns 184 | #LoadPlugin teamspeak2 185 | #LoadPlugin ted 186 | #LoadPlugin thermal 187 | #LoadPlugin tokyotyrant 188 | #LoadPlugin unixsock 189 | #LoadPlugin uptime 190 | #LoadPlugin users 191 | #LoadPlugin uuid 192 | ##LoadPlugin varnish 193 | ##LoadPlugin mic 194 | #LoadPlugin virt 195 | #LoadPlugin vmem 196 | #LoadPlugin vserver 197 | #LoadPlugin wireless 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_tsdb 206 | ##LoadPlugin xmms 207 | #LoadPlugin zfs_arc 208 | #LoadPlugin zookeeper 209 | 210 | ############################################################################## 211 | # Plugin configuration # 212 | #----------------------------------------------------------------------------# 213 | # In this section configuration stubs for each plugin are provided. A desc- # 214 | # ription of those options is available in the collectd.conf(5) manual page. # 215 | ############################################################################## 216 | 217 | # 218 | # 219 | # #Host "unspecified" 220 | # Plugin "cpu" 221 | # #PluginInstance "unspecified" 222 | # Type "cpu" 223 | # #TypeInstance "unspecified" 224 | # 225 | # GroupBy "Host" 226 | # GroupBy "TypeInstance" 227 | # 228 | # CalculateNum false 229 | # CalculateSum false 230 | # CalculateAverage true 231 | # CalculateMinimum false 232 | # CalculateMaximum false 233 | # CalculateStddev false 234 | # 235 | # 236 | 237 | # 238 | # 239 | # Host "localhost" 240 | # Port "5672" 241 | # VHost "/" 242 | # User "guest" 243 | # Password "guest" 244 | # Exchange "amq.fanout" 245 | # RoutingKey "collectd" 246 | # Persistent false 247 | # StoreRates false 248 | # 249 | # 250 | 251 | # 252 | # 253 | # URL "http://localhost/status?auto" 254 | # User "www-user" 255 | # Password "secret" 256 | # CACert "/etc/ssl/ca.crt" 257 | # 258 | # 259 | 260 | # 261 | # Host "localhost" 262 | # Port "3551" 263 | # ReportSeconds true 264 | # 265 | 266 | # 267 | # Device "" 268 | # 269 | 270 | # 271 | # URL "http://localhost/ascent/status/" 272 | # User "www-user" 273 | # Password "secret" 274 | # CACert "/etc/ssl/ca.crt" 275 | # 276 | 277 | # 278 | # Device "/dev/i2c-0"; 279 | # Oversampling 512 280 | # PressureOffset 0.0 281 | # TemperatureOffset 0.0 282 | # Normalization 2 283 | # Altitude 238.0 284 | # TemperatureSensor "myserver/onewire-F10FCA000800/temperature" 285 | # 286 | 287 | # 288 | # ValuesPercentage false 289 | # ReportDegraded 290 | # 291 | 292 | # 293 | # URL "http://localhost:8053/" 294 | # ParseTime false 295 | # OpCodes true 296 | # QTypes true 297 | # 298 | # ServerStats true 299 | # ZoneMaintStats true 300 | # ResolverStats false 301 | # MemoryStats true 302 | # 303 | # 304 | # QTypes true 305 | # ResolverStats true 306 | # CacheRRSets true 307 | # 308 | # Zone "127.in-addr.arpa/IN" 309 | # 310 | # 311 | 312 | # 313 | # CGroup "libvirt" 314 | # IgnoreSelected false 315 | # 316 | 317 | # 318 | # ReportByCpu true 319 | # ReportByState true 320 | # ValuesPercentage false 321 | # 322 | # 323 | # 324 | # DataDir "${prefix}/var/lib/collectd/csv" 325 | # StoreRates false 326 | # 327 | 328 | # 329 | # 330 | # URL "http://finance.google.com/finance?q=NYSE%3AAMD" 331 | # User "foo" 332 | # Password "bar" 333 | # Digest false 334 | # VerifyPeer true 335 | # VerifyHost true 336 | # CACert "/path/to/ca.crt" 337 | # Header "X-Custom-Header: foobar" 338 | # Post "foo=bar" 339 | # 340 | # MeasureResponseTime false 341 | # MeasureResponseCode false 342 | # 343 | # Regex "]*> *([0-9]*\\.[0-9]+) *" 344 | # DSType "GaugeAverage" 345 | # Type "stock_value" 346 | # Instance "AMD" 347 | # 348 | # 349 | # 350 | 351 | # 352 | # 353 | # Instance "test_http_json" 354 | # 355 | # Type "gauge" 356 | # # Expect: 1 357 | # 358 | # 359 | # Type "gauge" 360 | # # Expect: 2 361 | # 362 | # 363 | # Type "gauge" 364 | # # Expect: 3 365 | # 366 | # 367 | # Type "gauge" 368 | # # Expect: 4 369 | # 370 | # 371 | # Type "gauge" 372 | # # Expect: 5 373 | # 374 | # 375 | # Type "gauge" 376 | # # Expect: 6 377 | # 378 | # 379 | # put this as test.json on your webserver, the above config demonstraces 380 | # how to match them. 381 | # { 382 | # "testArray":[1,2], 383 | # "testArrayInbetween":[{"blarg":3},{"blub":4}], 384 | # "testDirectHit":5, 385 | # "testSubLevelHit":{"oneMoreLevel":6} 386 | # } 387 | ## See: http://wiki.apache.org/couchdb/Runtime_Statistics 388 | # 389 | # Instance "httpd" 390 | # 391 | # Type "http_requests" 392 | # 393 | # 394 | # 395 | # Type "http_request_methods" 396 | # 397 | # 398 | # 399 | # Type "http_response_codes" 400 | # 401 | # 402 | ## Database status metrics: 403 | # 404 | # Instance "dbs" 405 | # 406 | # Type "gauge" 407 | # 408 | # 409 | # Type "counter" 410 | # 411 | # 412 | # Type "bytes" 413 | # 414 | # 415 | # 416 | 417 | # 418 | # 419 | # Host "my_host" 420 | # Instance "some_instance" 421 | # User "collectd" 422 | # Password "thaiNg0I" 423 | # Digest false 424 | # VerifyPeer true 425 | # VerifyHost true 426 | # CACert "/path/to/ca.crt" 427 | # Header "X-Custom-Header: foobar" 428 | # Post "foo=bar" 429 | # 430 | # 431 | # Type "magic_level" 432 | # #InstancePrefix "prefix-" 433 | # InstanceFrom "td[1]" 434 | # ValuesFrom "td[2]/span[@class=\"level\"]" 435 | # 436 | # 437 | # 438 | 439 | # 440 | # 441 | # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl" 442 | # 443 | # Type "gauge" 444 | # InstancesFrom "c_key" 445 | # ValuesFrom "c_value" 446 | # 447 | # 448 | # 449 | # Driver "mysql" 450 | # DriverOption "host" "localhost" 451 | # DriverOption "username" "collectd" 452 | # DriverOption "password" "AeXohy0O" 453 | # DriverOption "dbname" "custdb0" 454 | # #SelectDB "custdb0" 455 | # Query "num_of_customers" 456 | # #Query "..." 457 | # #Host "..." 458 | # 459 | # 460 | 461 | # 462 | # Device "/dev/hda1" 463 | # Device "192.168.0.2:/mnt/nfs" 464 | # MountPoint "/home" 465 | # FSType "ext3" 466 | # IgnoreSelected false 467 | # ReportByDevice false 468 | # ReportReserved false 469 | # ReportInodes false 470 | # ValuesAbsolute true 471 | # ValuesPercentage false 472 | # 473 | 474 | # 475 | # Disk "/^[hs]d[a-f][0-9]?$/" 476 | # IgnoreSelected false 477 | # UseBSDName false 478 | # UdevNameAttr "DEVNAME" 479 | # 480 | 481 | # 482 | # Interface "eth0" 483 | # IgnoreSource "192.168.0.1" 484 | # SelectNumericQueryTypes true 485 | # 486 | 487 | # 488 | # SocketFile "${prefix}/var/run/collectd-email" 489 | # SocketGroup "collectd" 490 | # SocketPerms "0770" 491 | # MaxConns 5 492 | # 493 | 494 | # 495 | # Interface "eth0" 496 | # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload" 497 | # Map "multicast" "if_multicast" 498 | # MappedOnly false 499 | # 500 | 501 | # 502 | # Exec "user:group" "/path/to/exec" 503 | # NotificationExec "user:group" "/path/to/exec" 504 | # 505 | 506 | # 507 | # 508 | # Instance "foodir" 509 | # Name "*.conf" 510 | # MTime "-5m" 511 | # Size "+10k" 512 | # Recursive true 513 | # IncludeHidden false 514 | # 515 | # 516 | 517 | # 518 | # MCReceiveFrom "239.2.11.71" "8649" 519 | # 520 | # Type "swap" 521 | # TypeInstance "total" 522 | # DataSource "value" 523 | # 524 | # 525 | # Type "swap" 526 | # TypeInstance "free" 527 | # DataSource "value" 528 | # 529 | # 530 | 531 | # 532 | # Host "127.0.0.1" 533 | # Port "7634" 534 | # 535 | 536 | # 537 | # Interface "eth0" 538 | # IgnoreSelected false 539 | # 540 | 541 | # 542 | # Sensor "some_sensor" 543 | # Sensor "another_one" 544 | # IgnoreSelected false 545 | # NotifySensorAdd false 546 | # NotifySensorRemove true 547 | # NotifySensorNotPresent false 548 | # 549 | 550 | # 551 | # Chain table chain 552 | # 553 | 554 | # 555 | # Irq 7 556 | # Irq 8 557 | # Irq 9 558 | # IgnoreSelected true 559 | # 560 | 561 | # 562 | # JVMArg "-verbose:jni" 563 | # JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar" 564 | # 565 | # LoadPlugin "org.collectd.java.Foobar" 566 | # 567 | # # To be parsed by the plugin 568 | # 569 | # 570 | 571 | # 572 | # ReportRelative true 573 | # 574 | 575 | # 576 | # CpuPoolStats false 577 | # ReportBySerial false 578 | # 579 | 580 | # 581 | # Interface "wlan0" 582 | # IgnoreSelected false 583 | # Source "SysFS" 584 | # WatchSet "None" 585 | # WatchAdd "node_octets" 586 | # WatchAdd "node_rssi" 587 | # WatchAdd "is_rx_acl" 588 | # WatchAdd "is_scan_active" 589 | # 590 | 591 | # 592 | # Host "127.0.0.1" 593 | # Port "411" 594 | # 595 | 596 | # 597 | # Device "/dev/md0" 598 | # IgnoreSelected false 599 | # 600 | 601 | # 602 | # 603 | # Server "localhost" 604 | # Key "page_key" 605 | # 606 | # Regex "(\\d+) bytes sent" 607 | # ExcludeRegex "" 608 | # DSType CounterAdd 609 | # Type "ipt_octets" 610 | # Instance "type_instance" 611 | # 612 | # 613 | # 614 | 615 | # 616 | # 617 | # Host "127.0.0.1" 618 | # Port "11211" 619 | # 620 | # 621 | 622 | # 623 | # ValuesAbsolute true 624 | # ValuesPercentage false 625 | # 626 | 627 | # 628 | # 629 | # RegisterBase 1234 630 | # RegisterCmd ReadHolding 631 | # RegisterType float 632 | # Type gauge 633 | # Instance "..." 634 | # 635 | # 636 | # 637 | # Address "addr" 638 | # Port "1234" 639 | # Interval 60 640 | # 641 | # 642 | # Instance "foobar" # optional 643 | # Collect "data_name" 644 | # 645 | # 646 | # 647 | 648 | # 649 | # 650 | # Host "database.serv.er" 651 | # User "db_user" 652 | # Password "secret" 653 | # Database "db_name" 654 | # MasterStats true 655 | # ConnectTimeout 10 656 | # InnodbStats true 657 | # 658 | # 659 | # 660 | # Alias "squeeze" 661 | # Host "localhost" 662 | # Socket "/var/run/mysql/mysqld.sock" 663 | # SlaveStats true 664 | # SlaveNotifications true 665 | # 666 | # 667 | 668 | # 669 | # 670 | # Protocol "https" 671 | # Address "10.0.0.1" 672 | # Port 443 673 | # User "username" 674 | # Password "aef4Aebe" 675 | # Interval 30 676 | # 677 | # 678 | # Interval 30 679 | # GetNameCache true 680 | # GetDirCache true 681 | # GetBufferCache true 682 | # GetInodeCache true 683 | # 684 | # 685 | # 686 | # Interval 30 687 | # GetBusy true 688 | # 689 | # 690 | # 691 | # Interval 30 692 | # GetIO "volume0" 693 | # IgnoreSelectedIO false 694 | # GetOps "volume0" 695 | # IgnoreSelectedOps false 696 | # GetLatency "volume0" 697 | # IgnoreSelectedLatency false 698 | # 699 | # 700 | # 701 | # Interval 30 702 | # GetCapacity "vol0" 703 | # GetCapacity "vol1" 704 | # IgnoreSelectedCapacity false 705 | # GetSnapshot "vol1" 706 | # GetSnapshot "vol3" 707 | # IgnoreSelectedSnapshot false 708 | # 709 | # 710 | # 711 | # Interval 30 712 | # GetCPULoad true 713 | # GetInterfaces true 714 | # GetDiskOps true 715 | # GetDiskIO true 716 | # 717 | # 718 | # 719 | 720 | # 721 | # Interface "All" 722 | # VerboseInterface "All" 723 | # QDisc "eth0" "pfifo_fast-1:0" 724 | # Class "ppp0" "htb-1:10" 725 | # Filter "ppp0" "u32-1:0" 726 | # IgnoreSelected false 727 | # 728 | 729 | 730 | Server "127.0.0.1" "25826" 731 | 732 | # 733 | # # client setup: 734 | # Server "ff18::efc0:4a42" "25826" 735 | # 736 | # SecurityLevel Encrypt 737 | # Username "user" 738 | # Password "secret" 739 | # Interface "eth0" 740 | # ResolveInterval 14400 741 | # 742 | # TimeToLive 128 743 | # 744 | # # server setup: 745 | # Listen "ff18::efc0:4a42" "25826" 746 | # 747 | # SecurityLevel Sign 748 | # AuthFile "/etc/collectd/passwd" 749 | # Interface "eth0" 750 | # 751 | # MaxPacketSize 1452 752 | # 753 | # # proxy setup (client and server as above): 754 | # Forward true 755 | # 756 | # # statistics about the network plugin itself 757 | # ReportStats false 758 | # 759 | # # "garbage collection" 760 | # CacheFlush 1800 761 | # 762 | 763 | # 764 | # URL "http://localhost/status?auto" 765 | # User "www-user" 766 | # Password "secret" 767 | # CACert "/etc/ssl/ca.crt" 768 | # 769 | 770 | # 771 | # OkayTimeout 1000 772 | # WarningTimeout 5000 773 | # FailureTimeout 0 774 | # 775 | 776 | # 777 | # SMTPServer "localhost" 778 | # SMTPPort 25 779 | # SMTPUser "my-username" 780 | # SMTPPassword "my-password" 781 | # From "collectd@main0server.com" 782 | # # on . beware! do not use not more than two %s in this string!!! 783 | # Subject "Aaaaaa!! %s on %s!!!!!" 784 | # Recipient "email1@domain1.net" 785 | # Recipient "email2@domain2.com" 786 | # 787 | 788 | # 789 | # Host "localhost" 790 | # Port 123 791 | # ReverseLookups false 792 | # IncludeUnitID true 793 | # 794 | 795 | # 796 | # UPS "upsname@hostname:port" 797 | # 798 | 799 | # 800 | # Host "127.0.0.1" 801 | # Port "2006" 802 | # CollectLinks "Summary" 803 | # CollectRoutes "Summary" 804 | # CollectTopology "Summary" 805 | # 806 | 807 | # 808 | # Device "-s localhost:4304" 809 | # Sensor "F10FCA000800" 810 | # IgnoreSelected false 811 | # 812 | 813 | # 814 | # 815 | # URL "ldap://localhost:389" 816 | # StartTLS false 817 | # VerifyHost true 818 | # CACert "/path/to/ca.crt" 819 | # Timeout -1 820 | # Version 3 821 | # 822 | # 823 | 824 | # 825 | # StatusFile "/etc/openvpn/openvpn-status.log" 826 | # ImprovedNamingSchema false 827 | # CollectCompression true 828 | # CollectIndividualUsers true 829 | # CollectUserCount false 830 | # 831 | 832 | # 833 | # 834 | # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category" 835 | # 836 | # Type "gauge" 837 | # InstancesFrom "category" 838 | # ValuesFrom "value" 839 | # 840 | # 841 | # 842 | # ConnectID "db01" 843 | # Username "oracle" 844 | # Password "secret" 845 | # Query "out_of_stock" 846 | # 847 | # 848 | 849 | # 850 | # IncludeDir "/my/include/path" 851 | # BaseName "Collectd::Plugins" 852 | # EnableDebugger "" 853 | # LoadPlugin Monitorus 854 | # LoadPlugin OpenVZ 855 | # 856 | # 857 | # Foo "Bar" 858 | # Qux "Baz" 859 | # 860 | # 861 | 862 | # 863 | # Address "::0" 864 | # Port "30002" 865 | # 866 | # Host "host name" 867 | # Server "server name" 868 | # Script "script name" 869 | # 870 | # 871 | 872 | # 873 | # Host "host.foo.bar" 874 | # Interval 1.0 875 | # Timeout 0.9 876 | # TTL 255 877 | # SourceAddress "1.2.3.4" 878 | # Device "eth0" 879 | # MaxMissed -1 880 | # 881 | 882 | # 883 | # 884 | # Statement "SELECT magic FROM wizard WHERE host = $1;" 885 | # Param hostname 886 | # 887 | # Type gauge 888 | # InstancePrefix "magic" 889 | # ValuesFrom magic 890 | # 891 | # 892 | # 893 | # Statement "SELECT COUNT(type) AS count, type \ 894 | # FROM (SELECT CASE \ 895 | # WHEN resolved = 'epoch' THEN 'open' \ 896 | # ELSE 'resolved' END AS type \ 897 | # FROM tickets) type \ 898 | # GROUP BY type;" 899 | # 900 | # Type counter 901 | # InstancePrefix "rt36_tickets" 902 | # InstancesFrom "type" 903 | # ValuesFrom "count" 904 | # 905 | # 906 | # 907 | # # See contrib/postgresql/collectd_insert.sql for details 908 | # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);" 909 | # StoreRates true 910 | # 911 | # 912 | # Host "hostname" 913 | # Port "5432" 914 | # User "username" 915 | # Password "secret" 916 | # SSLMode "prefer" 917 | # KRBSrvName "kerberos_service_name" 918 | # Query magic 919 | # 920 | # 921 | # Interval 60 922 | # Service "service_name" 923 | # Query backend # predefined 924 | # Query rt36_tickets 925 | # 926 | # 927 | # Service "collectd_store" 928 | # Writer sqlstore 929 | # # see collectd.conf(5) for details 930 | # CommitInterval 30 931 | # 932 | # 933 | 934 | # 935 | # 936 | # Collect "latency" 937 | # Collect "udp-answers" "udp-queries" 938 | # Socket "/var/run/pdns.controlsocket" 939 | # 940 | # 941 | # Collect "questions" 942 | # Collect "cache-hits" "cache-misses" 943 | # Socket "/var/run/pdns_recursor.controlsocket" 944 | # 945 | # LocalSocket "/opt/collectd/var/run/collectd-powerdns" 946 | # 947 | 948 | # 949 | # Process "name" 950 | # 951 | 952 | # 953 | # Value "/^Tcp:/" 954 | # IgnoreSelected false 955 | # 956 | 957 | # 958 | # ModulePath "/path/to/your/python/modules" 959 | # LogTraces true 960 | # Interactive true 961 | # Import "spam" 962 | # 963 | # 964 | # spam "wonderful" "lovely" 965 | # 966 | # 967 | 968 | # 969 | # 970 | # Host "redis.example.com" 971 | # Port "6379" 972 | # Timeout 2000 973 | # 974 | # 975 | 976 | # 977 | # 978 | # Host "router.example.com" 979 | # Port "8728" 980 | # User "admin" 981 | # Password "dozaiTh4" 982 | # CollectInterface true 983 | # CollectRegistrationTable true 984 | # CollectCPULoad true 985 | # CollectMemory true 986 | # CollectDF true 987 | # CollectDisk true 988 | # 989 | # 990 | 991 | # 992 | # DaemonAddress "unix:/tmp/rrdcached.sock" 993 | # DataDir "${prefix}/var/lib/collectd/rrd" 994 | # CreateFiles true 995 | # CreateFilesAsync false 996 | # CollectStatistics true 997 | # 998 | 999 | # 1000 | # DataDir "${prefix}/var/lib/collectd/rrd" 1001 | # CreateFilesAsync false 1002 | # CacheTimeout 120 1003 | # CacheFlush 900 1004 | # WritesPerSecond 50 1005 | # 1006 | 1007 | # 1008 | # SensorConfigFile "/etc/sensors.conf" 1009 | # Sensor "it8712-isa-0290/temperature-temp1" 1010 | # Sensor "it8712-isa-0290/fanspeed-fan3" 1011 | # Sensor "it8712-isa-0290/voltage-in8" 1012 | # IgnoreSelected false 1013 | # 1014 | 1015 | # 1016 | # LogLevel 3 1017 | # 1018 | # Driver "fluke-dmm" 1019 | # MinimumInterval 10 1020 | # Conn "/dev/ttyUSB2" 1021 | # 1022 | # 1023 | # Driver "cem-dt-885x" 1024 | # Conn "/dev/ttyUSB1" 1025 | # 1026 | # 1027 | 1028 | # 1029 | # Disk "/^[hs]d[a-f][0-9]?$/" 1030 | # IgnoreSelected false 1031 | # 1032 | 1033 | # 1034 | # 1035 | # Type "voltage" 1036 | # Table false 1037 | # Instance "input_line1" 1038 | # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1" 1039 | # 1040 | # 1041 | # Type "users" 1042 | # Table false 1043 | # Instance "" 1044 | # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0" 1045 | # 1046 | # 1047 | # Type "if_octets" 1048 | # Table true 1049 | # Instance "IF-MIB::ifDescr" 1050 | # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" 1051 | # 1052 | # 1053 | # 1054 | # Address "192.168.0.2" 1055 | # Version 1 1056 | # Community "community_string" 1057 | # Collect "std_traffic" 1058 | # Interval 120 1059 | # 1060 | # 1061 | # Address "192.168.0.42" 1062 | # Version 2 1063 | # Community "another_string" 1064 | # Collect "std_traffic" "hr_users" 1065 | # 1066 | # 1067 | # Address "192.168.0.3" 1068 | # Version 1 1069 | # Community "more_communities" 1070 | # Collect "powerplus_voltge_input" 1071 | # Interval 300 1072 | # 1073 | # 1074 | 1075 | # 1076 | # Host "::" 1077 | # Port "8125" 1078 | # DeleteCounters false 1079 | # DeleteTimers false 1080 | # DeleteGauges false 1081 | # DeleteSets false 1082 | # TimerPercentile 90.0 1083 | # TimerPercentile 95.0 1084 | # TimerPercentile 99.0 1085 | # TimerLower false 1086 | # TimerUpper false 1087 | # TimerSum false 1088 | # TimerCount false 1089 | # 1090 | 1091 | # 1092 | # ReportByDevice false 1093 | # ReportBytes true 1094 | # ValuesAbsolute true 1095 | # ValuesPercentage false 1096 | # 1097 | 1098 | # 1099 | # 1100 | # Instance "slabinfo" 1101 | # Separator " " 1102 | # 1103 | # Type gauge 1104 | # InstancePrefix "active_objs" 1105 | # InstancesFrom 0 1106 | # ValuesFrom 1 1107 | # 1108 | # 1109 | # Type gauge 1110 | # InstancePrefix "objperslab" 1111 | # InstancesFrom 0 1112 | # ValuesFrom 4 1113 | # 1114 | #
1115 | #
1116 | 1117 | # 1118 | # 1119 | # Instance "exim" 1120 | # Interval 60 1121 | # 1122 | # Regex "S=([1-9][0-9]*)" 1123 | # DSType "CounterAdd" 1124 | # Type "ipt_bytes" 1125 | # Instance "total" 1126 | # 1127 | # 1128 | # Regex "\\" 1129 | # ExcludeRegex "\\.*mail_spool defer" 1130 | # DSType "CounterInc" 1131 | # Type "counter" 1132 | # Instance "local_user" 1133 | # 1134 | # 1135 | # 1136 | 1137 | # 1138 | # 1139 | # Type "percent" 1140 | # Instance "dropped" 1141 | # ValueFrom 1 1142 | # 1143 | # 1144 | # Type "bytes" 1145 | # Instance "wire-realtime" 1146 | # ValueFrom 2 1147 | # 1148 | # 1149 | # Type "alerts_per_second" 1150 | # ValueFrom 3 1151 | # 1152 | # 1153 | # Type "kpackets_wire_per_sec.realtime" 1154 | # ValueFrom 4 1155 | # 1156 | # 1157 | # Instance "snort-eth0" 1158 | # Interval 600 1159 | # Collect "dropped" "mbps" "alerts" "kpps" 1160 | # TimeFrom 0 1161 | # 1162 | # 1163 | 1164 | # 1165 | # ListeningPorts false 1166 | # AllPortsSummary false 1167 | # LocalPort "25" 1168 | # RemotePort "25" 1169 | # 1170 | 1171 | # 1172 | # Host "127.0.0.1" 1173 | # Port "51234" 1174 | # Server "8767" 1175 | # 1176 | 1177 | # 1178 | # Device "/dev/ttyUSB0" 1179 | # Retries 0 1180 | # 1181 | 1182 | # 1183 | # ForceUseProcfs false 1184 | # Device "THRM" 1185 | # IgnoreSelected false 1186 | # 1187 | 1188 | # 1189 | # Host "localhost" 1190 | # Port "1978" 1191 | # 1192 | 1193 | # 1194 | # SocketFile "/usr/var/run/collectd-unixsock" 1195 | # SocketGroup "collectd" 1196 | # SocketPerms "0660" 1197 | # DeleteSocket false 1198 | # 1199 | 1200 | # 1201 | # UUIDFile "/etc/uuid" 1202 | # 1203 | 1204 | # 1205 | # ShowCPU true 1206 | # ShowCPUCores true 1207 | # ShowMemory true 1208 | # ShowTemperatures true 1209 | ## Temperature Sensors can be ignored/shown by repeated #Temperature lines, and 1210 | ## then inverted with a IgnoreSelectedTemperature. 1211 | ## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq 1212 | # Temperature vddg 1213 | # IgnoreSelectedTemperature true 1214 | # ShowPower true 1215 | ## Power Sensors can be ignored/shown by repeated #Power lines, and 1216 | ## then inverted with a IgnoreSelectedTemperature. 1217 | ## Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq 1218 | # Power total1 1219 | # IgnoreSelectedPower true 1220 | # 1221 | 1222 | # 1223 | # This tag support an argument if you want to 1224 | # monitor the local instance just use 1225 | # If you prefer defining another instance you can do 1226 | # so by using 1227 | # 1228 | # CollectBackend true 1229 | # CollectBan false # Varnish 3 and above 1230 | # CollectCache true 1231 | # CollectConnections true 1232 | # CollectDirectorDNS false # Varnish 3 only 1233 | # CollectESI false 1234 | # CollectFetch false 1235 | # CollectHCB false 1236 | # CollectObjects false 1237 | # CollectPurge false # Varnish 2 only 1238 | # CollectSession false 1239 | # CollectSHM true 1240 | # CollectSMA false # Varnish 2 only 1241 | # CollectSMS false 1242 | # CollectSM false # Varnish 2 only 1243 | # CollectStruct false 1244 | # CollectTotals false 1245 | # CollectUptime false # Varnish 3 and above 1246 | # CollectVCL false 1247 | # CollectVSM false # Varnish 4 only 1248 | # CollectWorkers false 1249 | # 1250 | # 1251 | 1252 | # 1253 | # Connection "xen:///" 1254 | # RefreshInterval 60 1255 | # Domain "name" 1256 | # BlockDevice "name:device" 1257 | # InterfaceDevice "name:device" 1258 | # IgnoreSelected false 1259 | # HostnameFormat name 1260 | # InterfaceFormat name 1261 | # PluginInstanceFormat name 1262 | # 1263 | 1264 | # 1265 | # Verbose false 1266 | # 1267 | 1268 | # 1269 | # 1270 | # Host "localhost" 1271 | # Port "2003" 1272 | # Protocol "tcp" 1273 | # LogSendErrors true 1274 | # Prefix "collectd" 1275 | # Postfix "collectd" 1276 | # StoreRates true 1277 | # AlwaysAppendDS false 1278 | # EscapeCharacter "_" 1279 | # 1280 | # 1281 | 1282 | # 1283 | # 1284 | # URL "http://example.com/collectd-post" 1285 | # User "collectd" 1286 | # Password "weCh3ik0" 1287 | # VerifyPeer true 1288 | # VerifyHost true 1289 | # CACert "/etc/ssl/ca.crt" 1290 | # CAPath "/etc/ssl/certs/" 1291 | # ClientKey "/etc/ssl/client.pem" 1292 | # ClientCert "/etc/ssl/client.crt" 1293 | # ClientKeyPass "secret" 1294 | # SSLVersion "TLSv1" 1295 | # Format "Command" 1296 | # StoreRates false 1297 | # BufferSize 4096 1298 | # 1299 | # 1300 | 1301 | # 1302 | # Property "metadata.broker.list" "localhost:9092" 1303 | # 1304 | # Format JSON 1305 | # 1306 | # 1307 | 1308 | # 1309 | # 1310 | # Host "localhost" 1311 | # Port "27017" 1312 | # Timeout 1000 1313 | # StoreRates false 1314 | # Database "auth_db" 1315 | # User "auth_user" 1316 | # Password "auth_passwd" 1317 | # 1318 | # 1319 | 1320 | # 1321 | # 1322 | # Host "localhost" 1323 | # Port "6379" 1324 | # Timeout 1000 1325 | # 1326 | # 1327 | 1328 | # 1329 | # 1330 | # Host "localhost" 1331 | # Port 5555 1332 | # Protocol TCP 1333 | # Batch true 1334 | # BatchMaxSize 8192 1335 | # StoreRates true 1336 | # AlwaysAppendDS false 1337 | # TTLFactor 2.0 1338 | # Notifications true 1339 | # CheckThresholds false 1340 | # EventServicePrefix "" 1341 | # 1342 | # Tag "foobar" 1343 | # Attribute "foo" "bar" 1344 | # 1345 | 1346 | # 1347 | # 1348 | # Host "localhost" 1349 | # Port "4242" 1350 | # HostTags "status=production" 1351 | # StoreRates false 1352 | # AlwaysAppendDS false 1353 | # 1354 | # 1355 | 1356 | # 1357 | # Host "localhost" 1358 | # Port "2181" 1359 | # 1360 | 1361 | ############################################################################## 1362 | # Filter configuration # 1363 | #----------------------------------------------------------------------------# 1364 | # The following configures collectd's filtering mechanism. Before changing # 1365 | # anything in this section, please read the `FILTER CONFIGURATION' section # 1366 | # in the collectd.conf(5) manual page. # 1367 | ############################################################################## 1368 | 1369 | # Load required matches: 1370 | #LoadPlugin match_empty_counter 1371 | #LoadPlugin match_hashed 1372 | #LoadPlugin match_regex 1373 | #LoadPlugin match_value 1374 | #LoadPlugin match_timediff 1375 | 1376 | # Load required targets: 1377 | #LoadPlugin target_notification 1378 | #LoadPlugin target_replace 1379 | #LoadPlugin target_scale 1380 | #LoadPlugin target_set 1381 | #LoadPlugin target_v5upgrade 1382 | 1383 | #----------------------------------------------------------------------------# 1384 | # The following block demonstrates the default behavior if no filtering is # 1385 | # configured at all: All values will be sent to all available write plugins. # 1386 | #----------------------------------------------------------------------------# 1387 | 1388 | # 1389 | # Target "write" 1390 | # 1391 | 1392 | ############################################################################## 1393 | # Threshold configuration # 1394 | #----------------------------------------------------------------------------# 1395 | # The following outlines how to configure collectd's threshold checking # 1396 | # plugin. The plugin and possible configuration options are documented in # 1397 | # the collectd-threshold(5) manual page. # 1398 | ############################################################################## 1399 | 1400 | #LoadPlugin "threshold" 1401 | # 1402 | # 1403 | # WarningMin 0.00 1404 | # WarningMax 1000.00 1405 | # FailureMin 0.00 1406 | # FailureMax 1200.00 1407 | # Invert false 1408 | # Instance "bar" 1409 | # 1410 | # 1411 | # 1412 | # Instance "eth0" 1413 | # 1414 | # FailureMax 10000000 1415 | # DataSource "rx" 1416 | # 1417 | # 1418 | # 1419 | # 1420 | # 1421 | # Instance "idle" 1422 | # FailureMin 10 1423 | # 1424 | # 1425 | # 1426 | # 1427 | # Instance "cached" 1428 | # WarningMin 100000000 1429 | # 1430 | # 1431 | # 1432 | # 1433 | # DataSource "midterm" 1434 | # FailureMax 4 1435 | # Hits 3 1436 | # Hysteresis 3 1437 | # 1438 | # 1439 | # 1440 | --------------------------------------------------------------------------------