Implements timeseries of per-host misbehaving flows

Implements #2409
This commit is contained in:
Simone Mainardi 2019-02-20 16:31:37 +01:00
parent e7cebdcd98
commit 7e2ac7fbaa
7 changed files with 22 additions and 1 deletions

View file

@ -169,7 +169,13 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
-- Number of flows
ts_utils.append("host:flows", {ifid=ifstats.id, host=hostname,
num_flows=host["active_flows.as_client"] + host["active_flows.as_server"]}, when, verbose)
num_flows=host["active_flows.as_client"] + host["active_flows.as_server"]}, when, verbose)
-- Number of anomalous flows
ts_utils.append("host:anomalous_flows", {ifid = ifstats.id, host = hostname,
flows_as_client = host["anomalous_flows.as_client"],
flows_as_server = host["anomalous_flows.as_server"]},
when, verbose)
-- Contacts
ts_utils.append("host:contacts", {ifid=ifstats.id, host=hostname,