TELEGRAF - metric_batch_size & metric_buffer_limit not working

This is an unfortunate consequence of reading the telegraf.conf file last. Because the outputs have already been read in, confnigured and setup, then the default value is used. Then your telegraf.conf file is read in last and any new outputs would use that value, but the existing outputs do not.

You can tell that the file is read in as your flush interval is changed to the non-default 5 minutes: Flush Interval:5m0s But because that is agent wide not output-specific, the change takes affect.

The work around would be to move the file up and specify this file out of prod first like the following:

telegraf --config /home/pdfraire/telegraf/telegraf.conf --config-directory /home/pdfraire/telegraf/prod