mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
21 lines
473 B
Lua
21 lines
473 B
Lua
--
|
|
-- (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")
|