Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upData lost after restart prometheus #2390
Comments
This comment has been minimized.
This comment has been minimized.
|
A 30m scrape interval is going to run you into staleness issues. 2m is the practical maximum. |
brian-brazil
added
the
kind/question
label
Feb 2, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks for the reply @brian-brazil Does staleness issues affect the already collected data? Below is a sample of my dashboard before and after restart prometheus for a better understanding. The chart on the left uses influxdb as datasource and the one on the right is using prometheus. Both are sync. Before restart (data between both graph are sync): After restart (prometheus data went rogue): KPI metric is calculated using the other two, under_5 and above_5 - under_5/(under_5+above_5) * 100 Regards |
This comment has been minimized.
This comment has been minimized.
|
No, the data is still there but queries may have unexpected issues such as gaps. |
This comment has been minimized.
This comment has been minimized.
|
Ok, but shouldn´t I experience that without a restart also? |
This comment has been minimized.
This comment has been minimized.
|
I'm presuming the restart is unrelated. |
grobie
closed this
Mar 6, 2017
This comment has been minimized.
This comment has been minimized.
rathohit311356
commented
May 10, 2018
|
How can we keep data file persistent ? |
This comment has been minimized.
This comment has been minimized.
|
@rathohit311356 sound like you have a lot of reading to do |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |


jofm commentedFeb 2, 2017
Hi,
I'm starting using prometheus and I cannot evaluate if this is a issue or something that i'm missing. Also I can't find info about this.
I'm using Prometheus v1.5.0 with Pushgateway v0.3.1 both on linux Red Hat.
When injecting metrics on the pushgateway I need to specify a timestamp. Everything runs well until I restart prometheus service. After restart I notice that all values for each time period are just wrong, they simple don't match with the data before the restart.
Metric sample that go into pushgateway:
I'm putting new metrics in pushgateway every hour and pushing with prometheus every 30 minutes (sync reasons with data collectors). Here's my config file:
Don't know if this has anything to do with some kind of prometheus data aggregation that just go rogue because of the "forced" timestamp or some missing configuration.
Thanks in advance.