OVHserver/opt/04-tools/monitoring/setup-grafana.sh
SamoilenkoVadym a987d45fbc chore: initial infrastructure setup with Syncthing, Git and documentation
Set up three-tier synchronization: Syncthing (real-time), GitHub (version control), rsync (disaster recovery). Includes complete documentation for future Claude sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 16:41:12 +00:00

23 lines
950 B
Bash
Executable file

#!/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"