Kubernetes RCA and alerting using Gemini, Loki, Prometheus, Slack
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 26 nodes and runs on a schedule (every day). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every day).
- Loki (HTTP Request): calls an HTTP API
- PromQL: Current endpoints (HTTP Request): calls an HTTP API
- PromQL: Endpoints 5m ago (HTTP Request): calls an HTTP API
- Pods Not Ready (HTTP Request): calls an HTTP API
- CrashLoopBackOff (HTTP Request): calls an HTTP API
- Pod Restart Spike (last 5m) (HTTP Request): calls an HTTP API
- Pods Pending (HTTP Request): calls an HTTP API
- SSH: uses SSH
- Map Prometheus results into namespace/service (Code): runs custom JavaScript code
- Map Prometheus results into namespace/service (Code): runs custom JavaScript code
…plus 15 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - SSH
n8n-nodes-base.ssh - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if
From the author
Summary This n8n workflow automates Kubernetes root cause analysis (RCA) and incident alerting by integrating with Loki, Prometheus, and Slack. It streamlines log collection, cluster health monitoring, and AI-driven RCA with Gemini, saving DevOps teams hours…