Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara menggunakan Cloud Deploy dan Google Cloud Observability untuk menyiapkan kebijakan pemberitahuan agar Anda diberi tahu tentang peristiwa dan kondisi tertentu di Cloud Deploy.
Pemberitahuan untuk Cloud Deploy dibuat menggunakan
log platform yang disimpan oleh Cloud Logging.
Google Cloud Observability mendukung pemberitahuan yang dibuat menggunakan data deret waktu dari
Cloud Monitoring, tetapi pemberitahuan Cloud Deploy
hanya didasarkan pada log.
Kebijakan pemberitahuan Cloud Deploy berlaku per pipeline pengiriman.
Apa yang dimaksud dengan pemberitahuan?
Notifikasi adalah notifikasi dari Google Cloud Observability dalam kondisi tertentu.
Anda menentukan kondisi tersebut dalam kebijakan pemberitahuan. Dokumentasi Google Cloud Observability menjelaskan pemberitahuan dan kebijakan pemberitahuan secara lebih mendetail. Dokumen ini menjelaskan aktivitas Cloud Deploy tertentu yang dapat Anda siapkan kebijakan pemberitahuannya.
Pemberitahuan yang tersedia
Anda dapat menyiapkan kebijakan pemberitahuan untuk situasi berikut, khusus untuk Cloud Deploy:
Operasi render, untuk rilis tertentu,
telah gagal.
Untuk setiap rilis, semua manifes, definisi layanan, dan konfigurasi lainnya
yang harus dirender, dirender untuk semua target sebelum apa pun
di-deploy. Notifikasi ini memberi tahu Anda jika operasi rendering rilis gagal.
Peluncuran gagal.
Notifikasi ini memberi tahu Anda saat peluncuran dalam pipeline pengiriman ini gagal.
Kemudian, Anda dapat mengambil tindakan, seperti yang dijelaskan dalam artikel
Mengelola peluncuran.
Salah satu target Anda dikonfigurasi untuk memerlukan persetujuan, dan rilis kini
dipromosikan ke target tersebut, tetapi persetujuan masih menunggu keputusan.
Saat menggunakan strategi deployment canary, setiap penambahan canary adalah fase dalam
peluncuran untuk rilis dan target tersebut. Memajukan tahap tersebut dapat dilakukan
secara manual atau otomatis. Jika ada peluncuran yang menunggu tahap untuk
diajukan, pemberitahuan ini akan memberi tahu Anda.
Untuk membuat pemberitahuan untuk pipeline pengiriman:
Buka halaman Detail pipeline pengiriman untuk pipeline yang ingin Anda buat kebijakan pemberitahuannya.
Klik tombol Notifikasi yang direkomendasikan.
Dialog Template kebijakan pemberitahuan akan ditampilkan, yang menampilkan template kebijakan pemberitahuan yang tersedia untuk Cloud Deploy.
Pilih setiap template kebijakan yang ingin Anda gunakan untuk pipeline pengiriman ini.
Anda juga dapat mengklik Tampilkan opsi untuk menetapkan opsi template, dan untuk
melihat pesan log saat ini yang terkait dengan template kebijakan tersebut.
Di bagian Configure notifications, pilih saluran notifikasi atau saluran yang akan menerima notifikasi.
Jika belum mengonfigurasi saluran notifikasi, Anda dapat mengklik
Kelola saluran notifikasi.
Secara default, maksimum 1 pemberitahuan per kebijakan dikirim setiap 5 menit. Anda dapat mengonfigurasinya di bagian Tampilkan opsi di setiap template kebijakan pemberitahuan.
Untuk informasi selengkapnya tentang cara menyiapkan kebijakan pemberitahuan dan saluran notifikasi, lihat Ringkasan pemberitahuan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-17 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)."]]