Skip to content

no-grafana-startup-delay option in run.sh #1751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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