Prometheus export fix

This commit is contained in:
Luca 2019-07-02 15:20:33 +02:00
parent c56b01b37e
commit d73a6e7959

View file

@ -71,7 +71,7 @@ function driver:append(schema, timestamp, tags, metrics)
local metric_str = string.format('%s {%s metric="%s"} %f %d', schema.name, tags_str, k, v, timestamp * 1000)
-- writing onto Prometheus
ntop.rpushCache(prometheus_queue, metric_str)
ntop.lpushCache(prometheus_queue, metric_str)
ntop.ltrimCache(prometheus_queue, 0, max_prometheus_queueLen)
end