mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
77 lines
1.7 KiB
Lua
77 lines
1.7 KiB
Lua
--
|
|
-- (C) 2019-20 - ntop.org
|
|
--
|
|
|
|
local ts_utils = require "ts_utils_core"
|
|
local schema
|
|
|
|
schema = ts_utils.newSchema("am_host:val_min", {
|
|
step = 60,
|
|
metrics_type = ts_utils.metrics.gauge,
|
|
aggregation_function = ts_utils.aggregation.max,
|
|
is_system_schema = true,
|
|
})
|
|
|
|
schema:addTag("ifid")
|
|
schema:addTag("host")
|
|
schema:addTag("metric")
|
|
schema:addMetric("value")
|
|
|
|
-- ##############################################
|
|
|
|
schema = ts_utils.newSchema("am_host:http_stats_min", {
|
|
step = 60,
|
|
metrics_type = ts_utils.metrics.gauge,
|
|
aggregation_function = ts_utils.aggregation.max,
|
|
is_system_schema = true,
|
|
})
|
|
|
|
schema:addTag("ifid")
|
|
schema:addTag("host")
|
|
schema:addTag("metric")
|
|
schema:addMetric("lookup_ms")
|
|
schema:addMetric("other_ms")
|
|
|
|
-- ##############################################
|
|
|
|
schema = ts_utils.newSchema("am_host:https_stats_min", {
|
|
step = 60,
|
|
metrics_type = ts_utils.metrics.gauge,
|
|
aggregation_function = ts_utils.aggregation.max,
|
|
is_system_schema = true,
|
|
})
|
|
|
|
schema:addTag("ifid")
|
|
schema:addTag("host")
|
|
schema:addTag("metric")
|
|
schema:addMetric("lookup_ms")
|
|
schema:addMetric("connect_ms")
|
|
schema:addMetric("other_ms")
|
|
|
|
-- ##############################################
|
|
|
|
schema = ts_utils.newSchema("am_host:cicmp_stats_min", {
|
|
step = 60,
|
|
metrics_type = ts_utils.metrics.gauge,
|
|
is_system_schema = true,
|
|
})
|
|
|
|
schema:addTag("ifid")
|
|
schema:addTag("host")
|
|
schema:addTag("metric")
|
|
schema:addMetric("min_rtt")
|
|
schema:addMetric("max_rtt")
|
|
|
|
-- ##############################################
|
|
|
|
schema = ts_utils.newSchema("am_host:jitter_stats_min", {
|
|
step = 60,
|
|
metrics_type = ts_utils.metrics.gauge,
|
|
is_system_schema = true,
|
|
})
|
|
|
|
schema:addTag("ifid")
|
|
schema:addTag("host")
|
|
schema:addTag("metric")
|
|
schema:addMetric("latency")
|
|
schema:addMetric("jitter")
|