mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Prometheus export fix
This commit is contained in:
parent
c56b01b37e
commit
d73a6e7959
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue