Implement CPU load chart

This commit is contained in:
emanuele-f 2019-06-06 19:20:11 +02:00
parent cd00236e81
commit 791afdbaca
14 changed files with 94 additions and 35 deletions

View file

@ -54,3 +54,8 @@ callback_utils.foreachInterface(ifnames, interface_rrd_creation_enabled, functio
ts_utils.append("iface:dropped_flows", {ifid=ifstats.id, num_flows=ifstats.stats.flow_export_drops}, when)
end
end, true --[[ get direction stats ]])
local cpu_load = ntop.refreshCpuLoad()
if(cpu_load ~= nil) then
ts_utils.append("system:cpu_load", {load_percentage = cpu_load}, when)
end