Implements Clickhouse retention using partitions

Addresses #6030
This commit is contained in:
Simone Mainardi 2021-11-10 10:18:20 +01:00
parent 2f71f7d5ef
commit 3b4b5078fe
3 changed files with 41 additions and 4 deletions

View file

@ -31,8 +31,10 @@ end
-- ###########################################
function scripts_triggers.isDumbFlowToSQLEnabled(ifstats)
if (ntop.getPrefs()["is_dump_flows_to_mysql_enabled"] and not ifstats.isViewed) then
function scripts_triggers.isDumpFlowToSQLEnabled(ifstats)
local prefs = ntop.getPrefs()
if prefs["is_dump_flows_to_mysql_enabled"] or prefs["is_dump_flows_to_clickhouse_enabled"] then
return true
end