Telegref Out Of Order Events

Is there any chance that events passed to telegraf through named pipe input would be sent out of the same http output but in a different order?

We send events to a named pipe input and sometimes see that events reach the http server in a different order. We are allowing telegraf to add timestamps and the timestamps seem correct at the server, but the order is not what we expect.

i.e
Host
Queue A to namedPipe input
Queue B to namedPipe input

Server
Receive B - timestamp == t0
Receive A - timestamp == t0+1

Does telegraf add timestamp when it pulls the event from the input plugin or when it queues it to the output plugin?

@arnel_lim this is unexpected and I would be interested in a bug report with a setup to reproduce the issue as Telegraf should not change the metric order if processing is strictly serial.

Regarding your question, Telegraf adds a timestamp in the input plugin. Dependent on the plugin it might be reception time, parsed out of the data or the time the metric was added to the internal processing queue (accumulator).