mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
The CloudWatch metric store has no size bound, and since SQS publishes AWS/SQS metrics for every active queue each minute it grows with no PutMetricData call, until a persisted cwmetrics.json no longer fits the heap on load. floci.services.cloudwatchmetrics.max-stored-datapoints (default 100000) now caps the datapoints kept per account in each namespace a MinuteMetricsPublisher writes (AWS/SQS, AWS/Redshift). After each tick the publisher drops the oldest over the ceiling, down to nine tenths of it, through the metric key index; other namespaces are never cut, and 0 or less turns the ceiling off.