Create graph for Linux CPU usage using Grafana, InfluxDB and collectd

SCREENSHOT 30) By clicking on the steal in the legend all of the other CPU states are hidden and the steal graph line is scaled in the graph.

main menu
CPUs usage steal only

SCREENSHOT 31) By clicking on the system in the legend all of the other CPU states are hidden and the system graph line is scaled in the graph.

main menu
CPUs usage system only

SCREENSHOT 32) By clicking on the user in the legend all of the other CPU states are hidden and the user graph line is scaled in the graph.

main menu
CPUs usage user only

SCREENSHOT 33) By clicking on the wait in the legend all of the other CPU states are hidden and the wait graph line is scaled in the graph.

main menu
CPUs usage wait only

SCREENSHOT 34) Go back to the dashboard view to save the dashboard.

main menu
View go back

SCREENSHOT 35) Click on the right upper “Save dashboard” button to save the current dashboard.

main menu
Save dashboard button

SCREENSHOT 36) Set the dashboard’s name and folder.

Click on “Save” to save all the graphs and the panel data of the newly created dashboard.

main menu
save dashboard name

SCREENSHOT 37) Click on “Query Inspector” to see the values behind the graph and the query results or the real query sent to InfluxDB.

main menu
Query Inspector

SCREENSHOT 38) The three queries in InfluxQL language, which are sent to the InfluxDB.

Some of the values are replaced with their real values such as “$__interval“, which is based on what time frame is selected – “Last 6 hours”.

main menu
Query Inspector InfluxQL queries

SCREENSHOT 39) The Data tab in Query Inspector shows real values from the queries in a table form.

Multiple values of the idle measurement are shown.

main menu
Query Inspector Data tab

Leave a Reply

Your email address will not be published. Required fields are marked *