Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan

Part 2 – Automate Infrastructure Monitoring from Prometheus & Loki with AI-powered n8n workflows with AWX or Semaphore UI (Ansible)

by Jan Bachelor February 7, 2026
20 views
21

Would you like to empower AI with certain maintenance tasks over your infrastructure with an approval workflow via Discord to stay in control? How to best define a low, medium or high-risk operation and modify AI’s behavior accordingly to avoid unwanted surprises? In this tutorial, we will build on Part 1 of the tutorial and dive in while leveraging the following technologies:

  • Prometheus (covered in Part 1) – captures metrics – you will need to install it with the process-exporter (namedprocess-exporter) module to fetch all the required details.
  • Loki (covered in Part 1) – captures logs
  • Grafana (covered in Part 1) – visualizes data (not required for AI-powered automation)
  • n8n (covered in this Part 2) – automation platform (low-code).
  • Claude AI (or another LLM of your preference)
  • AWX or Semaphore UI (you can also use another tool like Ansible Automation Platform (AAP, which replaced Ansible Tower), Spacelift, Rundeck, etc.)
    • If you do not have it set up yet, follow my previous tutorial on how to **Deploy Ansible AWX to automate OS patching .**
    • Steps 1 and 2 in this tutorial can be completed without it.
  • Gitea (or another source version control tool) to store your Ansible playbooks (same as with AWX).

As the first step, we will deploy n8n and connect it with AI (Claude) to analyze logs from our monitoring tools regularly to provide us with consolidated advice about service outages and to suggest tweaks based on metrics (RAM / disk / CPU usage).

Do you prefer to read this article in PDF? Access it below.

Part 2 – Automate AI-Assisted Infra Monitoring with n8nDownload
Part 2 – Automate AI-Assisted Infra Monitoring with n8nDownload

Course Steps

1. Deploy n8n in Docker 2. Create An Infrastructure Monitor Workflow 3. Plan For An AI-Driven Workflow To Remedy Common Issues 4. Create AWX/Semaphore Remediation Jobs 5. Discord Bot Set Up 6. The AI-Assisted Remediation Workflow Into n8n 7. Real Test Scenarios 8. Security & Functionality Considerations

0 FacebookWhatsappEmail
Jan Bachelor

previous post
Part 1: Ultimate metrics & logs monitoring with visualization using Loki, Prometheus and Grafana

Course Steps

Other courses

Turn your Raspberry Pi into a Proxmox Backup...

July 13, 2025

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

OPNSense in HA with CARP with dual WANs

June 30, 2025

Buy Me a Coffee

Buy Me a Coffee Buy Me a Coffee

Recent Posts

  • How to get LXC containers for Proxmox outside of ready-made templates

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

  • How to Rename a Proxmox Node

All Rights Reserved. The theme was customized from Soledad, see PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan