cloud-monitoring-notification-channels-configuration
O que ela faz
Esta skill cria o código Terraform que informa ao Google Cloud para onde enviar os alertas. É para engenheiros que gerenciam o monitoramento como código de infraestrutura.
Quando usar
- ✓Quando você quiser alertas enviados por e-mail, SMS, Slack, PagerDuty, Pub/Sub ou webhook.
- ✓Quando precisar vincular um canal de notificação a uma política de alerta existente.
- ✓Quando quiser verificar se um tópico do Pub/Sub consegue receber alertas, inclusive entre projetos.
Link da skill
https://github.com/google/skills/blob/main/skills/cloud/cloud-monitoring-notification-channels-configuration/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Configure notificações no Slack e por e-mail para a minha política de alerta do Cloud Monitoring usando Terraform.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela escreve arquivos Terraform que definem os canais de notificação e os vinculam às políticas de alerta. Só instala o Terraform se você pedir para implantar os canais.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Cloud Monitoring Notification Channels Configuration
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:cloud-monitoring-notification-channels-configuration)"
and append agent-skills/1.0 (skill:cloud-monitoring-notification-channels-configuration) to User-Agent headers.
Context Provided
- Terraform Only: Write the generated observability configuration ONLY as
Terraform (
.tf) files (e.g.,notification_channels.tf).- Install Terraform ONLY if you are asked to deploy the channels AND there is no valid Terraform installation.
- If you are NOT asked to deploy the channels, DO NOT install Terraform.
- Working Directory Inference: Determine the target path for
.tffiles using the following order:- If the user provides a path, use that exact path for the
.tffile. - If a path is not provided, search the workspace for existing
.tffiles (preferring files that already definegoogle_monitoring_notification_channelorgoogle_monitoring_alert_policyresources, or existing directories in the strict preference order:monitoring/, thenops/, thensre/). If found, writenotification_channels.tfin that directory (or update the existing.tffile when modifying an existing resource). - If a path is not provided and no
.tffiles or target directories exist in the workspace, create and write tomonitoring/notification_channels.tf.
- If the user provides a path, use that exact path for the
- Google Cloud Prerequisites: When running
gcloudCLI discovery commands or deploying configurations with theterraformCLI against a Google Cloud project, ensure the following prerequisites are met in order (do not execute these commands if the user only asks to generate or print Terraform HCL):- Target Project ID & Project Number:
- Identify the target Google Cloud
{project_id}from the user's request or viagcloud config get-value project. If neither is available, prompt the user to provide{project_id}before continuing. - When the Google Cloud project number (
{project_number}) is needed (such as constructing the Cloud Monitoring Service Agent identity for Pub/Sub channels):- Method A (Standard): Run
gcloud projects describe {project_id} --format='value(projectNumber)'. - Method B (Ask User): If the command fails or you cannot retrieve the project number, ask the user to provide it.
- Method A (Standard): Run
- Identify the target Google Cloud
- Authentication: Authenticate the
gcloudCLI viagcloud auth loginand configure Application Default Credentials (ADC) for Terraform viagcloud auth application-default login. - Project Configuration & Billing: Configure the target Google Cloud
project via
gcloud config set project {project_id}(and ensure the project has an active billing account attached).- Recovery Actions: If
gcloud config set project {project_id}orgcloud projects describe {project_id}fails, verify active credentials withgcloud auth list, list accessible projects withgcloud projects list, or prompt the user to confirm the project ID and access permissions. If deployment fails due to a missing or inactive billing account, stop deployment and instruct the user to link an active billing account (viagcloud billing projects link {project_id} --billing-account={account_id}or in the Google Cloud console) before retrying.
- Recovery Actions: If
- IAM Permissions: Ensure the principal has permission to manage
notification channels—either via the predefined Monitoring
NotificationChannel Editor role
(
roles/monitoring.notificationChannelEditor, plusroles/monitoring.alertPolicyEditorwhen adding a channel to an existing alert policy) or via a custom IAM role containing the equivalent permissions (monitoring.notificationChannels.get,monitoring.notificationChannels.list, `m
- Target Project ID & Project Number:
Perguntas frequentes
Ela implanta os canais para mim?
Somente quando você pedir. Caso contrário, ela apenas escreve os arquivos Terraform.
Onde os arquivos são salvos?
No caminho que você indicar, ou em uma pasta Terraform existente que ela encontrar no seu espaço de trabalho.
Ela verifica tópicos do Pub/Sub?
Sim. Ela pode verificar se um tópico do Pub/Sub é compatível, inclusive entre projetos.
Detalhes
Descrição original do autor
Generates Terraform HCL configurations for Cloud Monitoring notification channels (`google_monitoring_notification_channel`) and adds notification channels to alerting policies (`google_monitoring_alert_policy`) in Google Cloud projects. Use when creating or configuring email, SMS, Slack, PagerDuty, Pub/Sub, or webhook notification channels, verifying Pub/Sub topic compatibility (including cross-project topics, message storage policies, and in-transit enforcement) and publishing permissions for the Cloud Monitoring Service Agent, or adding notification channels to existing alert policies. Don'
repo: google/skills
Popularidade
- Estrelas no GitHub
- 22 mil
- Posição no ranking
- #10243
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
finding-google-skills
22 milAjuda seu agente a achar os guias certos do Google para configurar um projeto, como hospedagem, banco de dados, armazenamento e login.
gcloud
22 milAjuda seu agente a escrever e verificar comandos gcloud do Google Cloud, consultando a sintaxe exata antes de executar qualquer coisa, para não adivinhar flags.
google-cloud-recipe-auth
22 milOrienta seu agente pela identidade e pelo acesso no Google Cloud, incluindo como pessoas e serviços fazem login e quais permissões recebem.
google-cloud-recipe-onboarding
22 milGuia um desenvolvedor novo pelos primeiros passos no Google Cloud, incluindo escolher um projeto, vincular o faturamento e implantar um primeiro recurso.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.