Reworks plugin loading and structure

Implements #4358
This commit is contained in:
Simone Mainardi 2020-09-15 11:33:50 +02:00
parent 81f55a02a4
commit f7e1ea9709
164 changed files with 106 additions and 84 deletions

View file

@ -0,0 +1,21 @@
--
-- (C) 2020 - ntop.org
--
-- This file contains timeseries defintions which have 5 minutes granularity
local ts_utils = require "ts_utils_core"
local schema
-- Define a schema "host:total_hops" as a counter (suitable for
-- cumulative values).
schema = ts_utils.newSchema("host:total_hops", {
step = 300,
metrics_type = ts_utils.metrics.counter,
})
-- The record identifiers
schema:addTag("ifid")
schema:addTag("host")
-- The values
schema:addMetric("num_hops")