I am trying to get a small arm7 package of telegraf, to run on embedded device.
Everythings works fine with command like below:
BUILDTAGS=“custom,inputs.cpu,inputs.disk,inputs.exec,outputs.influxdb,parsers.influx” make package include_packages=“linux_armhf.tar.gz”
The size of the binary is 180MB though, when for x86/amd it is ~25MB. Actually official download of telegraf for arm7 (as well asm arm64) also is very heavy.
Inspecting binary it says it is statically build and stripped, so looks like it must include some very large libraries and makes it useless for small targets.
Any idea why telegraf is so large? Is it possible to make it significantly smaller?