- Introduced a new Grafana dashboard for monitoring Docker containers using cAdvisor. - Created provisioning files for Grafana dashboards and data sources. - Added Dockerfiles and configuration files for Loki and Prometheus. - Implemented a Docker Compose stack for the observability services. - Configured Traefik as a reverse proxy for the services with appropriate routing. - Added scripts for SSH tunneling to access the telemetry dashboard. - Included secrets management for Grafana admin credentials.
19 lines
463 B
Bash
Executable File
19 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Local port on your machine
|
|
LOCAL_PORT=3030
|
|
|
|
# Remote port on the server
|
|
REMOTE_PORT=3030
|
|
|
|
# SSH host alias defined in ~/.ssh/config
|
|
SSH_ALIAS="hyntaria"
|
|
|
|
echo "🔐 Establishing SSH tunnel: localhost:${LOCAL_PORT} → ${SSH_ALIAS}:localhost:${REMOTE_PORT}"
|
|
echo "🌐 Access the telemetry dashboard at http://grafana.localhost:${LOCAL_PORT}"
|
|
echo "Press Ctrl+C to close the tunnel."
|
|
|
|
ssh -N -L ${LOCAL_PORT}:127.0.0.1:${REMOTE_PORT} ${SSH_ALIAS}
|
|
|
|
|