Skip to content

Commit 21b75b8

Browse files
authored
no-grafana-startup-delay option in run.sh (#1751)
1 parent a5fe0df commit 21b75b8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

deployments/monitoring/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- prometheus-metrics
2323
# SIGTERM won't work because of our custom entrypoint. Should be ok to use SIGKILL.
2424
stop_signal: SIGKILL
25-
entrypoint: sh -c "echo 'sleeping for 10m' && sleep 600 && /run.sh"
25+
entrypoint: sh -c "${NO_GRAFANA_STARTUP_DELAY:-echo 'sleeping for 10m' && sleep 600} && /run.sh"
2626

2727
grafana-matrix-notifier:
2828
build:

deployments/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function show_help () {
4343
echo " --local-rialto Use prebuilt local/rialto-bridge-node image when starting nodes"
4444
echo " --local-rialto-parachain Use prebuilt local/rialto-parachain-collator image when starting nodes"
4545
echo " --local-millau Use prebuilt local/millau-bridge-node image when starting nodes"
46+
echo " --no-grafana-startup-delay Start Grafana without any delay (you may see some false alerts during startup)"
4647
echo " "
4748
echo "You can start multiple bridges at once by passing several bridge names:"
4849
echo " ./run.sh rialto-millau rialto-parachain-millau westend-millau [stop|update]"
@@ -81,6 +82,7 @@ do
8182
export RIALTO_BRIDGE_NODE_IMAGE=local/rialto-bridge-node
8283
export RIALTO_PARACHAIN_COLLATOR_IMAGE=local/rialto-parachain-collator
8384
export MILLAU_BRIDGE_NODE_IMAGE=local/millau-bridge-node
85+
export IMMEDIATE_
8486
shift
8587
continue
8688
;;
@@ -104,6 +106,11 @@ do
104106
shift
105107
continue
106108
;;
109+
--no-grafana-startup-delay)
110+
export NO_GRAFANA_STARTUP_DELAY="echo 'No Grafana startup delay'"
111+
shift
112+
continue
113+
;;
107114
everything|all)
108115
BRIDGES=(${RIALTO_MILLAU:-} ${RIALTO_PARACHAIN_MILLAU:-} ${WESTEND_MILLAU:-})
109116
NETWORKS="${RIALTO:-} ${RIALTO_PARACHAIN:-} ${MILLAU:-}"

0 commit comments

Comments
 (0)