We have a program which exports metric whenever an event happens in the system, so we are generating a metric like this:
custom_metric{id="39a"} 1
and once another event happens in the system, a new metric generates like this:
custom_metric{id="15c"} 1
The problem is, since this metric is generated once in a while, the metrics get stalled after 5 minutes and e.g. there will be a gap between id=39a and id=15c when I want to see the history of "custom_metric", like the picture:
Is it possible to tell prometheus to keep the last metric until new one scraped by prometheus so the graph would be connected