Additional debug for RRD

This commit is contained in:
emanuele-f 2019-06-19 09:36:58 +02:00
parent 94d72c2b98
commit aa17725323
2 changed files with 5 additions and 1 deletions

View file

@ -349,6 +349,10 @@ end
local function update_rrd(schema, rrdfile, timestamp, data, dont_recover)
local params = {tolongint(timestamp), }
if isDebugEnabled() then
traceError(TRACE_NORMAL, TRACE_CONSOLE, string.format("Going to update %s [%s]", schema.name, rrdfile))
end
for _, metric in ipairs(schema._metrics) do
params[#params + 1] = tolongint(data[metric])
end