Fixes engaged/dropped alert timeseries wrongly typed

Partially addresses #5678
This commit is contained in:
Simone Mainardi 2021-07-14 12:53:55 +02:00
parent a23babe57d
commit 3ada168fb7
6 changed files with 43 additions and 14 deletions

View file

@ -1049,7 +1049,8 @@ local default_timeseries = {
{schema="iface:new_flows", label=i18n("graphs.new_flows"), value_formatter = {"NtopUtils.fflows", "NtopUtils.formatFlows"}},
{schema="iface:alerted_flows", label=i18n("graphs.total_alerted_flows")},
{schema="iface:hosts", label=i18n("graphs.active_hosts")},
{schema="iface:alerts_stats", label=i18n("show_alerts.iface_engaged_dropped_alerts"), skip=hasAllowedNetworksSet()},
{schema="iface:engaged_alerts", label=i18n("show_alerts.engaged_alerts"), metrics_labels = { i18n("show_alerts.engaged_alerts") }, skip=hasAllowedNetworksSet()},
{schema="iface:dropped_alerts", label=i18n("show_alerts.dropped_alerts"), metrics_labels = { i18n("show_alerts.dropped_alerts") }, skip=hasAllowedNetworksSet()},
{schema="custom:flows_vs_local_hosts", label=i18n("graphs.flows_vs_local_hosts"), check={"iface:flows", "iface:local_hosts"}, step=60},
{schema="custom:flows_vs_traffic", label=i18n("graphs.flows_vs_traffic"), check={"iface:flows", "iface:traffic"}, step=60},
{schema="custom:memory_vs_flows_hosts", label=i18n("graphs.memory_vs_hosts_flows"), check={"process:resident_memory", "iface:flows", "iface:hosts"}},