Creating plugins for Telegraf in 2021

There is old documentation (Telegraf Update - 1.3 and How to Write Plugins) on how to create Telegraf plugins.

For 2021, what is the preferred way to create Telegraf Plugins? Can you point us to a document/example I can follow?

I’d suggest looking at existing plugins and mimic/follow what they’re doing