mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implements charts for Network OOO/Drops/Retransmissions
This commit is contained in:
parent
3d700568c4
commit
1b29a5c555
4 changed files with 75 additions and 8 deletions
|
|
@ -58,13 +58,39 @@ function ts_dump.subnet_update_rrds(when, ifstats, verbose)
|
|||
local subnet_stats = interface.getNetworksStats()
|
||||
|
||||
for subnet,sstats in pairs(subnet_stats) do
|
||||
ts_utils.append("subnet:traffic", {ifid=ifstats.id, subnet=subnet,
|
||||
bytes_ingress=sstats["ingress"], bytes_egress=sstats["egress"],
|
||||
bytes_inner=sstats["inner"]}, when)
|
||||
ts_utils.append("subnet:traffic",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
bytes_ingress=sstats["ingress"], bytes_egress=sstats["egress"],
|
||||
bytes_inner=sstats["inner"]}, when)
|
||||
|
||||
ts_utils.append("subnet:broadcast_traffic", {ifid=ifstats.id, subnet=subnet,
|
||||
bytes_ingress=sstats["broadcast"]["ingress"], bytes_egress=sstats["broadcast"]["egress"],
|
||||
bytes_inner=sstats["broadcast"]["inner"]}, when, verbose)
|
||||
ts_utils.append("subnet:broadcast_traffic",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
bytes_ingress=sstats["broadcast"]["ingress"], bytes_egress=sstats["broadcast"]["egress"],
|
||||
bytes_inner=sstats["broadcast"]["inner"]}, when, verbose)
|
||||
|
||||
ts_utils.append("subnet:tcp_retransmissions",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
packets_ingress=sstats["tcpPacketStats.ingress"]["retransmissions"],
|
||||
packets_egress=sstats["tcpPacketStats.egress"]["retransmissions"],
|
||||
packets_inner=sstats["tcpPacketStats.inner"]["retransmissions"]}, when)
|
||||
|
||||
ts_utils.append("subnet:tcp_out_of_order",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
packets_ingress=sstats["tcpPacketStats.ingress"]["out_of_order"],
|
||||
packets_egress=sstats["tcpPacketStats.egress"]["out_of_order"],
|
||||
packets_inner=sstats["tcpPacketStats.inner"]["out_of_order"]}, when)
|
||||
|
||||
ts_utils.append("subnet:tcp_lost",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
packets_ingress=sstats["tcpPacketStats.ingress"]["lost"],
|
||||
packets_egress=sstats["tcpPacketStats.egress"]["lost"],
|
||||
packets_inner=sstats["tcpPacketStats.inner"]["lost"]}, when)
|
||||
|
||||
ts_utils.append("subnet:tcp_keep_alive",
|
||||
{ifid=ifstats.id, subnet=subnet,
|
||||
packets_ingress=sstats["tcpPacketStats.ingress"]["keep_alive"],
|
||||
packets_egress=sstats["tcpPacketStats.egress"]["keep_alive"],
|
||||
packets_inner=sstats["tcpPacketStats.inner"]["keep_alive"]}, when)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue