Collectd Installation
From r00tedvw.com wiki
(Difference between revisions)
(→Update influx db conf) |
|||
Line 22: | Line 22: | ||
[[collectd]] | [[collectd]] | ||
enabled = true | enabled = true | ||
− | bind-address = " | + | bind-address = ":25826" # the bind address |
− | + | database = "collectd" # Name of the database that will be written to | |
− | + | retention-policy = "" | |
+ | batch-size = 5000 # will flush if this many points get buffered | ||
+ | batch-pending = 10 # number of batches that may be pending in memory | ||
+ | batch-timeout = "10s" | ||
+ | read-buffer = 0 # UDP read buffer size, 0 means to use OS default | ||
typesdb = "/usr/share/collectd/types.db" | typesdb = "/usr/share/collectd/types.db" | ||
</nowiki> | </nowiki> | ||
<nowiki>~$ sudo service influxdb restart</nowiki> | <nowiki>~$ sudo service influxdb restart</nowiki> |
Revision as of 01:04, 1 July 2016
Ubuntu 14.04 Installation
~$ sudo apt-get update && sudo apt-get install collectd collectd-utils -y
Configuration
Backup the conf
~$ sudo cp /etc/collectd/collectd.conf /etc/collectd/collectd.conf_backup
Edit the conf
~$ sudo vi /etc/collectd/collectd.conf
Uncomment the network plugin to feed influxdb
LoadPlugin network
Configure the network plugin
<Plugin network> <Server "localhost" "25826"> Username "influx" Password "influxdb" Interface "eth0" </Server> </Plugin>
Update influx db conf
Enable influx db to ingest collectd data
~$ sudo vi /etc/influxdb/influxdb.conf [[collectd]] enabled = true bind-address = ":25826" # the bind address database = "collectd" # Name of the database that will be written to retention-policy = "" batch-size = 5000 # will flush if this many points get buffered batch-pending = 10 # number of batches that may be pending in memory batch-timeout = "10s" read-buffer = 0 # UDP read buffer size, 0 means to use OS default typesdb = "/usr/share/collectd/types.db" ~$ sudo service influxdb restart