rcrowley / go-metrics

Go port of Coda Hale's Metrics library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data loss on influx when app is restarted

sergiosrax opened this issue · comments

I'm having an issue, when I restart the go application the tick meter restart to 0 so when doing a derivative it start to look like this

image

Query for the graph: SELECT DERIVATIVE(max("count"), 5m) AS "requests" FROM "metrics"."autogen"."prebid.requests.meter" WHERE time > now() - 1h GROUP BY time(5m) FILL(0)

Query: SELECT max("count") AS "requests" FROM "metrics"."autogen"."prebid.requests.meter" WHERE time > now() - 1h GROUP BY time(5m) FILL(0)

date,requests
2/27/2018 4:55:00 PM,1
2/27/2018 5:00:00 PM,1
2/27/2018 5:05:00 PM,1
2/27/2018 5:10:00 PM,3
2/27/2018 5:15:00 PM,4
2/27/2018 5:20:00 PM,1
2/27/2018 5:25:00 PM,1

I'm trying to look for a solution like loading already saved data into of the registry into the tick.