mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
prometheus: add package
Compile tested: x86/64, aarch64_cortex-a53 Run tested: x86/64 Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de> Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
committed by
Paul Spooren
parent
fbffa348ef
commit
5290727e64
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -e /etc/config/prometheus ] || touch /etc/config/prometheus
|
||||
|
||||
uci -q get prometheus.prometheus || {
|
||||
uci -q batch <<EOF
|
||||
set prometheus.prometheus=prometheus
|
||||
set prometheus.prometheus.config_file='/etc/prometheus.yml'
|
||||
set prometheus.prometheus.storage_tsdb_path='/data'
|
||||
set prometheus.prometheus.web_listen_address='127.0.0.1:9090'
|
||||
commit prometheus
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user