influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.45k stars 5.55k forks source link

Introduce Buffer Strategy agent config options #14805

Closed powersj closed 1 month ago

powersj commented 6 months ago

Use Case

Introduce a new agent config option which specifies a specific buffer strategy. It would have three options:

The key items to consider are:

The config would take two parameters:

These additional options could cause the disk to fill up and that is on the user to figure out and avoid.

Expected behavior

Allow the user to determine which strategy to use for the buffer.

Actual behavior

Only use in-memory buffer and when it overflows, metrics are discarded.

Additional info

No response

powersj commented 6 months ago

next steps: get draft PR up to start testing. Can do this one option at a time.

srebhan commented 6 months ago

@powersj now that we do have the spec thing, should we first get a PR for the spec and then put up the actual PR referencing this spec? Doesn't exclude a draft-PR before the spec though...

powersj commented 6 months ago

Yes, I agree, it would be good to at least have a PR for the draft.

knollet commented 6 months ago

We have this overflow problem, too. +1 for implementation.

powersj commented 1 month ago

15564 has landed and is available in nighties. We will keep the older issue open while we collect feedback as we do consider this experimental.