I'd say keep a different instance for long-term data.

This could be another prometheus, which gets data from the first one, e.g. 
using federation <https://prometheus.io/docs/prometheus/latest/federation/> 
or remote write.  Or it could be some completely different system 
<https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage>
 
that it remote writes 
<https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations>
 
to.

On Wednesday, 18 May 2022 at 08:50:59 UTC+1 [email protected] wrote:

> Hello!
>
> I have a prometheus instance that keeps data for 60 days 
> (--storage.tsdb.retention.time=1440h). This is fine for most metrics I 
> keep, but I'd like to keep some metrics (things like temperatures for 
> instance) for longer periods of time (1 year). 
>
> Is there a way to do this efficiently? Do I have to set a longer retention 
> period and then force expire most of the data to keep only what I'm 
> interested in? Does this mess with the storage of data (e.g. fragmentation, 
> frequent writes of old data)? Should I keep a different instance for 
> long-term data?
>
> Thank you for any advice.
> Regards,
> Adrian
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/517b6b24-493c-4700-b3e4-5f3e6c72d44bn%40googlegroups.com.

Reply via email to