Monitor Kubernetes Services & Pods with Prometheus and Send Alerts to Slack

🧩 Short Summary

Proactively alert to service endpoint changes and pod/container issues (Pending, Not Ready, Restart spikes) using Prometheus metrics, formatted and sent to Slack.

šŸ—‚ļø Category

DevOps / Monitoring & Observability

šŸ·ļø Tags

kubernetes, prometheus, slack, alerting, sre, ops, kube-state-metrics

āœ… Prerequisites

Prometheus scraping kube-state-metrics v2.x. Slack App or Incoming Webhook (channel access). n8n instance with outbound access to Prometheus & Slack.

šŸ”‘ Required Credentials in n8n

Slack: Bot OAuth (chat:write) or Incoming Webhook URL.

(Optional) Prometheus Basic Auth (if your Prometheus needs it).

🧠 What This Template Does

Detects pods stuck in Pending (scheduling problems like taints/affinity/capacity). Detects containers Not Ready (readiness probe failures). Detects container restart spikes over a sliding window (default 5 minutes). Detects service discovery changes (endpoint count diffs current vs previous snapshot). Sends clean, emoji-enhanced Slack alerts with pod/namespace/service context. Outputs a 5-minute summary block to reduce noise.

šŸ“£ Slack Message Style (examples)

0
Downloads
1
Views
7.44
Quality Score
beginner
Complexity
Author:John Pranay Kumar Reddy(View Original →)
Created:9/10/2025
Updated:11/17/2025

šŸ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments