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:
Paul Spooren
2018-02-10 20:38:21 +01:00
committed by Paul Spooren
parent fbffa348ef
commit 5290727e64
5 changed files with 154 additions and 0 deletions
@@ -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
}