mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
parent
aa75e6777c
commit
52a396ec88
4 changed files with 24 additions and 1 deletions
|
|
@ -88,6 +88,20 @@ schema:addMetric("bytes_rcvd")
|
|||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("asn:traffic_sent", {step=300, rrd_fname="bytes_sent"})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("asn")
|
||||
schema:addMetric("bytes")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("asn:traffic_rcvd", {step=300, rrd_fname="bytes_rcvd"})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("asn")
|
||||
schema:addMetric("bytes")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("asn:ndpi", {step=300})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("asn")
|
||||
|
|
|
|||
|
|
@ -60,6 +60,11 @@ function ts_dump.asn_update_rrds(when, ifstats, verbose)
|
|||
ts_utils.append("asn:traffic", {ifid=ifstats.id, asn=asn,
|
||||
bytes_sent=asn_stats["bytes.sent"], bytes_rcvd=asn_stats["bytes.rcvd"]}, when)
|
||||
|
||||
ts_utils.append("asn:traffic_sent", {ifid=ifstats.id, asn=asn,
|
||||
bytes=asn_stats["bytes.sent"]}, when)
|
||||
|
||||
ts_utils.append("asn:traffic_rcvd", {ifid=ifstats.id, asn=asn,
|
||||
bytes=asn_stats["bytes.rcvd"]}, when)
|
||||
-- Save ASN ndpi stats
|
||||
if asn_stats["ndpi"] ~= nil then
|
||||
for proto_name, proto_stats in pairs(asn_stats["ndpi"]) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue