Skip to content

Commit

Permalink
no-grafana-startup-delay option in run.sh (paritytech#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored Jan 10, 2023
1 parent a5fe0df commit 21b75b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployments/monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- prometheus-metrics
# SIGTERM won't work because of our custom entrypoint. Should be ok to use SIGKILL.
stop_signal: SIGKILL
entrypoint: sh -c "echo 'sleeping for 10m' && sleep 600 && /run.sh"
entrypoint: sh -c "${NO_GRAFANA_STARTUP_DELAY:-echo 'sleeping for 10m' && sleep 600} && /run.sh"

grafana-matrix-notifier:
build:
Expand Down
7 changes: 7 additions & 0 deletions deployments/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function show_help () {
echo " --local-rialto Use prebuilt local/rialto-bridge-node image when starting nodes"
echo " --local-rialto-parachain Use prebuilt local/rialto-parachain-collator image when starting nodes"
echo " --local-millau Use prebuilt local/millau-bridge-node image when starting nodes"
echo " --no-grafana-startup-delay Start Grafana without any delay (you may see some false alerts during startup)"
echo " "
echo "You can start multiple bridges at once by passing several bridge names:"
echo " ./run.sh rialto-millau rialto-parachain-millau westend-millau [stop|update]"
Expand Down Expand Up @@ -81,6 +82,7 @@ do
export RIALTO_BRIDGE_NODE_IMAGE=local/rialto-bridge-node
export RIALTO_PARACHAIN_COLLATOR_IMAGE=local/rialto-parachain-collator
export MILLAU_BRIDGE_NODE_IMAGE=local/millau-bridge-node
export IMMEDIATE_
shift
continue
;;
Expand All @@ -104,6 +106,11 @@ do
shift
continue
;;
--no-grafana-startup-delay)
export NO_GRAFANA_STARTUP_DELAY="echo 'No Grafana startup delay'"
shift
continue
;;
everything|all)
BRIDGES=(${RIALTO_MILLAU:-} ${RIALTO_PARACHAIN_MILLAU:-} ${WESTEND_MILLAU:-})
NETWORKS="${RIALTO:-} ${RIALTO_PARACHAIN:-} ${MILLAU:-}"
Expand Down

0 comments on commit 21b75b8

Please sign in to comment.