mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Flow user scripts enhancements
- Add title label in hash table utilization gauges - List Hash Tables charts and Periodic Activities charts in a single page - Replace Periodic Activities max duration column with time utilization percentage - Add api to add a straight line in the charts - Show max duration time as a straight line in Periodic Activities charts - Move dropped flow calls charts to the Peridic Activities page - Fix expert view number of calls 0 - Fix interface/host/network trigger alert label - Move chart icon to separate column in redis and influxdb pages - Fix interface menu selection in Hash Tables and Periodic Activities - Highlight issues with a warning triangle in Hash Tables and Periodic Activities - Fix some page navigation issues with extra_params - Fix wrong schema graph options passed to nv_graph_utils
This commit is contained in:
parent
a893e0a2c0
commit
1fd65ac44c
25 changed files with 280 additions and 154 deletions
|
|
@ -5,33 +5,6 @@
|
|||
local ts_utils = require "ts_utils_core"
|
||||
local schema
|
||||
|
||||
-------------------------------------------------------
|
||||
-- HASH_TABLES SCHEMAS
|
||||
-------------------------------------------------------
|
||||
|
||||
schema = ts_utils.newSchema("ht:duration", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("hash_table")
|
||||
schema:addMetric("num_ms")
|
||||
|
||||
schema = ts_utils.newSchema("ht:num_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("hash_table")
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
schema = ts_utils.newSchema("ht:num_skipped_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("hash_table")
|
||||
schema:addMetric("idle")
|
||||
schema:addMetric("proto_detected")
|
||||
schema:addMetric("periodic_update")
|
||||
|
||||
schema = ts_utils.newSchema("ht:num_pending_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("hash_table")
|
||||
schema:addMetric("proto_detected")
|
||||
schema:addMetric("periodic_update")
|
||||
|
||||
-------------------------------------------------------
|
||||
-- FLOW USER SCRIPTS SCHEMAS
|
||||
-------------------------------------------------------
|
||||
|
|
@ -45,11 +18,34 @@ schema:addMetric("num_ms")
|
|||
schema = ts_utils.newSchema("flow_user_script:num_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("user_script")
|
||||
schema:addTag("subdir")
|
||||
schema:addTag("subdir") -- NOTE: needed by user_scripts.ts_dump
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
schema = ts_utils.newSchema("flow_user_script:total_stats", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addTag("subdir")
|
||||
schema:addTag("subdir") -- NOTE: needed by user_scripts.ts_dump
|
||||
schema:addMetric("num_ms")
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
-------------------------------------------------------
|
||||
-- FLOW USER SCRIPT SCHEMAS
|
||||
-------------------------------------------------------
|
||||
|
||||
schema = ts_utils.newSchema("flow_script:skipped_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addMetric("idle")
|
||||
schema:addMetric("proto_detected")
|
||||
schema:addMetric("periodic_update")
|
||||
|
||||
schema = ts_utils.newSchema("flow_script:pending_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addMetric("proto_detected")
|
||||
schema:addMetric("periodic_update")
|
||||
|
||||
schema = ts_utils.newSchema("flow_script:successful_calls", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addMetric("num_calls")
|
||||
|
||||
schema = ts_utils.newSchema("flow_script:lua_duration", {step = 5, metrics_type = ts_utils.metrics.gauge})
|
||||
schema:addTag("ifid")
|
||||
schema:addMetric("num_ms")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue