mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Refactors RTT to Active Monitoring
Addresses #3741 Refactors RTT: rtt_utils to active_monitoring_utils Refactors RTT: rtt_host to am_host schema name Refactors RTT: import_active_monitoring_config.lua Refactors RTT: active_monitoring_stats.lua Refactors RTT: active_monitoring_stats i18n Refactors RTT: get_active_monitoring_config.lua Refactors RTT: get_active_monitoring_hosts Refactors RTT: edit_active_monitoring_host Refactors RTT: active_monitoring.lua Refactors RTT: active_monitor Refactors RTT: active_monitoring_utils.js Refactors RTT: get_active_monitoring_hosts.lua fixes Refactors RTT: last_rtt Refactors RTT: rtt_host to am_host
This commit is contained in:
parent
32b5cecf7d
commit
3e14bc30f8
27 changed files with 202 additions and 204 deletions
49
scripts/plugins/active_monitoring/ts_schemas/hour.lua
Normal file
49
scripts/plugins/active_monitoring/ts_schemas/hour.lua
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
--
|
||||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local ts_utils = require "ts_utils_core"
|
||||
local schema
|
||||
|
||||
schema = ts_utils.newSchema("am_host:rtt_hour", {
|
||||
step = 3600,
|
||||
metrics_type = ts_utils.metrics.gauge,
|
||||
aggregation_function = ts_utils.aggregation.max,
|
||||
is_system_schema = true,
|
||||
})
|
||||
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("host")
|
||||
schema:addTag("measure")
|
||||
schema:addMetric("millis_rtt")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("am_host:http_stats_hour", {
|
||||
step = 3600,
|
||||
metrics_type = ts_utils.metrics.gauge,
|
||||
aggregation_function = ts_utils.aggregation.max,
|
||||
is_system_schema = true,
|
||||
})
|
||||
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("host")
|
||||
schema:addTag("measure")
|
||||
schema:addMetric("lookup_ms")
|
||||
schema:addMetric("other_ms")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
schema = ts_utils.newSchema("am_host:https_stats_hour", {
|
||||
step = 3600,
|
||||
metrics_type = ts_utils.metrics.gauge,
|
||||
aggregation_function = ts_utils.aggregation.max,
|
||||
is_system_schema = true,
|
||||
})
|
||||
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("host")
|
||||
schema:addTag("measure")
|
||||
schema:addMetric("lookup_ms")
|
||||
schema:addMetric("connect_ms")
|
||||
schema:addMetric("other_ms")
|
||||
Loading…
Add table
Add a link
Reference in a new issue