I was wondering, is it possible (and a good idea) to have the Telegraf instances on the IoT devices also output to Telegraf
to forwarding data from a Telegraf to another, you have to rely on the socket_writer output plugin on the source (your IoT device) and the socket_listener input plugin on your receiving Telegraf host.
The socket_writer plugin support three output formats:
- InfluxDB Line Protocol
All of those are supported by the socket_listener, so on the target you’ll receive data you can resent (via another output) wherever you need.
The only doubt I have regards the fact you’re talking about IoT devices: if you collect and send datas too frequently, having an IoT device that continuously convert data formats can be pretty heavy, but if you already send data to an InfluxDB, some kind of conversions already happens so I can suppose your device can manage it.
… or https post
There aren’t any http(s) specific outputs, so you can’t easily solve this. The only things come to my mind it’s using the InfluxDB output as a sort of https POST output. With that output basically data was passed to InfluxDB via an http(s) POST.
You can reimplement the InfluxDB APIs on your http(s) receiver, but I think can be a lot of effort, easly avoided using a real InfluxDB receiver and some kind of application which read and convert data in your required format.