Loading scripts/check_alerts.sh 0 → 100755 +11 −0 Original line number Diff line number Diff line #!/bin/bash set -e NODE_IP="${1:-$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')}" GRAFANA_USER=$(kubectl get secret hypo-grafana -o jsonpath="{.data.admin-user}" | base64 -d) GRAFANA_PASS=$(kubectl get secret hypo-grafana -o jsonpath="{.data.admin-password}" | base64 -d) echo "Using Node IP: $NODE_IP" curl -s -u "$GRAFANA_USER:$GRAFANA_PASS" "http://${NODE_IP}:30030/api/alertmanager/grafana/api/v2/alerts" | jq Loading
scripts/check_alerts.sh 0 → 100755 +11 −0 Original line number Diff line number Diff line #!/bin/bash set -e NODE_IP="${1:-$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')}" GRAFANA_USER=$(kubectl get secret hypo-grafana -o jsonpath="{.data.admin-user}" | base64 -d) GRAFANA_PASS=$(kubectl get secret hypo-grafana -o jsonpath="{.data.admin-password}" | base64 -d) echo "Using Node IP: $NODE_IP" curl -s -u "$GRAFANA_USER:$GRAFANA_PASS" "http://${NODE_IP}:30030/api/alertmanager/grafana/api/v2/alerts" | jq