What problem does it solve?
Writing correct, low-noise alerting policies for Google Kubernetes Engine is hard: PromQL queries have subtle pitfalls (disappearing time series, redundant duration windows), kube-state-metrics ingestion can create unexpected billing costs, and naive error-rate thresholds cause false alarms. This Skill produces validated Terraform alerting policies that follow Google SRE best practices.
Core Features & Use Cases
- Golden Signals Coverage: Generates alerts for latency (P95), errors (Multi-Window Multi-Burn-Rate SLO), traffic drops (absent()/default 0), and memory saturation, plus cluster health signals like CrashLoopBackOff and Node NotReady.
- KSM Cost Guardrails: Classifies metrics into Tier 1 (native, zero surcharge) and Tier 2 (kube-state-metrics), asks permission before using KSM metrics, and recommends filtered PodMonitoring allowlists to control ingestion costs.
- Plan-Validate-Execute Workflow: Validates change plans and Terraform files with a linting script that checks PromQL syntax, time windows, duration rules, and duplicate alert targets.
- Use Case: Ask for alerting on a GKE service and receive a complete alerts.tf with MWMBR SLO burn-rate alerts, dynamic grouping by cluster/namespace/pod, and plain-English explanations of each threshold.
Quick Start
Generate Terraform alerting policies covering the four golden signals for my GKE service in the production namespace.