Is my understanding correct, in that:
- You can use the push gateway without timestamped data, however this will result in continuous sampling of the push gateway with lots of identical samples. If the scraping of the push gateway happens every minute, thats essentially 60x24 identical (useless) samples.
- You can use the push gateway with timestamps, once per day. However, the metric will disappear if there have not been any further updates for 5 minutes?
I am a bit confused by the section of the push gateway docs:
"if it cannot get any samples for a metric in 5min, it will behave as if that metric does not exist anymore. Preventing that is actually one of the reasons to use a push gateway. The push gateway will make the metrics of your ephemeral job scrapable at any time. Attaching the time of pushing as a timestamp would defeat that purpose because 5min after the last push, your metric will look as stale to Prometheus as if it could not be scraped at all anymore. (Prometheus knows only one timestamp per sample, there is no way to distinguish a 'time of pushing' and a 'time of scraping'.)
You can still force Prometheus to attach a different timestamp by using the optional timestamp field in the exchange format. However, there are very few use cases where that would make sense. (Essentially, if you push more often than every 5min, you could attach the time of pushing as a timestamp.)"
Can someone explain what it means by "it will behave as if that metric does not exist anymore"? Surely prometheus doesn't delete all the timeseries data if you have a 5 minute outage?
If Prometheus is a bad fit that's fine too - just trying to figure it all out.
Thanks
Mike
Yes, this is definitely a bad fit for Prometheus.
What happens with the 5 min window thing is just visibility, it does not delete the data.
In order to see the data, you need to make a query that has a time range with samples within 5min.
Maybe back to the actual data problem. Can you give us more info about what the bash script is doing? What is the raw underlying data.
--
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 prometheus-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
--
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 prometheus-developers+unsub...@googlegroups.com.