User Tools

Site Tools


howtos:grafana

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
howtos:grafana [2021/03/26 03:54]
admin created
howtos:grafana [2021/07/12 16:15]
admin
Line 5: Line 5:
  
 Bonus demo: Monitoring radio thermometers,​ minecraft kills and more! 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).
 +<code bash>
 +sudo apt install influxdb
 +sudo vim /​etc/​influxdb/​influxdb.conf
 +</​code>​
 +
 +===== grafana =====
 +<code bash>
 +sudo apt install grafana
 +</​code>​
 +
 +===== collectd =====
 +=== Adding a server ===
 +<code bash>
 +sudo apt install collectd
 +sudo vim /​etc/​collectd/​collectd.conf
 +</​code>​
 +
 +Set a hostname (if a FQDN doesn'​t work, i.e. on amazon EC2 default)
 +<​code>​
 +Hostname "​MyVPS"​
 +</​code>​
 +
 +Enable (uncomment) the network Plugin:
 +<​code>​
 +
 +LoadPlugin network
 +</​code>​
 +
 +Enter the server details:
 +<​code>​
 +<Plugin network>
 +        <Server "​monitor.yournserver.co.uk"​ "​25726">​
 +        SecurityLevel Sign
 +#        Username "​user"​
 +#        Password "​PASSWORD"​
 +#        </​Server>​
 +</​Plugin>​
 +</​code>​
 +
 +Optionally uncomment out the relevant plugins, for example:
 +<​code>​
 +LoadPlugin apache
 +LoadPlugin mysql
 +</​code>​
 +
 +Then set their specific config sections, for example:
 +<​code>​
 +<Plugin apache>
 +        <​Instance "​local">​
 +                URL "​http://​localhost/​server-status?​auto"​
 +                VerifyPeer false
 +        </​Instance>​
 +</​Plugin>​
 +</​code>​
 +
 +Restart collectd
 +<​code>​
 +sudo service collectd restart
 +</​code>​
 +
 +
 +
  
 ==== Links ==== ==== Links ====
howtos/grafana.txt ยท Last modified: 2021/07/12 16:16 by admin