Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Recomendador e insights de notificações do Error Reporting
O recomendador do Error Reporting procura
falhas recentes no projeto do Google Cloud e fornece recomendações se você
não tiver configurado as notificações do Error Reporting.
Quando as notificações estão configuradas, nenhuma recomendação é feita.
Este documento descreve como ativar e visualizar recomendações e insights.
Antes de começar
Antes de visualizar as recomendações e os insights do Error Reporting, faça o seguinte:
Ative a API Recommender conforme descrito em
Ativar a API.
Verifique se você tem permissão suficiente.
Você precisa ter um dos seguintes papéis, que concedem as permissões
necessárias:
Descrição da tarefa
Papel
Ver recomendações/insights
roles/recommender.errorReportingViewer
Ver e atualizar (dispensar) recomendações/insights
roles/recommender.errorReportingAdmin
Desativar recomendações/insights na Central de transparência e controle.
Para mais informações, consulte
Como desativar.
roles/dataprocessing.admin
Esses papéis do recomendador fornecem as seguintes permissões de API:
O recomendador exibe recomendações no Console do Google Cloud.
Também é possível listar recomendações usando a CLI do Google Cloud ou a API Recommender.
Console do Google Cloud
Para ver suas recomendações, faça o seguinte:
Acesse o console do Google Cloud ou use o seguinte botão:
O recomendador do Error Reporting gera recomendações com base em insights. É possível recuperar esses insights
usando a CLI do Google Cloud ou a API Recommender.
CLI da gcloud
Para listar os insights do Error Reporting usando a CLI do gcloud, execute o seguinte comando:
gcloud recommender insights list \
--insight-type=google.clouderrorreporting.Insight \
--project=PROJECT_ID \
--location=global
Substitua PROJECT_ID pelo identificador do seu projeto do Google Cloud.
As recomendações e os insights do Error Reporting estão disponíveis gratuitamente. Para informações sobre outros níveis de preço, consulte
Preços de recomendações.
[[["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,["# 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)."]]