There's no need to optimise this. Just keep scraping the same value repeatedly. Prometheus' delta compression is highly efficient, extremely so when the values don't change: the delta between adjacent values is zero, and the delta between scrape timestamps is roughly constant. Besides, storage these days is very cheap.
It's also semantically useful to keep all the scrapes. There is a difference between "the value was known to be X at time T", and "the value at time T was not recorded; maybe it was the same as at time T-1, maybe not" -- 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/9f5c94dc-1047-49df-a839-b14f4b997d4ao%40googlegroups.com.

