User Tools

Site Tools


howtos:grafana

How To: Grafana monitoring

We'll be demoing how to set up and configure influxdb and collectd to start gathering data about your system[s] (network bandwith, pings, memory and cpu usage, disk activity etc).

Then we'll show you how to use Grafana and configure a beautiful dashboard.

Bonus demo: Monitoring radio thermometers, minecraft kills and more!

Check out our events page for the next How To event.

influxdb

On the server you want the data to be sent to (make sure to open the relevant port [8096] in your firewall).

sudo apt install influxdb
sudo vim /etc/influxdb/influxdb.conf

grafana

sudo apt install grafana

collectd

Adding a server

sudo apt install collectd
sudo vim /etc/collectd/collectd.conf

Set a hostname (if a FQDN doesn't work, i.e. on amazon EC2 default)

Hostname "MyVPS"

Enable (uncomment) the network Plugin:

LoadPlugin network

Enter the server details:

<Plugin network>
        <Server "monitor.yournserver.co.uk" "25726">
        SecurityLevel Sign
#        Username "user"
#        Password "PASSWORD"
#        </Server>
</Plugin>

Optionally uncomment out the relevant plugins, for example:

LoadPlugin apache
LoadPlugin mysql

Then set their specific config sections, for example:

<Plugin apache>
        <Instance "local">
                URL "http://localhost/server-status?auto"
                VerifyPeer false
        </Instance>
</Plugin>

Restart collectd

sudo service collectd restart

Links

howtos/grafana.txt · Last modified: 2021/07/12 15:16 by admin