Create graph for Linux Load Average using Grafana, InfluxDB and collectd

Author:

SCREENSHOT 11) Add another query to the same graph.

Click on the button “+ Query”.

main menu
add a query

SCREENSHOT 12) Select load_midterm measurement and limit it by selecting the host and type.

Set the alias to “5 min” and add a third query “C”. Now, there are two lines in the graph.

main menu
select load_midterm measurement

SCREENSHOT 13) Select load_shortterm measurement and limit it by selecting the host and type.

Set the alias to “1 min” and add a third query “C”. Now, there are three lines in the graph for each query showing the Linux load average of 1,5,15 values.

main menu
select load_shortterm measurement

SCREENSHOT 14) Set the title of the current graph – “Load Average”.

main menu
panel options title

SCREENSHOT 15) Set the “Tooltip mode” to “All” to show all the queries’ results for a given time in the tooltip.

main menu
tooltip

SCREENSHOT 16) Select the legend type “Table” for better visibility.

Scroll down if needed.

main menu
Legend table

SCREENSHOT 17) Add additional values in the legend for the measurements like the current value of the measurements and so on.

Add “Last*” and select another values.

main menu
legend values

SCREENSHOT 18) 4 calculations are selected to be shown in the graph legend – Last, Mean, Min, Max.

These 4 calculations are meaningful for the current measurement – load average. There are many more in the drop-down list.

main menu
legend last mean min max

SCREENSHOT 19) Scrow down to the Graphs styles sub-menu and chose “Always” for the “Connect null values”

If there are some missing values there won’t be gaps in the graphs.

main menu
connect null values

SCREENSHOT 20) The units of the load average are just a number.

main menu
Standard options Unit Number

Leave a Reply

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