Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta página mostra como resolver problemas que podem ocorrer ao
avaliar cargas de trabalho usando o Workload Manager.
As notificações estão desativadas para a primeira avaliação em um projeto
Ao criar a primeira avaliação em um projeto Google Cloud
usando o Workload Manager, você pode notar que as caixas de seleção de notificação de evento
estão desativadas na seção Notificações. Você também pode ver
a seguinte mensagem:
Selection unavailable until metrics exist in the current project.
Esse problema ocorre porque a conta de serviço do Workload Manager não
tem as permissões necessárias para enviar métricas ao Cloud Monitoring no
projeto em que você executa a avaliação.
Se você estiver criando a primeira avaliação em um projeto, crie a avaliação
sem notificações de evento. Se você tiver pelo menos uma avaliação no projeto,
faça o seguinte:
Autorize a conta de serviço do Workload Manager a enviar métricas para seu projeto.
No painel de navegação do console Google Cloud ,
clique em IAM e administrador e selecione IAM:
Selecione o projeto em que você está criando a avaliação.
Para ver as contas de serviço gerenciadas pelo Google na página Permissões,
marque a caixa de seleção Incluir concessões de papel fornecidas pelo Google.
Procure a conta de serviço do Workload Manager que tem o
seguinte formato:
Encontre o PROJECT_NUMBER do seu projeto Google Cloud na página Configurações do projeto.
Para mais informações, consulte Como identificar projetos.
Para modificar os papéis da conta de serviço, clique em editEditar principal na linha que
contém o nome da conta de serviço e
clique em addAdicionar outro papel.
Se a conta de serviço não estiver listada na página Permissões, insira manualmente o nome dela:
Clique em person_addConceder acesso e insira o endereço de e-mail da conta de serviço do Gerenciador de cargas de trabalho
no seguinte formato:
[[["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-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)."]]