Skip to content

Commit 40a7bd4

Browse files
committed
Possible fix for empty host timeseries issue (#9876)
1 parent 5a89bba commit 40a7bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lua/modules/timeseries_info.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3578,10 +3578,10 @@ function timeseries_info.retrieve_specific_timeseries(tags, prefix, include_empt
35783578

35793579
if not include_empty_ts then
35803580
-- Remove empty timeseries but exclude the ones starting with top: from the check
3581-
if not (info.schema:match("^top:")) then
3581+
-- Also don't consider timeseries with always_visibile option
3582+
if not (info.schema:match("^top:")) and not (info.always_visibile) then
35823583
local tmp_tags = table.clone(tags)
35833584

3584-
local tot = 0
35853585
local tot_serie = ts_utils.queryTotal(info.schema, tags.epoch_begin, tags.epoch_end, tmp_tags)
35863586
if not tot_serie then
35873587
goto skip

0 commit comments

Comments
 (0)