prometheus / node_exporter

Exporter for machine metrics
https://prometheus.io/
Apache License 2.0
10.64k stars 2.3k forks source link

openwrt : ramips/mt7621 run node_exporter failed #3056

Closed linruiand closed 1 week ago

linruiand commented 2 weeks ago

openwrt : ramips/mt7621 kenel : 5.15.158 download all of this: [node_exporter-1.8.1.linux-mips.tar.gz] [node_exporter-1.8.1.linux-mips64.tar.gz]

[node_exporter-1.8.1.linux-mips64le.tar.gz]

[node_exporter-1.8.1.linux-mipsle.tar.gz]

try to start ./node_exporter

mips and mips64 and mips64le run error : cannot execute binary file: Exec format error mipsle run error : Illegal instruction

SuperQ commented 2 weeks ago

A quick search says that you may need to build this with extra compiler environment options due to the fact that the platform does not support floating point instructions.

GOARCH=mipsle GOMIPS=softfloat make build
SuperQ commented 2 weeks ago

Alternatively, you can use the OpenWRT prometheus-node-exporter-lua package

linruiand commented 2 weeks ago

thanks !