Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Recommender und Benachrichtigungen zum Error Reporting-Benachrichtigung
Der Recommender des Error Reporting sucht nach den letzten Abstürzen in Ihrem Google Cloud-Projekt und gibt Empfehlungen, wenn Sie keine Error Reporting-Benachrichtigungen konfiguriert haben.
Wenn Sie Benachrichtigungen konfiguriert haben, werden keine Empfehlungen gegeben.
In diesem Dokument wird beschrieben, wie Sie Ihre Empfehlungen und Insights aktivieren und anzeigen lassen.
Vorbereitung
Bevor Sie Empfehlungen und Insights für Error Reporting ansehen können, müssen Sie Folgendes tun:
Aktivieren Sie die Recommender API wie unter API aktivieren beschrieben.
Prüfen Sie, ob Sie ausreichende Berechtigungen haben.
Sie benötigen eine der folgenden Rollen mit den erforderlichen Berechtigungen:
Aufgabenbeschreibung
Rolle
Empfehlungen/Insights ansehen
roles/recommender.errorReportingViewer
Empfehlungen/Insights ansehen und aktualisieren
roles/recommender.errorReportingAdmin
Empfehlungen und Insights im Transparency and Control Center deaktivieren.
Weitere Informationen finden Sie unter Deaktivierung.
roles/dataprocessing.admin
Diese Recommender-Rollen bieten die folgenden API-Berechtigungen:
Recommender zeigt Empfehlungen in der Google Cloud Console an.
Sie können Empfehlungen auch mithilfe der Google Cloud-Befehlszeile oder der Recommender API auflisten.
Google Cloud Console
So rufen Sie Ihre Empfehlungen auf:
Rufen Sie die Google Cloud Console auf oder verwenden Sie die folgende Schaltfläche:
Der Error Reporting-Recommender generiert Empfehlungen basierend auf Statistiken. Sie können diese Insights mithilfe der Google Cloud CLI oder der Recommender API abrufen.
gcloud-CLI
Führen Sie den folgenden Befehl aus, um Ihre Error Reporting-Insights mithilfe der gcloud-CLI aufzulisten:
gcloud recommender insights list \
--insight-type=google.clouderrorreporting.Insight \
--project=PROJECT_ID \
--location=global
Ersetzen Sie PROJECT_ID durch die Kennung Ihres Google Cloud-Projekts.
Weitere Informationen zu diesem Befehl, einschließlich der Optionen für das Ausgabeformat, finden Sie unter gcloud recommender insights list.
Recommender API
Führen Sie den folgenden Befehl aus, um Ihre Error Reporting-Insights mithilfe der Recommender API aufzulisten:
[[["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-08-28 (UTC)."],[],[],null,["# Error Reporting notification recommender and insights\n=====================================================\n\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThe [Error Reporting](/error-reporting/docs) recommender looks for\nrecent crashes in your Google Cloud project and provides recommendations if you\nhave not configured [Error Reporting notifications](/error-reporting/docs/notifications).\nWhen you have notifications configured, no recommendations are made.\n\nThis document describes how to enable and view your recommendations\nand insights.\n\nBefore you begin\n----------------\n\nBefore you can view Error Reporting recommendations and\ninsights, you must do the following:\n\n1. Enable the Recommender API as described in\n [Enable the API](/recommender/docs/enabling).\n\n2. Ensure that you have sufficient permission.\n You must have one of the following roles, which provide the necessary\n permissions:\n\n\n \u003cbr /\u003e\n\n These Recommender roles provide the following API permissions:\n\n\n \u003cbr /\u003e\n\n For more information about roles and about granting access, see the\n following:\n - [Understanding roles](/iam/docs/understanding-roles)\n - [Managing access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access)\n\nView recommendations\n--------------------\n\nRecommender displays recommendations in the Google Cloud console.\nYou can also list recommendations by using the Google Cloud CLI or\nthe Recommender API. \n\n### Google Cloud console\n\n\nTo view your recommendations, do the following:\n\n1. Go to the Google Cloud console, or use the following button:\n\n [Go to Google Cloud console](https://console.cloud.google.com/)\n2. Select the **Recommendations** tab.\n\n\u003cbr /\u003e\n\n### gcloud CLI\n\n\nTo list your Error Reporting recommendations by using the\ngcloud CLI, run the following command: \n\n```\ngcloud recommender recommendations list \\\n --recommender=google.clouderrorreporting.Recommender \\\n --project=PROJECT_ID \\\n --location=global\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information about this command, including options for the output\nformat, see [`gcloud recommender recommendations list`](/sdk/gcloud/reference/recommender/recommendations/list).\n\n\u003cbr /\u003e\n\n### Recommender API\n\n\nTo list your Error Reporting recommendations by using the\nRecommender API, run the following command: \n\n```\ncurl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n\"https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/global/recommenders/google.clouderrorreporting.Recommender/recommendations\"\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information, see [Using the API - Recommendations](/recommender/docs/using-api).\n\n\u003cbr /\u003e\n\nView insights\n-------------\n\nThe Error Reporting recommender generates recommendations\nbased on [insights](/recommender/docs/insights/using-insights). You can retrieve these insights\nby using the Google Cloud CLI or the Recommender API. \n\n### gcloud CLI\n\n\nTo list your Error Reporting insights by using the\ngcloud CLI, run the following command: \n\n```\ngcloud recommender insights list \\\n --insight-type=google.clouderrorreporting.Insight \\\n --project=PROJECT_ID \\\n --location=global\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information about this command, including options for the output\nformat, see [`gcloud recommender insights list`](/sdk/gcloud/reference/recommender/insights/list).\n\n### Recommender API\n\n\nTo list your Error Reporting insights by using the\nRecommender API, run the following command: \n\n```\ncurl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n\"https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/global/recommenders/google.clouderrorreporting.Insight/insights\"\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information, see [Using the API - Insights](/recommender/docs/insights/using-api).\n\n\u003cbr /\u003e\n\nPricing\n-------\n\nError Reporting recommendations and insights are\navailable free of charge. For information about other pricing tiers, see\n[Recommender pricing](/recommender/pricing)."]]