Grafana will provide a visual view for the sites, InfluxDB is the data box, and collectd/telegraf is the agent on the server. Here we go.
Install Grafana:
1
2
3
|
# Download deb from https://github.com/fg2it/grafana-on-raspberry
root@raspberrypi:~# rpm -i grafana.deb
root@raspberrypi:~# service grafana-server start
|
Install InfluxDB:
Download from https://portal.influxdata.com/downloads
1
2
|
root@raspberrypi:~# tar xf influxdb-1.2.0_linux_armhf.tar.gz
root@raspberrypi:~# cp -a influxdb-1.2.0-1/* /
|
vim /etc/influxdb/influxdb.ini:
1
2
3
4
5
6
7
8
9
10
|
[admin]
enabled=true
[http]
enabled=true
[collectd]
enabled=true
bind-address=":25826"
database="collectd"
|
Then run “influxdb &” and check it out in http://localhost:8083, add db named “collectd”.
Install Collectd:
1 |
root@raspberrypi:~# apt-get install collectd
|
In /etc/collectd/collectd.conf, find
1
2
3
|
<Plugin network>
<Server "localhost" "25826"></Server>
</Plugin>
|
Then restart collectd service.
Now you can visit http://localhost:3000 to add InfluxDB source and add panel.