Fix system interface timeseries cleanup

This commit is contained in:
emanuele-f 2019-07-05 16:22:36 +02:00
parent 94f894454c
commit a3e1744353
16 changed files with 70 additions and 27 deletions

View file

@ -455,8 +455,14 @@ function printSeries(options, tags, start_time, base_url, params)
-- In the case of custom series, the serie can only be shown if all
-- the component series exists
for _, serie in pairs(to_check) do
local batch_id = ts_utils.batchListSeries(serie, tags, start_time)
for idx, serie in pairs(to_check) do
local exist_tags = tags
if starts(k, "custom:") then
exist_tags = getCustomSchemaTags(k, exist_tags, idx)
end
local batch_id = ts_utils.batchListSeries(serie, exist_tags, start_time)
if batch_id == nil then
exists = false