On Sunday, 18 October 2020 16:27:56 UTC+1, [email protected] wrote: > > Is it possible to tell prometheus to keep the last metric until new one > scraped by prometheus so the graph would be connected >
No, because these are two different timeseries. You say "this metric is generated once in a while", but don't say how it's generated or scraped. To avoid the staleness problem, you need to scrape every 2 minutes or faster. You don't necessarily need to *generate* it every 2 minutes - you could run a cronjob every 30 minutes (say) which writes the metric into a file, which is exported by node_exporter textfile collector. But you need to *scrape* it every 2 minutes. -- 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/c50cb991-e01a-4b43-ad6e-c48524271a76o%40googlegroups.com.

