spb/datacenterindex
Public
HTML 53.9%
TypeScript 44.5%
JavaScript 0.6%
SQL 0.5%
1#!/usr/bin/env bash2# tunnel-grafana.sh [local_port] — SSH tunnel to Grafana (and Prometheus / MinIO console) on the data node.3# Grafana is bound to 10.68.0.1:3000 (private link only); nothing is exposed publicly.4# http://localhost:3000 Grafana (admin / GRAFANA_ADMIN_PASSWORD from deploy/.env.data)5# http://localhost:9090 Prometheus6# http://localhost:9001 MinIO console (MINIO_ROOT_USER / MINIO_ROOT_PASSWORD)7source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"8port="${1:-3000}"9log "tunnel: localhost:$port → $DATA_PRIVATE_IP:3000 (grafana), :9090 (prometheus), :9001 (minio console) via $(host_for data) — Ctrl-C to close"10( sleep 1.5; command -v open >/dev/null && open "http://localhost:$port" ) &11exec ssh -N "${SSH_OPTS[@]}" \12 -L "$port:$DATA_PRIVATE_IP:3000" \13 -L "9090:$DATA_PRIVATE_IP:9090" \14 -L "9001:$DATA_PRIVATE_IP:9001" \15 "$(host_for data)"16