#!/sbin/openrc-run description="prometheus node exporter" command="/usr/sbin/node_exporter" # what to export # See node_exporter --help command_args="--collector.disable-defaults --collector.cpu --collector.cpufreq --collector.diskstats --collector.filefd --collector.filesystem --collector.loadavg --collector.meminfo --collector.netclass --collector.netstat --collector.os --collector.time --collector.uname --collector.vmstat --web.disable-exporter-metrics " pidfile="/run/${RC_SVCNAME}.pid" # node_exporter stay in backgroud # make a pid for me command_background=true