mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implements custom timeseries
This commit is contained in:
parent
65bc5261de
commit
0cd3d5be63
4 changed files with 89 additions and 0 deletions
|
|
@ -9,6 +9,12 @@ local top_talkers_utils = require "top_talkers_utils"
|
|||
local ts_utils = require("ts_utils_core")
|
||||
require("ts_minute")
|
||||
|
||||
local ts_custom
|
||||
if ntop.exists(dirs.installdir .. "/scripts/lua/modules/timeseries/custom/ts_minute_custom.lua") then
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/timeseries/custom/?.lua;" .. package.path
|
||||
ts_custom = require "ts_minute_custom"
|
||||
end
|
||||
|
||||
local ts_dump = {}
|
||||
|
||||
-- ########################################################
|
||||
|
|
@ -147,6 +153,11 @@ function ts_dump.run_min_dump(_ifname, ifstats, iface_ts, config, when, verbose)
|
|||
if config.tcp_flags_rrd_creation == "1" then
|
||||
ts_dump.iface_update_tcp_flags(instant, iface_point, verbose)
|
||||
end
|
||||
|
||||
-- create custom rrds
|
||||
if ts_custom and ts_custom.iface_update_stats then
|
||||
ts_custom.iface_update_stats(instant, _ifname, iface_point, verbose)
|
||||
end
|
||||
end
|
||||
|
||||
-- Save Profile stats every minute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue