Having a stream input with Telegraf

Does it mean it wouldn’t be easy with Telegraf ? or not even possible ?

I’m on a constraint device where I’d like to install the least amount of tools possible, so Telegraf + InfluxDB for local storage is ok, but no more would be nice.

Btw, even if I used node-red, I’m not writing only to local InfluxDB, I’m also writing to some remote MQTT broker, I know it’s possible to do this with Node-RED but I know Telegraf has some good MQTT output plugin too, so if all was possible with Telegraf, it would be nice.