mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes timeseries queries not working with serialize by mac
This commit is contained in:
parent
2d3df9e60a
commit
d2026ee9a8
1 changed files with 6 additions and 0 deletions
|
|
@ -138,8 +138,14 @@ function ts_data.get_timeseries(http_context)
|
|||
local tmp = split(options.schema, ":")
|
||||
|
||||
if (serialize_by_mac) and (options.tags.mac) then
|
||||
local ts_utils = require("ts_utils")
|
||||
options.schema = "host:" .. tmp[2]
|
||||
options.tags.host = options.tags.mac .. "_v4"
|
||||
-- In case of influxdb these info are not to be added, otherwise the query won't
|
||||
if ts_utils.getDriverName() == "influxdb" then
|
||||
options.tags.host_ip = nil
|
||||
options.tags.mac = nil
|
||||
end
|
||||
end
|
||||
|
||||
res = performQuery(options) or {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue