Added top applications timeseries to dashboard

This commit is contained in:
Matteo Biscosi 2025-06-10 10:29:37 +02:00
parent fa6620b8a6
commit e9d4bbc43f
5 changed files with 258 additions and 224 deletions

View file

@ -77,6 +77,13 @@ function ts_data.get_timeseries(http_context)
local extended_times = http_context.extended
local ts_aggregation = http_context.ts_aggregation
-- Resolve the iface:ndpi to the correct one, there are 2:
-- - iface:ndpi, with bytes
-- - iface:ndpi_full, with bytes sent and bytes rcvd
if ts_schema == "top:iface:ndpi" then
ts_schema = "top:" .. getIfacenDPITsName()
end
local options = {
min_num_points = 2,
max_num_points = tonumber(http_context.limit) or 60,