Saltar al contenido
Skillpedia
Deploy y nube (DevOps)22 mil · #10276

gke-alert-configuration

Qué hace

Esta skill ayuda a un agente de IA a configurar políticas de alertas para Google Kubernetes Engine usando Terraform y Google Cloud Managed Service for Prometheus. Es para equipos que quieren alertas útiles sin demasiado ruido.

Cuándo usarla

  • ✓Cuando quieres alertas de Terraform para la latencia, el tráfico o las tasas de error de un servicio de GKE.
  • ✓Cuando necesitas alertas de saturación de memoria o de salud general del clúster de GKE.
  • ✓Cuando quieres revisar las políticas de alerta existentes por ruido o huecos.

Link de la skill

https://github.com/google/skills/blob/main/skills/cloud/gke-alert-configuration/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/google/skills/blob/main/skills/cloud/gke-alert-configuration/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes escribir alertas de Terraform para la tasa de errores y el tiempo de respuesta de mi servicio de GKE?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente escribe políticas de alerta basadas en PromQL en Terraform, usando reglas de tipo burn-rate para las señales principales del servicio, y las revisa antes del despliegue.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

GKE Alert Configuration

This skill provides guidelines and best practices for creating robust, high-signal alerting policies for Google Kubernetes Engine workloads using Google Cloud Managed Service for Prometheus and Terraform. It ensures comprehensive coverage of the 4 Golden Signals and key cluster health metrics while minimizing alert noise.


Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-alert-configuration)" and append agent-skills/1.0 (skill:gke-alert-configuration) to User-Agent headers.

Critical Rules

  • Negative Triggers and Scope Redirection for Non-GKE Standalone Runtimes:
    • This skill is strictly scoped to Google Kubernetes Engine (GKE) workloads, clusters, and services using PromQL and Google Cloud Managed Service for Prometheus.
    • Do not use for non-GKE compute runtimes, such as standalone Compute Engine virtual machines or standalone Cloud Run services without GKE.
    • STOP AND RESPOND DIRECTLY (Do Not Edit Files): When the user requests alert configuration for non-GKE compute infrastructure:
      1. Do not write, create, edit, or validate any Terraform files on disk.
      2. Immediately stop and respond directly to the user in chat:
        • Explicitly Clarify Out-of-Scope: State clearly that standalone Compute Engine virtual machine monitoring or standalone Cloud Run monitoring is out of scope for this GKE-specific PromQL alerting skill, which is designed specifically for GKE workloads using Google Cloud Managed Service for Prometheus and PromQL.
        • Do Not Generate GKE PromQL Alerts: Do not create or generate Kubernetes PromQL alert policies or fabricate Kubernetes container, pod, or node resources for non-GKE infrastructure.
        • Redirect the User: Guide and redirect the user to standard Google Cloud Monitoring metrics, such as compute.googleapis.com/instance/cpu/utilization or run.googleapis.com/request_latencies, using standard google_monitoring_alert_policy with condition_threshold or MQL, or recommend the relevant specialized Cloud observability skill.
  • Mandatory kube-state-metrics (KSM) Cost Guardrail:
    • Deploying open-source kube-state-metrics in Google Cloud Managed Service for Prometheus incurs billable metric ingestion costs.
    • STOP AND ASK PERMISSION FIRST (Do Not Edit Files): When a requested alert rule relies on Tier 2 KSM metrics (such as kube_cronjob_*, kube_pod_status_phase, kube_persistentvolume_*, kube_deployment_*, kube_statefulset_*, kube_job_*, or kube_daemonset_*), do not write, create, edit, or validate any Terraform files or generate alert policies before obtaining user approval.
    • Instead, you must immediately stop and respond directly to the user to:
      1. Alert the user that the requested alert requires kube-state-metrics.
      2. Explain the cost impact: Detail that kube-state-metrics incurs billable sample ingestion costs in Google Cloud Managed Service for Prometheus.
      3. Ask for explicit permission: Ask the user for explicit permission before assuming, enabling, or generating KSM-dependent alert configurations.
      4. Recommend filtering or allowlisting: Suggest and recommend filtering or allowlisting only the specific required metrics, such as using a PodMonitoring resource with metricRelabeling (action: keep) or KSM --metric-allowlist to minimize ingestion costs. Provide a concrete allowlist example.
    • Always prefer Non-KSM Native Alternatives (Tier 1 cAdvisor or native GKE metrics documented in [metrics_and_alerts_catalog.md](references/metrics_a
Preguntas frecuentes

¿Funciona para VM de Compute Engine o Cloud Run?

No. Es para cargas y clústeres de GKE, así que las VM independientes de Compute Engine y Cloud Run sin GKE quedan fuera de alcance.

¿Escribe las alertas en sí?

Sí. Escribe políticas de alerta de Terraform que puedes revisar y desplegar.

¿Cubre también la salud del clúster?

Sí. Cubre la salud del clúster y la saturación de memoria, además de la latencia y los errores del servicio.

Detalles

Descripción original del autor

Configures alerting policies in Terraform for Google Kubernetes Engine (GKE) clusters, workloads, and services using PromQL and Google Cloud Managed Service for Prometheus. Use when writing, analyzing, validating, or deploying Terraform alerting policies to monitor GKE service latency, traffic, error rates using Multi-Window Multi-Burn-Rate SLO alerts, memory saturation, and cluster health such as CrashLoopBackOff and Node NotReady conditions. Don't use for non-GKE compute runtimes such as standalone Compute Engine VMs or standalone Cloud Run services without GKE.

repo: google/skills

Popularidad

Estrellas en GitHub
22 mil
Posición en el ranking
#10276
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas