mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add timeseries for host and interface DSCP classes
This commit is contained in:
parent
01f902ff68
commit
c6cf8e418e
11 changed files with 102 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ local host_pools_instance = host_pools:create()
|
|||
local callback_utils = require "callback_utils"
|
||||
local ts_utils = require "ts_utils_core"
|
||||
local format_utils = require "format_utils"
|
||||
local user_scripts = require("user_scripts")
|
||||
local user_scripts = require "user_scripts"
|
||||
require "ts_5min"
|
||||
|
||||
-- Set to true to debug host timeseries points timestamps
|
||||
|
|
@ -338,6 +338,19 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
|
|||
end
|
||||
end
|
||||
|
||||
-- DSCP Classes
|
||||
for id, value in pairs(host.dscp) do
|
||||
ts_utils.append("host:dscp",
|
||||
{
|
||||
ifid=ifstats.id,
|
||||
host=hostname,
|
||||
dscp_class=id,
|
||||
bytes_sent=value["bytes.sent"],
|
||||
bytes_rcvd=value["bytes.rcvd"]
|
||||
},
|
||||
when)
|
||||
end
|
||||
|
||||
-- UDP breakdown
|
||||
ts_utils.append("host:udp_sent_unicast", {ifid=ifstats.id, host=hostname,
|
||||
bytes_sent_unicast=host["udpBytesSent.unicast"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue