-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Component(s)
processor/cumulativetodelta
Is your feature request related to a problem? Please describe.
When using the processor with the default values, the max_staleness parameter is by default set to 0, which according to documentation keeps the metrics data indefinitely, even if there are no new metric datapoints coming through the processor anymore (for example from a killed Pod in k8s). Such behavior on a big environments leads to a steady increase in CPU and memory consumption, where the collector eventually will reach the limit and die.
Describe the solution you'd like
Default value of max_staleness parameter is set to 1h, which will avoid increasing memory consumption when processing large amounts of different metrics. The change of default behavior should be handled via feature gate.
With the parameter enabled, the memory and CPU usage remain stable.
Describe alternatives you've considered
Currently, there is only the alternative to set the timeout manually
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.