Closed stanevt closed 5 years ago
[outputs.influxdb] Metric buffer overflow; 3645 metrics have been dropped
You probably need to increase your metric_buffer_limit
to at least 10000
. Input plugins write into the memory buffer and outputs take from the buffer and write to the database, but if the inputs are producing more metrics than the size of the buffer they may be almost immediately dropped.
[agent] input "inputs.vsphere" did not complete within its interval
This is a warning only, it means that the input plugin has taken more than interval
seconds and still hasn't finished collecting. This means the input will miss one of its collection cycles. With the vsphere plugin, it is often the case that the vCenter server get's overwhelmed, try limiting the amount of metrics you collect to the bare minimum and then if everything is working okay you can add more option metrics in one at a time.
Thank you, @danielnelson. I have increased the metric_buffer_limit
to 15000
and increased the interval time to 300 seconds and that fixed all the issues mentioned in this thread.
I increased the metric_buffer_limit to 15000 but sill get the same error
cpu01 telegraf[3938583]: 2022-12-12T12:10:52Z W! [outputs.influxdb] Metric buffer overflow; 1775 metrics have been dropped
telegraf_1 | 2022-12-19T13:40:00Z W! [outputs.influxdb_v2] Metric buffer overflow; 1346 metrics have been dropped
I have updated telegraf config , with this
metric_batch_size = 1000
metric_buffer_limit = 15000
And still have same error :(
W! [outputs.influxdb] Metric buffer overflow; 15612 metrics have been dropped
@danielnelson any suggestion ? thanks in advance .
@stanevt Were you able to resolve this issue. I ran into same error.
I am trying to extract metrics from vcentre of 1100 VM's using telegraf and storing this data within influxdb. The metrics are being 'successfully' extracted and then displayed on a created dashboard on grafana.
However when I check the status of telegraf it is reported that between 3000 - 11,000 metrics are being dropped. I am unsure if this is an issue with the configuation of telegraf or InfluxDB.
Telegraf vsphere config:
Telegraf agent config
Telegraf influxDB plugin config
I am recieving the following error when running systemctl status -l telegraf:
continuously with varying number of metrics that have been dropped
I also recieve this error which could be a cause or highlight another issue:
Unsure where the problem lies