Added packets timeseries (#9279) and removed broken tcp/udp timeseries (#9278)

This commit is contained in:
Matteo Biscosi 2025-06-17 17:26:46 +02:00
parent 1a99e709a1
commit a3f64be34b
11 changed files with 153 additions and 1071 deletions

View file

@ -400,14 +400,6 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
}, when)
end
-- Number of udp packets
ts_utils.append("host:udp_pkts", {
ifid = ifstats.id,
host = hostname,
packets_sent = host["udp.packets.sent"],
packets_rcvd = host["udp.packets.rcvd"]
}, when)
-- Tcp RX Stats
ts_utils.append("host:tcp_rx_stats", {
ifid = ifstats.id,
@ -426,14 +418,6 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
lost_packets = host["tcpPacketStats.sent"]["lost"]
}, when)
-- 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)
-- Contacts
if host["contacts.as_client"] then
ts_utils.append("host:contacts", {
@ -642,6 +626,12 @@ function ts_dump.light_host_update_rrd(when, hostname, host, ifstats, verbose)
bytes_sent = host["bytes.sent"],
bytes_rcvd = host["bytes.rcvd"]
}, when)
ts_utils.append("host:packets", {
ifid = ifstats.id,
host = hostname,
packets_sent = host["packets.sent"],
packets_rcvd = host["packets.rcvd"]
}, when)
-- Score
ts_utils.append("host:score", {