Added score timeseries for vlan, as, subnet and country

Implements #5317
This commit is contained in:
Matteo Biscosi 2021-05-14 14:57:40 +02:00
parent f1c343ed83
commit 4b31a0d21c
9 changed files with 64 additions and 3 deletions

View file

@ -77,6 +77,10 @@ function ts_dump.subnet_update_rrds(when, ifstats, verbose)
bytes_ingress=sstats["broadcast"]["ingress"], bytes_egress=sstats["broadcast"]["egress"],
bytes_inner=sstats["broadcast"]["inner"]}, when)
ts_utils.append("subnet:score",
{ifid=ifstats.id, subnet=subnet,
score=sstats["score"], scoreAsClient=sstats["score.as_client"], scoreAsServer=sstats["score.as_server"]}, when)
ts_utils.append("subnet:tcp_retransmissions",
{ifid=ifstats.id, subnet=subnet,
packets_ingress=sstats["tcpPacketStats.ingress"]["retransmissions"],