User Tools

Site Tools


howtos:grafana

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
howtos:grafana [2021/03/26 03:55]
admin
howtos:grafana [2021/07/12 16:14]
admin
Line 7: Line 7:
  
 Check out our [[/events]] page for the next How To event. Check out our [[/events]] page for the next How To event.
 +
 +===== influxdb =====
 +<code bash>
 +sudo apt install influxdb
 +sudo vim /​etc/​influxdb/​influxdb.conf
 +</​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