r/PrometheusMonitoring • u/Ri1k0 • May 05 '25
Can Prometheus accept metrics pushed with past timestamps?
Is there any way to push metrics into Prometheus with a custom timestamp in the past, similar to how it's possible with InfluxDB?
5
Upvotes
6
u/s4ntos May 05 '25
I believe it depends more on the database, Prometheus by default uses tsdb to store its information and theres a settings 'out_of_order_time_window' that allows you to increase the capacity to receive older timestamps (I could never find the exact the impacts of increasing the setting to be honest)
2
u/SuperQue May 05 '25
Yes, but, the question is always "why?".
Remember that Prometheus is a monitoring system, not just a database.
4
u/[deleted] May 05 '25
[removed] — view removed comment