I just wanted to chime in to say that you almost never need to know
exactly when a metric is updated.
Before you start exporting additional timestamp metrics, you should
really ask yourself whether you actually need them. What problem do
they actually solve?

--Matt

On Mon, Aug 7, 2023 at 5:54 PM Stuart Clark <[email protected]> wrote:
>
> On 07/08/2023 21:00, Moe wrote:
> > Thanks Brian that was really helpful,
> >
> > 2. The use case I want this for doesn't need continuous ingestion. In
> > that case is there a way for me to add time stamp to MetricFamilySample?
>
> That isn't how Prometheus works. It will scrape that metric every 10
> seconds to 2 minutes. If you need to know when that set of metrics was
> created a common pattern is to include a metric who's value is the
> timestamp.
>
> --
> Stuart Clark
>
> --
> 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/d401af4d-8583-d2d6-dbbe-89853000e421%40Jahingo.com.



-- 
--Matt

-- 
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/CAGyBzcz6B%2B-vQdo1F7oPXKQYEU%3DjtuQV-S6KmZDqo%3DATMTFX4w%40mail.gmail.com.

Reply via email to