Loading video player...
Support the channel via YouTube THANKS or buy me a coffee: https://www.buymeacoffee.com/foil Dive into the future of homelab automation with this hands-on tutorial! 🚀 Watch as I build a powerful AI agent in n8n that chats with your tools like a pro—querying Prometheus metrics, auto-creating Grafana dashboards, SSH-ing into Linux servers, and even piping data to Postgres. No more manual scripting: just natural language commands to supercharge your DevOps workflow! Whether you're an SRE tired of repetitive tasks or a homelab enthusiast wanting AI smarts, this 30-min guide shows real demos, safety tips, and tool integrations. Perfect for intermediate users familiar with monitoring and databases. Key Highlights: Auto-generate stunning Grafana dashboards from Prometheus data in seconds. Iterative SSH commands to hunt down files or run safe ops (with approvals!). Query Postgres like a DB wizard—e.g., fetch YouTube video insights. Mind-blowing tool chaining: Pull Prometheus time-series and store in Postgres tables. Memorable Quote: "It's my database expert now, Prometheus expert, Linux expert, and they're all talking to each other." (18:18) – See the magic unfold! Timestamps (Jump right in! ⏰): 00:00 - Intro: AI Agents Orchestrating Multiple Tools 00:44 - Demo 1: Auto-Generate Grafana Dashboard from Prometheus Metrics 01:07 - Agent Discovers Metrics & Plans the Dashboard 01:43 - User Approval: Confirm the Creation Plan 02:21 - Result: Review Your New Auto-Created Dashboard 03:04 - Under the Hood: Sub-Workflows as Reusable Tools 04:58 - Demo 2: SSH Tool to Find Largest Files on Linux 06:22 - Demo 3: Safety First—Approval for File Creation via SSH 07:37 - Demo 4: Postgres Tool for Complex Database Queries 09:58 - Demo 5: Tool-to-Tool Magic (Prometheus Data → Postgres) 11:04 - Agent Proposes DB Schema & Asks for Approval 11:55 - Approve & Populate the New Table with Metrics 12:43 - Success: Data Transferred Seamlessly! Key Takeaways: Orchestrate tools (SSH, Prometheus, Grafana, Postgres) with natural language. Always add approval steps for safe AI actions. Build modular n8n workflows for reusable "tools." Pro Tip: Verify AI outputs to avoid hallucinations! If this sparks your setup, like 👍, comment your homelab hacks below, and subscribe for more n8n, DevOps, and AI automation tutorials! #n8n #AIAgent #Homelab Tools Mentioned: n8n (free/open-source), Prometheus, Grafana, PostgreSQL, SSH. Resources: n8n docs (n8n.io), my GitHub for workflows.