Google Cloud Platform Seer Integration

Learn how adding Google Cloud Platform data to Seer's context helps you debug and fix issues.

The Google Cloud Platform for Seer integration gives Seer Agent access to Cloud Logging, Cloud Monitoring, and Cloud Trace data. Seer can then use Google Cloud data to enhance or supplement Sentry telemetry in issue analysis or investigations.

The connection is shared across your Sentry organization. You configure one GCP integration with one customer service account that can access multiple projects. Sentry authenticates by impersonating that account. You do not need to create or upload a service account key.

  1. Navigate to Seer Connector Settings

  2. Select the Google Cloud Platform for Seer integration and click Add Organization

  3. In the setup modal, you will see a Sentry Service Account email address. Sentry generates this account for your organization.

    There are two service accounts in this setup: the Sentry Service Account shown in the dialog, and a service account you create in your own Google Cloud project. You will use both email addresses in the steps below.

  1. In the Google Cloud console, open IAM & Admin > Service Accounts and select the project where you want to create your service account. Click Create service account, enter a name such as gcp-sentry, and complete creation. You can customize its access in the configuration steps.

The name will also generate an email address. Copy your new service account's email, for example gcp-sentry@your-project.iam.gserviceaccount.com. One service account can cover every project you connect, even projects outside of the one where you created the service account.

For Google's creation instructions, including the IAM API prerequisite, see Create service accounts. If your organization uses an Infrastructure as Code (IaC) provider such as Terraform, you can use that in place of the Google Cloud console.

  1. On each GCP project you want Seer to query, give your service account four roles:

    1. In Google Cloud, open IAM & Admin > IAM, and select the project.
    2. Click Grant access. Enter your service account's email as the principal.
    3. Add the following four roles and click Save. If the account already has access, edit its existing entry to add the missing roles. Repeat for each project.
      • MCP Tool User — roles/mcp.toolUser
      • Logs Viewer — roles/logging.viewer
      • Monitoring Viewer — roles/monitoring.viewer
      • Cloud Trace User — roles/cloudtrace.user

    For more details, see Manage access to projects.

  2. Make sure the Cloud Logging API (logging.googleapis.com), Cloud Monitoring API (monitoring.googleapis.com), and Cloud Trace API (cloudtrace.googleapis.com) are enabled on each project you want to connect. In Google Cloud, select the project, open APIs & Services > Library, find each API, and enable it.

    Google's remote MCP endpoints are available when the corresponding product APIs are enabled. See Enable supported products.

  3. Authorize the Sentry Service Account to impersonate your service account.

    In the Google Cloud console:

    1. Open IAM & Admin > Service Accounts and select the project containing the service account you created for this integration.
    2. Open Permissions for that service account, find Principals with access to this service account, and click Grant access.
    3. Enter the Sentry Service Account email shown in the Sentry integration setup modal as the principal.
    4. Select Service Account Token Creator (roles/iam.serviceAccountTokenCreator) and click Save.

    Grant the Sentry service account the Service Account Token Creator (roles/iam.serviceAccountTokenCreator) role on the service account you created for this integration. This allows Sentry to impersonate that account in order to query your GCP data.

    For more details, see Manage access to service accounts.

  4. Return to the Sentry setup modal and click Continue. Fill in the connection details:

    • Service Account Email: Enter the service account email you created in Google Cloud, such as gcp-sentry@my-gcp-project.iam.gserviceaccount.com.
    • GCP Project IDs: Enter each project ID you wish to connect and press Enter to add it. Use project IDs, rather than display names or numeric project numbers.
  5. Click Continue. Sentry automatically tests access to Cloud Logging, Cloud Monitoring, and Cloud Trace for every project you entered. Wait for the results.

    When all checks pass, the status is Connected, with your projects listed under Connected projects.

    If a check fails, Sentry shows the affected projects and services with error details. Correct the setup in Google Cloud, then click Re-test. IAM changes can take a few minutes to propagate.

    You can also click Continue Anyway to finish installation and resolve the errors from the integration settings page. Finishing installation with an error does not mean access has been verified.

  6. Once verification succeeds, click Continue to finish setup.

You can update your connector settings by clicking the Configurations tab on the Google Cloud Platform for Seer settings page, then clicking Configure for the connector you wish to update.

Update Customer Service Account and/or GCP Project IDs under Organization Integration Settings.

To add a project, first grant the service account the four required roles on that project and enable its APIs in Google Cloud, then add the project ID in Sentry. To change service accounts, add the required project roles to the new account and give the Sentry Service Account the Service Account Token Creator role on the new account.

The Sentry Service Account field is managed by Sentry and cannot be edited. You can update your service account and projects without reinstalling the integration.

Changes save automatically. After a successful save, Sentry runs a connection check using the saved settings. Review Connection Status and the Last checked time. You can click Re-test at any time to check the current configuration again.

If the check cannot complete, your saved changes remain in place. Resolve the issue and re-test.

If the connection needs attention:

  • Permission denied or authentication failed: Confirm that the Customer Service Account contains your account's email, that it has all four roles on each selected project, and that Sentry's generated account has Service Account Token Creator on your account. Check the project IDs too: Google Cloud may report a permissions error when a project does not exist or is inaccessible.
  • API disabled: Enable the API named in the error for each affected project, then click Re-test.
  • Not verified: Run Re-test to check the saved configuration.
  • The check could not be completed: Try Re-test again. If the problem persists after you confirm the setup, contact Sentry support with the affected project and service names and the error shown.

If you just created an account or changed its IAM grants, allow time for Google Cloud to apply the changes before re-testing. See Google's access change propagation documentation for details.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").