OpenWrt & Telegraf

Hi there,

On 18.06.2 I want to send metrics (via telegraf) to an influxdb at another host.

I followed the manual at


(with the current version of telegraf) but starting telegraf failed with the message

root@host:~# /usr/bin/telegraf --config /etc/telegraf/telegraf.conf
/usr/bin/telegraf: line 1: syntax error: unexpected word (expecting ")")

Is anybody able to run telegraf on OpenWrt?
Or does anyone know how to compile/create a telegraf package? Or can push me in the right direction? :slightly_smiling_face:

Thanks,
Jörg

Do you have an ARM router?

You have to cross-compile the software by yourself

https://openwrt.org/docs/guide-developer/crosscompile

Also, there's a standard package already compiled for this purpose:

1 Like

Sorry to bring old thread, but telegraf have MIPS compiled package (for most SoC that use openwrt) if anyone interested here : https://github.com/influxdata/telegraf/releases

mips does not imply mips/ musl (at least the mips-debian packages would be glibc based) or any other form of compatibility with OpenWrt (yes, there are also just mips/ linux binaries, but without any indication of those being glibc, uclibc or musl based).

You can also send and receive data through Telegraph using a third party library, such as the many available for node.js.