Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta página descreve como usar o Cloud Deploy e a Observabilidade do Google Cloud para configurar políticas de alerta e receber notificações sobre eventos e condições específicos no Cloud Deploy.
Os alertas do Cloud Deploy são gerados usando
registros de plataforma armazenados pelo Cloud Logging.
A Observabilidade do Google Cloud oferece suporte a alertas gerados usando dados de séries temporais do Cloud Monitoring, mas os alertas do Cloud Deploy são baseados apenas em registros.
As políticas de alerta do Cloud Deploy são por pipeline de entrega.
O que são alertas?
Os alertas são notificações da Observabilidade do Google Cloud sob determinadas condições.
Especifique essas condições em uma política de alertas. A documentação do Google Cloud Observability descreve os alertas e as políticas de alertas com mais detalhes. Este documento descreve as atividades específicas do Cloud Deploy para as quais você pode configurar políticas de alerta.
Alertas disponíveis
É possível configurar políticas de alertas para as seguintes circunstâncias específicas do
Cloud Deploy:
A operação de renderização, para uma determinada versão,
falhou.
Em cada versão, todos os manifestos, definições de serviço e outras configurações
que precisam ser renderizados são renderizados para todos os destinos antes que qualquer coisa seja
implantada. Esse alerta notifica você se a operação de renderização de uma versão falhar.
Falha no lançamento.
Esse alerta notifica você quando um lançamento nesse pipeline de entrega falha.
Em seguida, tome as medidas necessárias, conforme descrito no artigo
Gerenciar lançamentos.
Ao usar uma estratégia de implantação de canário, cada incremento é uma fase no
lançamento dessa versão e do destino. O avanço dessas etapas pode ser feito
manualmente ou automaticamente. Se houver um lançamento aguardando que uma etapa seja
concluída, esse alerta vai informar.
Abra a página Detalhes do pipeline de entrega do pipeline para o qual você quer criar uma política de alertas.
Clique no botão Alertas recomendados.
A caixa de diálogo Alert policy templates é exibida, mostrando os modelos de política de alerta
disponíveis para o Cloud Deploy.
Selecione cada modelo de política que você quer usar para este pipeline de entrega.
Você também pode clicar em Mostrar opções para definir opções para o modelo e
ver as mensagens de registro atuais relacionadas a ele.
Em Configurar notificações, selecione o canal de notificação para o qual as notificações serão enviadas.
Se você ainda não tiver canais de notificação configurados, clique em
Gerenciar canais de notificação.
Por padrão, um máximo de um alerta por política é enviado a cada 5 minutos. É possível
configurar isso nas seções Mostrar opções de cada modelo de política de alerta.
Para mais informações sobre como configurar políticas de alertas e canais de notificação, consulte a Visão geral de alertas.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-03 UTC."],[[["\u003cp\u003eCloud Deploy utilizes platform logs within Google Cloud Logging to generate alerts, enabling notifications for specific events and conditions, as opposed to relying on time-series data from Cloud Monitoring.\u003c/p\u003e\n"],["\u003cp\u003eAlert policies in Cloud Deploy are specific to each delivery pipeline, and can be configured to notify on events like a release's render operation failure, a failed rollout, a pending rollout approval, or when a canary deployment strategy needs phase advancement.\u003c/p\u003e\n"],["\u003cp\u003eSetting up alerting policies requires the proper permissions from Google Cloud Observability, and can be done directly through the Google Cloud console, as well as through the Cloud Monitoring API or the Google Cloud Observability Terraform provider.\u003c/p\u003e\n"],["\u003cp\u003eUsers can configure notification channels to receive alerts, and the frequency of alerts is set to a maximum of one alert per policy every five minutes by default, but can be modified within the alert policy template options.\u003c/p\u003e\n"],["\u003cp\u003eThe delivery pipeline in question has an option to subscribe to service notification via pub/sub topics.\u003c/p\u003e\n"]]],[],null,["# Create Cloud Deploy alerts\n\nThis page describes how to use Cloud Deploy and\n[Google Cloud Observability](https://cloud.google.com/products/operations) to set up\nalerting policies so you are notified for specific events and conditions in\nCloud Deploy.\n\nAlerts for Cloud Deploy are generated using\n[platform logs](/deploy/docs/platform-logs) stored by Cloud Logging.\nGoogle Cloud Observability supports alerts generated using time-series data from\nCloud Monitoring, but Cloud Deploy alerts are\n[based on logs only](/logging/docs/alerting/log-based-alerts).\n\nCloud Deploy alert policies are per delivery pipeline.\n| **Note:** In addition to the alerts described in this article, you can [subscribe to Cloud Deploy service notifications](/deploy/docs/subscribe-deploy-notifications) using Pub/Sub topics.\n\nWhat are alerts?\n----------------\n\nAlerts are notifications from Google Cloud Observability under certains conditions.\nYou specify those conditions in an alerting policy. The\n[Google Cloud Observability documentation](/monitoring/alerts) describes alerting and\nalerting policies in more detail. This document describes the specific\nCloud Deploy activities for which you can set up alerting policies.\n\nAvailable alerts\n----------------\n\nYou can set up alerting policies for the following circumstances, specific to\nCloud Deploy:\n\n- The [render](/deploy/docs/terminology#render) operation, for a given release,\n has failed.\n\n For every release, all manifests, service definitions, and any other configs\n that must be rendered, are rendered for all targets before anything is\n deployed. This alert notifies you if a release's render operation fails.\n- A rollout has failed.\n\n This alert notifies you when a rollout within this delivery pipeline fails.\n You can then take action, as described in the article\n [Manage rollouts](/deploy/docs/deployment-strategies/manage-rollout).\n- A rollout requires\n [approval](/deploy/docs/promote-release#manage_approvals_for_a_delivery_pipeline).\n\n One of your targets is configured to require approval, and the release is now\n being promoted to that target, but approval is pending.\n- A rollout with a [canary deployment strategy](/deploy/docs/deployment-strategies/canary)\n requires [phase advancement](/deploy/docs/deployment-strategies/manage-rollout#advance_rollout).\n\n When using a canary deployment strategy, each canary increment is a phase in\n the rollout for that release and target. Advancing those stages can be done\n manually or automatically. If there's a rollout waiting for a stage to be\n advanced, this alert lets you know.\n\nWhat permissions do you need?\n-----------------------------\n\nThe person using the Google Cloud console to set up alerting policies must\nhave the\n[permissions that Google Cloud Observability requires](/monitoring/alerts/using-alerting-ui#before_you_begin).\n\nConfigure Cloud Deploy alerts\n-----------------------------\n\nTo create an alert for a delivery pipeline:\n\n1. Open the **Delivery pipeline details** page for the pipeline for which you\n want to create an alert policy.\n\n2. Click the **Recommended alerts** button.\n\n The **Alert policy templates** dialog is displayed, showing the alert-policy\n templates that are available for Cloud Deploy.\n3. Select each policy template you want to use for this delivery pipeline.\n\n You can also click **Show options** to set options for the template, and to\n see current log messages related to that policy template.\n4. Under **Configure notifications**, select the notification channel or\n channels the notifications will be sent to.\n\n If you don't already have notification channels configured, you can click\n **Manage notification channels**.\n\nBy default, a maximum of 1 alert per policy is sent every 5 minutes. You can\nconfigure this in the **Show options** sections of each alert policy template.\n\nFor more information about setting up alerting policies and notification\nchannels, see the [Alerting overview](/monitoring/alerts).\n\n### Other ways to set up alerts\n\nBesides creating alert policies using the Google Cloud console, you can\n[use the Cloud Monitoring API](/monitoring/alerts/policies-in-api) or\n[the Google Cloud Observability Terraform provider](/monitoring/alerts/terraform).\n\nWhat's next\n-----------\n\n- [Learn more about Google Cloud Observability](/monitoring/alerts) alerts.\n\n- [Read about Cloud Deploy platform logs](/deploy/docs/platform-logs)."]]