mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add timeseries for host and interface DSCP classes
This commit is contained in:
parent
01f902ff68
commit
c6cf8e418e
11 changed files with 102 additions and 4 deletions
|
|
@ -133,6 +133,18 @@ function ts_dump.iface_update_l4_stats(when, ifstats, verbose)
|
|||
end
|
||||
end
|
||||
|
||||
function ts_dump.iface_update_dscp_stats(when, ifstats, verbose)
|
||||
for id, value in pairs(ifstats.dscp) do
|
||||
ts_utils.append("iface:dscp",
|
||||
{
|
||||
ifid=ifstats.id,
|
||||
dscp_class=id,
|
||||
bytes=value["bytes.sent"] + value["bytes.rcvd"]
|
||||
},
|
||||
when)
|
||||
end
|
||||
end
|
||||
|
||||
function ts_dump.iface_update_flow_dump_stats(when, ifstats, verbose)
|
||||
ts_utils.append("iface:dumped_flows",
|
||||
{
|
||||
|
|
@ -339,6 +351,7 @@ function ts_dump.run_min_dump(_ifname, ifstats, config, when)
|
|||
ts_dump.iface_update_stats_rrds(when, _ifname, ifstats, verbose)
|
||||
ts_dump.iface_update_general_stats(when, ifstats, verbose)
|
||||
ts_dump.iface_update_l4_stats(when, ifstats, verbose)
|
||||
ts_dump.iface_update_dscp_stats(when, ifstats, verbose)
|
||||
|
||||
-- Check both if global flows dump is enabled (config.is_dump_flows_enabled)
|
||||
-- and also if flows dump is enabled for the current interface (ifstats.isFlowDumpDisabled)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue