Skip to content

Commit 0e9376d

Browse files
committed
Lambda fix for CDK
1 parent f8ac96e commit 0e9376d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

infrastructure/scripts/setup/monitoring.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ log() {
66
echo "[$(date +'%H:%M:%S')] $*"
77
}
88

9+
set -x
10+
911
# --- Configuration ---
1012
NAMESPACE="monitoring"
1113
GRAFANA_SECRET_NAME="grafana-admin"
@@ -21,6 +23,8 @@ else
2123
GRAFANA_PASSWORD="$IDE_PASSWORD"
2224
fi
2325

26+
echo "GRAFANA_PASSWORD is $GRAFANA_PASSWORD"
27+
2428
VALUES_FILE="prometheus-values.yaml"
2529
EXTRA_SCRAPE_FILE="extra-scrape-configs.yaml"
2630
DATASOURCE_FILE="grafana-datasource.yaml"
@@ -250,8 +254,6 @@ GRAFANA_URL="http://$GRAFANA_LB"
250254

251255
# 1. Search for a dashboard containing "JVM" in the title
252256

253-
set -x
254-
255257
log "⏳ Waiting for Grafana to become healthy..."
256258
for i in {1..20}; do
257259
STATUS=$(curl -s -u "$GRAFANA_USER:$GRAFANA_PASSWORD" "$GRAFANA_URL/api/health" | jq -r .database || true)

0 commit comments

Comments
 (0)