fixes to __prometheus_{server,alertmanager}
This commit is contained in:
parent
0043b3f4b0
commit
6c8e287001
2 changed files with 8 additions and 7 deletions
|
@ -21,13 +21,14 @@ REAL_FLAGS="$(echo "$FLAGS" | sed -nE 's/^([^#]+).*/ --\1 \\/p')"
|
||||||
__go_get github.com/prometheus/alertmanager/cmd/...
|
__go_get github.com/prometheus/alertmanager/cmd/...
|
||||||
|
|
||||||
__user prometheus --system
|
__user prometheus --system
|
||||||
require="__user/prometheus" __directory "$storage_path" --owner prometheus
|
require="__user/prometheus" __directory "$storage_path" --owner prometheus --parents
|
||||||
require="__user/prometheus" __directory "$CONF_DIR" --owner prometheus
|
require="__user/prometheus" __directory "$CONF_DIR" --owner prometheus --parents
|
||||||
|
|
||||||
__daemontools_service alertmanager --run "setuidgid prometheus $GOBIN/alertmanager $REAL_FLAGS"
|
__daemontools_service alertmanager --run "setuidgid prometheus $GOBIN/alertmanager $REAL_FLAGS"
|
||||||
|
|
||||||
require="$require __directory/$storage_path __user/prometheus" \
|
require="$require __directory/$storage_path __user/prometheus" \
|
||||||
__config_file $CONF \
|
__config_file $CONF \
|
||||||
--source $config \
|
--source $config \
|
||||||
--group prometheus --mode 640 \
|
--group prometheus --mode 640 \
|
||||||
--onchange "$ONCHANGE"
|
--onchange "svc -h /service/alertmanager" # TODO when a config-check tool is available, check config here
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ REAL_FLAGS="$(echo "$FLAGS" | sed -nE 's/^([^#]+).*/ --\1 \\/p')"
|
||||||
__go_get github.com/prometheus/prometheus/cmd/...
|
__go_get github.com/prometheus/prometheus/cmd/...
|
||||||
|
|
||||||
__user prometheus --system
|
__user prometheus --system
|
||||||
require="__user/prometheus" __directory "$storage_path" --owner prometheus
|
require="__user/prometheus" __directory "$storage_path" --owner prometheus --parents
|
||||||
require="__user/prometheus" __directory "$CONF_DIR" --owner prometheus
|
require="__user/prometheus" __directory "$CONF_DIR" --owner prometheus --parents
|
||||||
|
|
||||||
__daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $REAL_FLAGS"
|
__daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $REAL_FLAGS"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue