Added info to nprobes and exporters pages

This commit is contained in:
Matteo Biscosi 2024-07-23 13:17:22 +02:00
parent 23f5d3b910
commit 18f19ffa19
8 changed files with 74 additions and 22 deletions

View file

@ -27,6 +27,7 @@ if isEmptyString(ifid) then
end
interface.select(ifid)
local if_names = interface.getIfNames()
local ifstats = interface.getStats()
local probes_stats = ifstats.probes or {}
local timeseries_enabled = areFlowdevTimeseriesEnabled()
@ -63,6 +64,7 @@ for interface_id, probes_list in pairs(ifstats.probes or {}) do
flow_exporters = flow_exporters_num,
dropped_flows = flow_drops,
exported_flows = exported_flows,
ntopng_interface = if_names[tostring(interface_id)],
timeseries_enabled = timeseries_enabled,
ifid = interface_id
}