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:
emanuele-f 2019-11-20 19:51:59 +01:00
parent a893e0a2c0
commit 1fd65ac44c
25 changed files with 280 additions and 154 deletions

View file

@ -175,19 +175,15 @@ function ts_dump.update_periodic_scripts_stats(when, ifstats, verbose)
local periodic_scripts_stats = interface.getPeriodicActivitiesStats()
for ps_name, ps_stats in pairs(periodic_scripts_stats) do
local num_ms_max = 0
local num_ms_last = 0
if ps_stats["duration"] then
if ps_stats["duration"]["max_duration_ms"] then
num_ms_max = ps_stats["duration"]["max_duration_ms"]
end
if ps_stats["duration"]["last_duration_ms"] then
num_ms_last = ps_stats["duration"]["last_duration_ms"]
end
end
ts_utils.append("periodic_script:duration_ms", {ifid = ifstats.id, periodic_script = ps_name, num_ms_max = num_ms_max, num_ms_last = num_ms_last}, when, verbose)
ts_utils.append("periodic_script:duration", {ifid = ifstats.id, periodic_script = ps_name, num_ms_last = num_ms_last}, when, verbose)
end
end