Thanks, I'm importing metrics from our internal metrics system. Do you have any advice on how to push with the explicit timestamps?
Le ven. 7 oct. 2022 à 13:30, Stuart Clark <[email protected]> a écrit : > On 07/10/2022 10:16, Omar Khazamov wrote: > > Hi Stuart, > > I can see that support of timestamps has been discontinued around November > 21st, 2021. Indeed, when I try > > C02G74F9Q6LR bat-datapipeline % echo "test_metric_with_timestamp 33 > 1665623039" | curl --data-binary @- https:// > <pushgatewayURL>/metrics/job/pushgateway-job > > I get *"pushed metrics are invalid or inconsistent with existing > metrics: pushed metrics must not have timestamps"* > > Could you please specify how do you use timestamps in metrics? Thanks > > As mentioned before timestamps in general should not be used. > > You should always be publishing the "latest" value of any metric when > Prometheus scrapes the endpoint (or the push gateway in this case). > > -- > Stuart Clark > > -- Thanks, Omar Khazamov -- 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/CAJs55iTbprcMSyKugNwdso92c8J%3DWOSa1L8E-rbsdjP-PK_Eiw%40mail.gmail.com.

