module_alpine_prometheus_no.../node_exporter.initd

15 lines
577 B
Plaintext
Raw Permalink Normal View History

2022-11-28 14:25:14 +00:00
#!/sbin/openrc-run
description="prometheus node exporter"
command="/usr/sbin/node_exporter"
2022-11-28 15:00:25 +00:00
# what to export
# See node_exporter --help
2022-11-28 14:25:14 +00:00
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
2022-11-28 15:00:25 +00:00
command_background=true
2022-11-28 14:25:14 +00:00