Creating a plugin with custom output

I am doing some POC on the TICK stack for creating new metrics system, but we have a legacy system which i also need to support and for that i am thinking of sending keeping the 2 output plugin one for the influx DB and other for the legacy system. After doing some analysis around this i haven’t found anything said regarding custom formats support it always says only following formats are supported.

  • InfluxDB Line Protocol
  • JSON
  • Graphite

Does anyone has created any telegraf plugin which send the metrics in some custom format to an output sink? Any pointer will be helpfull.

I think any of the existing output plugins would be good example, or if the only aspect that needs modified is the output format you could write a custom serializer.