This page describes the steps for setting up a Grafana dashboard to monitor system CPU & Memory over time, using data collected from Glances.
InfluxDB is used to store timeseries data exported from Glances.
Go to http://localhost:8086 and do the following via the InfluxDB UI:
glances
Note: I was getting a TypeError on latest version of glances (3.3.1), and installing 3.2.7 fixed the issue.
Create a glances config file (MacOS example below). For config file paths on other operating systems, see documentation.
Start Glances and export to InfluxDB:
Go to http://localhost:3000 to view the Grafana UI, and do the following:
glances
and influxd
can be stopped by sending the SIGINT
signal to terminal (Ctrl + C)
To stop Grafana:
Reference: https://grafana.com/grafana/dashboards/2387-glances-for-flux/