mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
23 lines
721 B
Lua
23 lines
721 B
Lua
--
|
|
-- (C) 2019-24 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/timeseries/?.lua;" .. package.path
|
|
|
|
local influxdb_export_api = require "influxdb_export_api"
|
|
|
|
-- ##############################################
|
|
|
|
if influxdb_export_api.isInfluxdbEnabled() then
|
|
local ts_utils = require "ts_utils_core"
|
|
local influxdb = ts_utils.getQueryDriver()
|
|
local when = os.time()
|
|
|
|
influxdb_export_api.exportStats(when, influxdb)
|
|
influxdb_export_api.measureRtt(when, influxdb)
|
|
influxdb_export_api.exportStorageSize(when, influxdb)
|
|
end
|
|
|
|
-- ##############################################
|