Skip to content

Commit

Permalink
fix(influx) Ignore time metric (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
UrBnW authored and kduret committed Feb 14, 2023
1 parent 540d80a commit 99ef371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream-connectors/influxdb/influxdb-neb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function EventQueue:add(e)
else
inst = ",inst=" .. string.gsub(inst, "[ ,=]+", self.replacement_character)
end
if not e.service_id or string.match(metric, ".+[.].+") then
if (not e.service_id and metric ~= "time") or string.match(metric, ".+[.].+") then
if not instances[inst] then
instances[inst] = self.measurement .. service_description .. ",host=" .. host_name .. item .. inst .. " "
end
Expand Down

0 comments on commit 99ef371

Please sign in to comment.