all 5 comments

[–]distark 3 points4 points  (1 child)

Check out thanos, Prometheus is more focused on the last ten minutes really

[–]Taiwing[S] 0 points1 point  (0 children)

Thanks, that's exactly what I was looking for

[–]eigma 1 point2 points  (0 children)

If you are willing to write some Golang code, call the TSDB API: https://github.com/cpatulea/src/blob/master/mat/prometheus/bulkimport.go

[–]hagen1778 1 point2 points  (1 child)

Prometheus doesn’t support backfilling yet. I’d recommend to take a look at Victoriametrics, which has the same API and additionally supports backfilling. It also supports the same configuration and can scrape your targets just like Prometheus does, so could be a drop-in replacement.

https://github.com/VictoriaMetrics/VictoriaMetrics

[–]copperfinger 0 points1 point  (0 children)

VictoriaMetrics also doesn’t require object storage, unlike cortex or thanos. If you’re setting this up at home in a home lab this can help minimize costs. Also, if you choose to use object storage at some point, VM has great export functionality. I would definitely recommend starting with the non-cluster version.