mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
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:
parent
0b1d1a7248
commit
2aeeb63142
5 changed files with 25 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue