Send real-time Kubernetes(EKS/GKE/AKS) CPU spike alerts from Prometheus to Slack
๐งพ Summary This workflow monitors Kubernetes pod CPU usage using Prometheus, and sends real-time Slack alerts when CPU consumption crosses a threshold (e.g., 0.8 cores). It groups pods by application name to reduce noise and improve clarity, making it ideal for observability across multi-pod deployments like Argo CD, Loki, Promtail, applications etc.
๐ฅ Whoโs it for Designed for DevOps and SRE teams and platform teams, this workflow is 100% no-code, plug-and-play, and can be easily extended to support memory, disk, or network spikes. It eliminates the need for Alertmanager by routing critical alerts directly into Slack using native n8n nodes.
โ๏ธ What it does This n8n workflow polls Prometheus every 5 minutes โฑ๏ธ, checks if any pod's CPU usage crosses a defined threshold (e.g., 0.8 cores) ๐จ, groups them by app ๐งฉ, and sends structured alerts to a Slack channel ๐ฌ.
๐ ๏ธ How to set up ๐ Set your Prometheus URL with required metrics (container_cpu_usage_seconds_total, kube_pod_container_resource_limits)
๐ Add your Slack bot token with chat:write scope
๐งฉ Import the workflow, customize:
Threshold (e.g., 0.8 cores)
Slack channel
Cron schedule
๐ Requirements A working Prometheus stack with kube-state-metrics Slack bot credentials n8n instance (self-hosted or cloud)
๐งโ๐ป How to customize ๐ง Adjust threshold values or query interval
๐ Add memory/disk/network usage metrics
๐ก This is a plug-and-play Kubernetes alerting template for real-time observability.
๐ท๏ธ Tags: Prometheus, Slack, Kubernetes, Alert, n8n, DevOps, Observability, CPU Spike, Monitoring
Prometheus Spike Alert to Slack
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments