Added top l7 protocols timeseries to exporters

This commit is contained in:
Matteo Biscosi 2024-11-14 17:00:52 +01:00
parent 9dab48aedf
commit ed3b24a786
2 changed files with 400 additions and 388 deletions

View file

@ -994,7 +994,11 @@ function driver:timeseries_top(options, top_tags)
if isEmptyString(ext_label) then
ext_label = ifindex
end
-- Special case, top protocol timeseries, here the ext_label needs to be the protocol
if available_tags[top_item][1].protocol then
ext_label = top_item
end
count = table.len(available_series[top_item].data)
top_series[#top_series + 1] = {
data = available_series[top_item].data,