Hello,

Do you have an example of a use case for this?

In general, you wouldn't "care to lose" any metrics. On a server restart, 
you'd lose all of them, which Prometheus would see as a reset, and deal 
with it normally.
That is actually the best practice, and we recommend emptying the metrics 
temp directory on startup, if you have a persistent file system, to ensure 
metrics get reset.

Sorry if I misunderstood your use case, however. An example would probably 
help.

Thank you!
Daniel

On Saturday, May 8, 2021 at 6:21:50 PM UTC+1 [email protected] wrote:

> *Problem*
>
> I would like to use different stores for different metrics.
> E.g. for metrics that I *don't scare* to lose I would like to use faster 
> storage, and for metrics I *scare* to lose - more reliable storage like 
> DirectFileStore.
> But seems like it is possible for now just to use a single store for all 
> metrics, because there is a one "global" config setting 
> `Prometheus::Client.config.data_store=`
>
> I'm ready to make a PR with such functionality. What do you think about 
> such feature?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/c00d1fbf-97c5-4314-8043-5f5f0ae995een%40googlegroups.com.

Reply via email to