Configuration option to drop oldest or newest data in the buffer when buffer is full
#15,217 创建于 2024年4月24日
仓库指标
- Star
- (9,892 star)
- PR 合并指标
- (平均合并 2天 12小时) (30 天内合并 136 个 PR)
描述
Use Case
Similar to https://github.com/influxdata/telegraf/issues/15208
(accommodating temporary high-write bursts to and influxdb instance)
Sometimes the newest data is more important to keep than the oldest data (if your computer failed, would you care more about what happened right before the failure or 5 minutes before the failure?)
Sometimes the oldest data is more important to keep than the newest data (ex: which events happened first in this very large burst of events?)
Expected behavior
I expected to see a configuration option like "buffer_drop_strategy" which would default to "drop_oldest".
Actual behavior
No configuration option to specify which metrics (newest or oldest) are dropped from the buffer.
Additional info
No response