Skip to content

Commit a95a8fa

Browse files
committed
chore(grafana): check grafana running
1 parent ab29100 commit a95a8fa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

charts/grafana/templates/grafana-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ spec:
120120
- -ec
121121
- |
122122
set -m
123+
echo "Waiting for Grafana to come up..."
124+
until curl -q --fail --output /dev/null --silent "http://${GF_SECURITY_ADMIN_USER}:${GF_SECURITY_ADMIN_PASSWORD}@localhost:${GF_SERVER_HTTP_PORT:-3000}/api/org"; do
125+
printf "."
126+
sleep 2
127+
done
128+
echo "Grafana is up and running."
123129
python3 oauth2/main.py \
124130
--port 4000 \
125131
--client-id $(DRYCC_PASSPORT_KEY) \

0 commit comments

Comments
 (0)