mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Implement CPU load chart
This commit is contained in:
parent
cd00236e81
commit
791afdbaca
14 changed files with 94 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue