Metric batch size metadata

Hi,

When specifying metric_batch_size does telegraf add any metadata to batch output to indicate batches. For instance, i have 2000 metrics with batch size of 1000. When metrics are sent from output plugin, i believe it will send the metrics in 2 batches (assuming it does not exceed the buffer limit). how can i know the number of batches.

Hello @rahav_jv
No telegraf does not add any metadata to the output, it does not have:

  • Which batch a metric came from
  • The batch number
  • Batch grouping IDs

telegraf batches internally and then writes a flat list of metrics to the output. idk if @skartikey knows a way to include this.

What is your use case/context? Maybe this is an xy problem or we can help in another way.