Rework flow exporter counters

Fixes #2300
This commit is contained in:
emanuele-f 2019-01-14 14:09:33 +01:00
parent a86982cda6
commit 4feb75a152
12 changed files with 120 additions and 219 deletions

View file

@ -65,9 +65,7 @@ function dumpInterfaceStats(interface_name)
res["bytes"] = ifstats.stats_since_reset.bytes
res["drops"] = ifstats.stats_since_reset.drops
if prefs.is_dump_flows_to_es_enabled == true
or prefs.is_dump_flows_to_mysql_enabled == true
or prefs.is_dump_flows_to_ls_enabled then
if prefs.is_dump_flows_enabled == true then
res["flow_export_drops"] = ifstats.stats_since_reset.flow_export_drops
res["flow_export_rate"] = ifstats.stats_since_reset.flow_export_rate
res["flow_export_count"] = ifstats.stats_since_reset.flow_export_count