mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
prometheus-node-exporter-lua: adds node metrics exporter
Signed-off-by: Christian Simon <simon@swine.de>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
config prometheus-node-exporter-lua 'main'
|
||||
option listen_address '::1'
|
||||
option listen_port '9100'
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2013-2017 OpenWrt.org
|
||||
|
||||
START=60
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
|
||||
config_load prometheus-node-exporter-lua.main
|
||||
config_get bind "main" listen_address ::1
|
||||
config_get port "main" listen_port 9100
|
||||
|
||||
procd_set_param command /usr/bin/prometheus-node-exporter-lua
|
||||
procd_append_param command --port ${port}
|
||||
procd_append_param command --bind ${bind}
|
||||
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user