Implmenent host total flows timeseries.

"host:flows" data will be dropped in favor of "host:active_flows", which has separated client and server counters

Closes #2528
This commit is contained in:
emanuele-f 2019-04-10 18:22:41 +02:00
parent 0b1d1a7248
commit 2aeeb63142
5 changed files with 25 additions and 5 deletions

View file

@ -179,8 +179,14 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
bytes_sent=host["bytes.sent"], bytes_rcvd=host["bytes.rcvd"]}, when, 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)
ts_utils.append("host:active_flows", {ifid=ifstats.id, host=hostname,
flows_as_client = host["active_flows.as_client"],
flows_as_server = host["active_flows.as_server"]},
when, verbose)
ts_utils.append("host:total_flows", {ifid=ifstats.id, host=hostname,
flows_as_client = host["total_flows.as_client"],
flows_as_server = host["total_flows.as_server"]},
when, verbose)
-- Number of anomalous flows
ts_utils.append("host:anomalous_flows", {ifid = ifstats.id, host = hostname,