update
This commit is contained in:
@@ -51,7 +51,7 @@ function SideCar {
|
||||
-regex ".*\.yml\|.*\.tmpl" | xargs -I ^ md5sum ^ | md5sum)
|
||||
[ "$md5" != "$last_md5" ] \
|
||||
&& last_md5=$md5 \
|
||||
&& Print Reload conf ... \
|
||||
&& Print Reloading conf ... \
|
||||
&& pkill -HUP -f prometheus \
|
||||
&& pkill -HUP -f alertmanager
|
||||
done
|
||||
@@ -193,7 +193,7 @@ ruler:
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start alertmanager ...
|
||||
Print Starting alertmanager ...
|
||||
alertmanager \
|
||||
--config.file=$CONF_DIR/alertmanager.yml \
|
||||
--storage.path=$DATA_DIR/alertmanager \
|
||||
@@ -202,7 +202,7 @@ function StartProc {
|
||||
PIDS="$PIDS $!"
|
||||
sleep 2
|
||||
|
||||
Print Start prometheus ...
|
||||
Print Starting prometheus ...
|
||||
prometheus \
|
||||
--config.file=$CONF_DIR/prometheus.yml \
|
||||
--web.external-url=prometheus \
|
||||
@@ -213,7 +213,7 @@ function StartProc {
|
||||
PIDS="$PIDS $!"
|
||||
sleep 2
|
||||
|
||||
Print Start grafana-server ...
|
||||
Print Starting grafana-server ...
|
||||
grafana-server \
|
||||
-homepath /usr/share/grafana \
|
||||
-config $CONF_DIR/grafana.ini \
|
||||
@@ -221,16 +221,18 @@ function StartProc {
|
||||
PIDS="$PIDS $!"
|
||||
sleep 2
|
||||
|
||||
Print Start loki ...
|
||||
Print Starting loki ...
|
||||
loki \
|
||||
--config.file=$CONF_DIR/loki.yml \
|
||||
${LOKI_OPTS:-} &>> $LOG_DIR/loki.out &
|
||||
PIDS="$PIDS $!"
|
||||
sleep 2
|
||||
|
||||
Print Start sidecar ...
|
||||
Print Starting sidecar ...
|
||||
SideCar &
|
||||
PIDS="$PIDS $!"
|
||||
|
||||
Print All components started.
|
||||
}
|
||||
|
||||
function Main {
|
||||
|
Reference in New Issue
Block a user