Save metrics with future timestamp

20 views
Skip to first unread message

Abhilash T C

unread,
Sep 22, 2020, 7:26:04 AM9/22/20
to Prometheus Users
How can we save metrics to Prometheus with future time stamp? Wanted to save prediction data from a third party system.

Now Prometheus accepts timestamp only up to now+10. 


 

Brian Candler

unread,
Sep 22, 2020, 7:48:38 AM9/22/20
to Prometheus Users
Prometheus is only designed for scraping "now" data - not for historical backfilling, nor for ingesting future values.

You could store the prediction in one metric, together with a separate metric containing the timestamp the prediction relates to, as a Unix time value (seconds since 1 Jan 1970).

Otherwise, you could look at alternatives like VictoriaMetrics or InfluxDB, which allow infilling of data at arbitrary timestamps.

Abhilash T C

unread,
Sep 23, 2020, 12:55:31 AM9/23/20
to Prometheus Users
Thank you for the swift reply.
Reply all
Reply to author
Forward
0 new messages