mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
parent
81f55a02a4
commit
f7e1ea9709
164 changed files with 106 additions and 84 deletions
21
scripts/plugins/examples/example/ts_schemas/5mins.lua
Normal file
21
scripts/plugins/examples/example/ts_schemas/5mins.lua
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue