Indeed. To be more specific, this is what I changed:
- metric_batch_size = 1000
- metric_buffer_limit = 10000
+ metric_batch_size = 30000
+ metric_buffer_limit = 100000
I picked the numbers after directly scrapping from mysqld_exporter
, counting the metrics there (~27000), and running telegraf
with --debug
to see how full the buffer was and how often it was being written.
I also played a bit with interval
and expiration_interval
to have fresh metrics while at the same time not having telegraf
consume too much CPU.
E.