Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite erfahren Sie, wie Sie Probleme bei der Bewertung von Arbeitslasten mit Workload Manager beheben.
Benachrichtigungen sind für die erste Bewertung in einem Projekt deaktiviert
Wenn Sie die erste Bewertung in einem Google Cloud Projekt mit dem Workload Manager erstellen, sind die Kästchen für Ereignisbenachrichtigungen im Bereich Benachrichtigungen möglicherweise deaktiviert. Möglicherweise wird auch die folgende Meldung angezeigt:
Selection unavailable until metrics exist in the current project.
Dieses Problem tritt auf, weil das Arbeitslastmanager-Dienstkonto nicht die erforderlichen Berechtigungen hat, um Messwerte an Cloud Monitoring im Projekt zu senden, in dem Sie die Bewertung ausführen.
Wenn Sie die erste Bewertung in einem Projekt erstellen, erstellen Sie die Bewertung ohne Ereignisbenachrichtigungen. Wenn Sie mindestens eine Bewertung im Projekt haben, gehen Sie so vor:
Autorisieren Sie das Workload Manager-Dienstkonto, Messwerte an Ihr Projekt zu senden.
Klicken Sie im Navigationsbereich der Google Cloud Console auf IAM und Verwaltung und wählen Sie dann IAM aus:
Wählen Sie das Projekt aus, in dem Sie die Bewertung erstellen.
Wenn Sie die von Google verwalteten Dienstkonten auf der Seite Berechtigungen sehen möchten, klicken Sie auf das Kästchen Von Google bereitgestellte Rollenzuweisungen einschließen.
Suchen Sie nach dem Dienstkonto des Arbeitslastmanagers im folgenden Format:
Sie finden den PROJECT_NUMBER Ihres Google Cloud -Projekts auf der Seite Projekteinstellungen.
Weitere Informationen finden Sie unter Projekte identifizieren.
Wenn Sie Rollen für das Dienstkonto ändern möchten, klicken Sie in der Zeile mit dem Namen des Dienstkontos auf editHauptkonto bearbeiten und dann auf addWeitere Rolle hinzufügen.
Wenn das Dienstkonto auf der Seite Berechtigungen nicht aufgeführt ist, geben Sie den Namen des Dienstkontos manuell ein:
Klicken Sie auf person_addZugriff gewähren und geben Sie dann die E-Mail-Adresse des Workload Manager-Dienstkontos im folgenden Format ein:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)."]]