Telegraf: Metric buffer limit

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche

The metric_buffer_limit of Telegraf is the Maximum number of unwritten metrics per output. Increasing this value allows for longer periods of output downtime without dropping metrics at the cost of higher maximum memory usage.


Calculate how much time it takes to reach the metric buffer limit

METRIC_BUFFER = Telegraf configuration "metric_buffer_limit". (Default = 10000)
METRICS_PER_INTERVAL = Run Telegraf in "Test-Mode" (.\telegraf.exe --config-directory .\telegraf.d\ --test), copy the content in a textfile and count the lines (lines = metrics).
INTERVAL = The average interval that Telegraf collects the metrics.

Calculation: METRIC_BUFFER / METRICS_PER_INTERVAL) * INTERVAL / 60 = Number of minutes Telegraf buffers metric locally