Skip to content

Commit

Permalink
Added top l7 protocols timeseries to exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Nov 14, 2024
1 parent 9dab48a commit ed3b24a
Show file tree
Hide file tree
Showing 2 changed files with 401 additions and 389 deletions.
6 changes: 5 additions & 1 deletion scripts/lua/modules/timeseries/drivers/rrd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit ed3b24a

Please sign in to comment.