#!/bin/bash
echo "🚀 Quick Grafana Setup Guide"
echo "============================"
echo ""
echo "1. Open Grafana: http://localhost:3000"
echo "2. Login: admin / admin123"
echo "3. Add Prometheus Data Source:"
echo "   - Click 'Configuration' (gear icon) → 'Data Sources'"
echo "   - Click 'Add data source'"
echo "   - Select 'Prometheus'"
echo "   - URL: http://prometheus:9090"
echo "   - Click 'Save & Test'"
echo ""
echo "4. Import Dashboard:"
echo "   - Click '+' → 'Import'"
echo "   - Use ID: 1860 (Node Exporter Full)"
echo "   - Select Prometheus data source"
echo "   - Click 'Import'"
echo ""
echo "5. Or create custom dashboard with these metrics:"
echo "   - CPU: 100 - (avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)"
echo "   - Memory: (1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100"
echo "   - Disk: (1 - (node_filesystem_avail_bytes / node_filesystem_size_bytes)) * 100"
