Added switch between normal and per minute traffic ts

This commit is contained in:
Matteo Biscosi 2023-12-21 11:05:03 +00:00
parent 98c8b49d97
commit 665c743174
3 changed files with 134 additions and 3 deletions

View file

@ -101,6 +101,12 @@ function ts_data.get_timeseries(http_context)
interface.select(options.tags.ifid)
end
if options.schema == 'snmp_if:traffic_min' and options.tags.port then
options.tags.if_index = options.tags.port
options.tags.ifid = getSystemInterfaceId()
options.tags.port = nil
end
if http_context.tskey then
-- This can contain a MAC address for local broadcast domain hosts
local tskey = http_context.tskey