From 21f5600a36cce8653ea1e0c502cf0325ec9545cb Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 23 Apr 2020 18:51:17 +0500 Subject: [PATCH] Add errors_in_sum, errors_out_sum column to reportmetrics. --- services/web/apps/inv/reportmetrics/views.py | 6 ++++++ ui/web/inv/reportmetrics/Application.js | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/services/web/apps/inv/reportmetrics/views.py b/services/web/apps/inv/reportmetrics/views.py index 14e9bcc9de..e17f04b222 100644 --- a/services/web/apps/inv/reportmetrics/views.py +++ b/services/web/apps/inv/reportmetrics/views.py @@ -138,7 +138,9 @@ class ReportMetricsDetailApplication(ExtApplication): "load_out", "load_out_p", "errors_in", + "errors_in_sum", "errors_out", + "errors_out_sum", "slot", "cpu_usage", "memory_usage", @@ -164,7 +166,9 @@ class ReportMetricsDetailApplication(ExtApplication): "LOAD_OUT", "LOAD_OUT_P", "ERRORS_IN", + "ERRORS_IN_SUM", "ERRORS_OUT", + "ERRORS_OUT_SUM", "CPU_USAGE", "MEMORY_USAGE", "PING_RTT", @@ -284,7 +288,9 @@ class ReportMetricsDetailApplication(ExtApplication): "(managed_object, arrayStringConcat(path))), max(speed)), 4) * 100), '.', ',')", ), "errors_in": ("errors_in", "err_in", "quantile(0.90)(errors_in)"), + "errors_in_sum": ("errors_in_delta", "err_in_d", "sum(errors_in_delta)"), "errors_out": ("errors_out", "err_out", "quantile(0.90)(errors_out)"), + "errors_out_sum": ("errors_out_delta", "err_out_d", "sum(errors_out_delta)"), "interface_flap": ( "interface_flap", "flap_count", diff --git a/ui/web/inv/reportmetrics/Application.js b/ui/web/inv/reportmetrics/Application.js index f03641e1db..a8dac5f34e 100644 --- a/ui/web/inv/reportmetrics/Application.js +++ b/ui/web/inv/reportmetrics/Application.js @@ -26,12 +26,14 @@ Ext.define("NOC.inv.reportmetrics.Application", { ["iface_name", __("Interface Name"), true], ["iface_description", __("Interface Description"), true], ["iface_speed", __("Interface Speed"), false], - ["load_in", __("Load In"), true], + ["load_in", __("Load In (90% percentile)"), true], ["load_in_p", __("Load In (% Bandwith)"), false], - ["load_out", __("Load Out"), true], + ["load_out", __("Load Out (90% percentile)"), true], ["load_out_p", __("Load Out (% Bandwith)"), false], - ["errors_in", __("Errors In"), true], - ["errors_out", __("Errors Out"), true], + ["errors_in", __("Errors In (packets/s)"), true], + ["errors_out", __("Errors Out (packets/s)"), true], + ["errors_in_sum", __("Errors In (Summary)"), false], + ["errors_out_sum", __("Errors Out (Summary)"), false], ["interface_flap", __("Interface Flap count"), false], ["interface_load_url", __("Interface Load URL"), false] ], -- GitLab