mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Refactors user_scripts into checks (lua)
This commit is contained in:
parent
3c3aa5a25f
commit
76fd315d1b
222 changed files with 980 additions and 981 deletions
|
|
@ -31,21 +31,21 @@ schema:addMetric("num_ts") -- Number of timeseries currently in the queue
|
|||
-- FLOW USER SCRIPTS SCHEMAS
|
||||
-------------------------------------------------------
|
||||
|
||||
schema = ts_utils.newSchema("flow_user_script:duration", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema = ts_utils.newSchema("flow_check:duration", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("user_script")
|
||||
schema:addTag("check")
|
||||
schema:addTag("subdir")
|
||||
schema:addMetric("num_ms")
|
||||
|
||||
schema = ts_utils.newSchema("flow_user_script:num_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema = ts_utils.newSchema("flow_check:num_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("user_script")
|
||||
schema:addTag("subdir") -- NOTE: needed by user_scripts.ts_dump
|
||||
schema:addTag("check")
|
||||
schema:addTag("subdir") -- NOTE: needed by checks.ts_dump
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
schema = ts_utils.newSchema("flow_user_script:total_stats", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema = ts_utils.newSchema("flow_check:total_stats", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("subdir") -- NOTE: needed by user_scripts.ts_dump
|
||||
schema:addTag("subdir") -- NOTE: needed by checks.ts_dump
|
||||
schema:addMetric("num_ms")
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue