Added TCP packets time series (#2516)

This commit is contained in:
Salvatore Costantino 2019-04-08 15:30:45 +02:00 committed by simonemainardi
parent dd24d2a932
commit f27f137c09
4 changed files with 17 additions and 1 deletions

View file

@ -226,6 +226,12 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
out_of_order_packets = host["tcp.packets.out_of_order"],
lost_packets = host["tcp.packets.lost"]},
when, verbose)
-- Number of TCP packets
ts_utils.append("host:tcp_packets", {ifid = ifstats.id, host = hostname,
packets_sent = host["tcp.packets.sent"],
packets_rcvd = host["tcp.packets.rcvd"]},
when, verbose)
-- Total number of alerts
ts_utils.append("host:total_alerts", {ifid = ifstats.id, host = hostname,