curl -sL https://gist.githubusercontent.com/vi7/bc27529bd4803576fefc479dbd326dfa/raw/node_exporter_installer_asuswrt_merlin.sh | sh \
&& rm -f node_exporter_installer_asuswrt_merlin.sh
Create launcher script /jffs/addons/node_exporter/node_exporter.sh
with the following contents:
#!/usr/bin/env sh
nohup /jffs/addons/node_exporter/node_exporter \
--log.level=error \
--collector.filesystem.mount-points-exclude='^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+)($|/)' \
--collector.filesystem.fs-types-exclude='^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$' \
--no-collector.bcache \
--no-collector.btrfs \
--no-collector.dmi \
--no-collector.fibrechannel \
--no-collector.infiniband \
--no-collector.ipvs \
--no-collector.mdadm \
--no-collector.nvme \
--no-collector.rapl \
--no-collector.tapestats \
--no-collector.xfs \
--no-collector.zfs |\
logger -s -c -t node_exporter
Add following lines to the services start script /jffs/scripts/services-start
:
logger -c -t services-start "Starting Node Exporter"
/jffs/addons/node_exporter/node_exporter.sh &
Reboot router
Node Exporter metrics will be available on <your-router-address>:9100/metrics