Closed
Description
The metrics-generator has a mechanism to remove series that have become stale—ie. have not received a new value in some time. The main objectives are keeping resources down and make room for more frequent series.
This is a problem for series that are removed frequently, because traces_spanmetrics_calls_total
gets initialised at the value of the first scrape once the series gets registered, and Prometheus skips the jump from null
to a given value. In order not to lose that first value, we need to push a first value of 0
when a new series is added to the counter.