Menyiapkan pemberitahuan untuk rencana pencadangan yang dijeda
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Autopilot
Standard
Halaman ini menjelaskan cara menyiapkan pemberitahuan untuk rencana pencadangan yang dijeda berdasarkan
log yang dapat dilihat dari Logs Explorer.
Rencana pencadangan dapat dijeda secara otomatis atau manual seperti yang tercantum dalam
Menjeda jadwal pencadangan.
Untuk menerima notifikasi saat rencana pencadangan penting dijeda, Anda harus menyiapkan pemberitahuan. Prosedur ini mirip dengan mengonfigurasi pemberitahuan untuk pencadangan yang gagal. Untuk mengetahui petunjuknya, lihat Menyiapkan pemberitahuan untuk pencadangan gagal.
Sebelum memulai
Sebelum menyiapkan kebijakan pemberitahuan, pastikan Anda memiliki
saluran notifikasi yang sesuai.
Membuat pemberitahuan untuk rencana pencadangan yang dijeda
Untuk membuat kebijakan pemberitahuan berbasis log yang umum, lihat Mengonfigurasi pemberitahuan berbasis log.
Atau, untuk membuat kebijakan pemberitahuan khusus rencana cadangan yang dijeda di Pencadangan untuk GKE:
BACKUP_PLAN: nama rencana cadangan yang ingin Anda buat pemberitahuannya.
LOCATION: region komputasi dari
rencana cadangan yang ingin Anda buat pemberitahuannya. Misalnya, us-central1.
Klik Run query untuk memvalidasi kueri.
Di toolbar Query results, luaskan menu Actions, lalu pilih Create log alert.
Di panel Detail pemberitahuan, masukkan nama untuk kebijakan pemberitahuan Anda di kolom Nama Kebijakan Pemberitahuan. Misalnya, pemberitahuan untuk rencana pencadangan yang dijeda.
Pilih opsi dari drop-down Tingkat keparahan kebijakan. Insiden
dan notifikasi menampilkan tingkat keparahan. Sebaiknya tetapkan tingkat keparahan ke Kritis.
Masukkan deskripsi untuk kebijakan pemberitahuan Anda. Anda juga dapat menyertakan informasi yang dapat membantu penerima notifikasi mendiagnosis masalah. Untuk mengetahui informasi tentang cara memformat dan menyempurnakan konten
kolom ini, lihat Menggunakan Markdown dan variabel dalam template dokumentasi.
Klik Berikutnya.
Tetapkan Time between notifications dan Incident autoclose duration.
Sebaiknya tetapkan notifikasi menjadi satu hari dan durasi penutupan otomatis menjadi tujuh hari.
Klik Berikutnya.
Pilih satu atau beberapa saluran notifikasi untuk kebijakan pemberitahuan Anda.
Klik Simpan.
Setelah menyimpan kebijakan, Anda akan menerima pemberitahuan ke saluran notifikasi setiap kali paket pencadangan yang cocok dengan filter Anda dijeda.
[[["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-09-01 UTC."],[],[],null,["# Set up alerts for paused backup plans\n\nAutopilot Standard\n\n*** ** * ** ***\n\nThis page describes how to set up alerts for the paused backup plans based on\nthe logs viewable from the Logs Explorer.\n\nBackup plans can be paused automatically or manually as listed in the\n[Pause a backup schedule](/kubernetes-engine/docs/add-on/backup-for-gke/how-to/backup-plan#pause).\nTo receive notifications when critical backup plans are paused, it's important\nto set up alerts. This procedure is similar to configuring alerts for failed\nbackups. For instructions, see [Set up alerts for failed backups](/kubernetes-engine/docs/add-on/backup-for-gke/how-to/alerts).\n\nBefore you begin\n----------------\n\nBefore setting up an alert policy, ensure you have an appropriate\n[notification channel](https://cloud.google.com/monitoring/support/notification-options).\n\nCreate an alert for paused backup plans\n---------------------------------------\n\nTo create general log-based alert policies, see [Configure log-based alerts](/logging/docs/alerting/log-based-alerts).\nOr, to create an alert policy specifically for Backup for GKE paused backup plans:\n\n1. Go to the Logs Explorer page.\n\n [Go to Logs Explorer](https://console.cloud.google.com/logs/query)\n2. Enter the following filter criteria in the **Query** pane:\n\n logName=\"projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/logs/gkebackup.googleapis.com%2Fbackup_plan_change\"\n resource.type=\"gkebackup.googleapis.com/BackupPlan\"\n resource.labels.backup_plan_id=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003eBACKUP_PLAN\u003c/span\u003e\u003c/var\u003e\"\n resource.labels.location=\"\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e\"\n jsonPayload.inputBackupPlan.backupSchedule.paused=\"true\"\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project.\n - \u003cvar translate=\"no\"\u003eBACKUP_PLAN\u003c/var\u003e: the name of the backup plan for which you want to generate alerts.\n - \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the [compute region](/compute/docs/regions-zones#available) of the\n backup plan for which you want to generate alerts. For example, us-central1.\n\n | **Note:** If you want to set up alerts for any backup plans across all locations, then you can omit the `resource.labels.backup_plan_id` and `resource.labels.location` fields from the filter.\n3. Click **Run query** to validate the query.\n\n4. In the **Query results** toolbar, expand the **Actions** menu and select **Create log alert**.\n\n5. In the **Alert details** pane, enter a name for your alerting policy in\n the **Alert Policy Name** field. For example, alert for paused backup plan.\n\n6. Select an option from the **Policy severity level** drop-down. Incidents\n and notifications display the severity level. We recommend setting the\n severity level to **Critical**.\n\n7. Enter a description for your alerting policy. You can also include\n information that might help the recipient of a notification diagnose the\n problem. For information about how you can format and refine the content\n of this field, see [Using Markdown and variables in documentation templates](/monitoring/alerts/doc-variables).\n\n8. Click **Next**.\n\n9. Set the **Time between notifications** and **Incident autoclose duration**.\n We suggest setting notification to one day and autoclose duration to seven days.\n\n | **Note:** A notification is only triggered when a backup plan status changes to **paused**. A single status change will generate a single notification. If the backup plan becomes active and then pauses again, a new notification will be sent only after 24 hours have passed since the previous notification.\n10. Click **Next**.\n\n11. Select one or more notification channels for your alerting policy.\n\n12. Click **Save**.\n\n After you save the policy, you receive alerts to your notification channels whenever a backup plan matching your filter is paused."]]