Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menunjukkan cara menyelesaikan masalah yang mungkin Anda alami saat
mengevaluasi beban kerja menggunakan Pengelola Beban Kerja.
Notifikasi dinonaktifkan untuk evaluasi pertama dalam project
Saat membuat evaluasi pertama dalam project Google Cloud
menggunakan Workload Manager, Anda mungkin melihat bahwa kotak centang notifikasi
peristiwa dinonaktifkan di bagian Notifikasi. Anda juga dapat melihat
pesan berikut:
Selection unavailable until metrics exist in the current project.
Masalah ini terjadi karena akun layanan Workload Manager tidak
memiliki izin yang diperlukan untuk mengirim metrik ke Cloud Monitoring di
project tempat Anda menjalankan evaluasi.
Jika Anda membuat evaluasi pertama dalam project, buat evaluasi tanpa notifikasi peristiwa. Jika Anda memiliki setidaknya satu evaluasi dalam project,
lakukan hal berikut:
Beri otorisasi akun layanan Pengelola Beban Kerja untuk mengirim metrik ke project Anda.
Di panel navigasi Google Cloud konsol,
klik IAM & Admin, lalu pilih IAM:
Untuk melihat akun layanan yang dikelola Google di halaman Izin,
centang kotak Sertakan pemberian peran yang diberikan Google.
Telusuri akun layanan Workload Manager yang memiliki format berikut:
service-PROJECT_NUMBER@gcp-sa-workloadmanager.
Anda dapat menemukan PROJECT_NUMBER project Google Cloud di halaman Project settings.
Untuk mengetahui informasi selengkapnya, lihat Mengidentifikasi project.
Untuk mengubah peran akun layanan, klik editEdit akun utama di baris yang
berisi nama akun layanan, lalu
klik addTambahkan peran lain.
Jika akun layanan tidak tercantum di halaman Permissions,
masukkan nama akun layanan secara manual:
Klik person_addBerikan Akses, lalu masukkan alamat email akun layanan Workload Manager
dalam format berikut:
[[["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-04 UTC."],[],[],null,["# Troubleshoot Evaluations\n\nThis page shows you how to resolve issues that you might encounter while\nevaluating workloads using Workload Manager.\n\nNotifications are disabled for the first evaluation in a project\n----------------------------------------------------------------\n\nWhen you create the first evaluation in a Google Cloud project\nusing Workload Manager, you might notice that the event notification\ncheckboxes are disabled in the **Notifications** section. You can also see\nthe following message: \n\n```\nSelection unavailable until metrics exist in the current project.\n```\n\nThis issue occurs because the Workload Manager service account does not\nhave the required permissions to send metrics to Cloud Monitoring in the\nproject from where you run the evaluation.\n\nIf you're creating the first evaluation in a project, then create the evaluation\nwithout event notifications. If you have at least one evaluation in the project,\nthen do the following:\n\n1. Authorize the Workload Manager service account to send metrics to your project.\n\n 1. In the navigation panel of the Google Cloud console,\n click **IAM \\& Admin** and then select **IAM**:\n\n [Go to IAM](https://console.cloud.google.com/iam-admin/iam)\n 2. Select the project in which you're creating the evaluation.\n\n 3. To see the Google-managed service accounts on the **Permissions** page,\n select the **Include Google-provided role grants** checkbox.\n\n 4. Search for the Workload Manager service account that has the\n following format:\n\n \u003cbr /\u003e\n\n ```\n service-PROJECT_NUMBER@gcp-sa-workloadmanager.iam.gserviceaccount.com\n ```\n\n \u003cbr /\u003e\n\n You can find the \u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e of your\n Google Cloud project on the **Project settings** page.\n For more information, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects).\n 5. To modify roles for the service account, click edit **Edit principal** in the row that\n contains the service account name, and\n click add **Add another role**.\n\n 6. If the service account is not listed on the **Permissions** page,\n manually enter the service account name:\n\n 1. Click person_add\n **Grant Access**, and then enter the email address of the Workload Manager\n service account in the following format:\n\n \u003cbr /\u003e\n\n ```\n service-PROJECT_NUMBER@gcp-sa-workloadmanager.iam.gserviceaccount.com\"\n ```\n\n \u003cbr /\u003e\n\n 2. Click **Select a role**.\n\n2. Assign the following roles to the service account:\n\n - Service Usage Consumer ([`roles/serviceusage.serviceUsageConsumer`](/iam/docs/understanding-roles#serviceusage.serviceUsageConsumer))\n - Monitoring Metric Writer ([`roles/monitoring.metricWriter`](/iam/docs/understanding-roles#monitoring.metricWriter))\n3. Run an evaluation and wait for completion.\n\n After successful completion of the evaluation, Workload Manager sends\n metrics to the project, and then you can [set alerts for the evaluations](/workload-manager/docs/create-evaluation#notifications)."]]