So configurable time precision not supported yet. Is it possible to write custom telegraf plugin on top of the existing amqp_consumer plugin to achieve this? I did look at some of the telegraf plugins, but I’m quite new to Go lang so raising an issue here.
The reason for doing this, we get 2-3 data per sensor per minutes, so second precision makes sense. But to convert into the nanoseconds will take 9 more bytes per message.
You can achieve this by just zero-padding the timestamp to 19 digits (full nanosecond resolution). The system will roll up the datapoints for you during queries.