• /
  • EnglishEspañolFrançais日本語한국어Português
  • Inicia sesiónComenzar ahora

Integrations and custom roles

New Relic reads data from your GCP account using the Google Stackdriver API and other service-specific APIs. To access these APIs, the New Relic authorized account needs permissions that GCP grants through roles. The exact APIs, roles, and permissions depend on how you connect GCP to New Relic.

APIs to enable

Before you connect, enable the required Google Cloud APIs in each project you want to monitor, using the API & Services library.

Connection method

APIs to enable

Workload Identity Federation

New Relic service account

Google Stackdriver Monitoring API

Required roles

For most setups, the GCP primitive role Viewer (roles/viewer) is sufficient. It provides read-only access to existing resources and data without affecting your infrastructure state, and Google manages and updates it automatically as GCP services change. For tighter permission control, use a custom role instead.

The roles you grant depend on your connection method.

Workload Identity Federation

Grant the service account you create these roles on the project:

  • Viewer (roles/viewer): read resources
  • Service Usage Consumer (roles/serviceusage.serviceUsageConsumer): access enabled APIs
  • Cloud Asset Viewer (roles/cloudasset.viewer): view cloud asset metadata
  • Folder Viewer (roles/resourcemanager.folderViewer): view folder metadata (required only for integrations configured at the folder level)

The service account must also allow impersonation from the identity pool. During setup, you grant the Workload Identity User role (roles/iam.workloadIdentityUser) to the pool principal.

Domain restriction constraints

If your organization enforces a domain restriction constraint, update the policy to allow the following New Relic identifiers, depending on which constraint you use:

  • iam.allowedPolicyMemberDomains: allow New Relic domain ID C02x1gp26
  • iam.managed.allowedPolicyMembers: allow Organization ID 740422149647 or Project Number 397727728820

Use a custom role

To control permissions more precisely than the Viewer role allows, create a custom role based on the list of permissions, which specifies the minimum set required to fetch data from each GCP integration.

Importante

New Relic has no way of identifying problems related to custom permissions. If you choose to create a custom role, it is your responsibility to maintain it and ensure it collects the data properly.

To set up a custom role:

  1. Create a Google Cloud IAM custom role in each GCP project you want to monitor.
  2. Add the permissions for the cloud services you want to monitor, using the list below.
  3. Assign the custom role to the New Relic authorized account.

List of permissions

All integrations need the following permissions:

  • monitoring.timeSeries.list
  • serviceusage.services.use

For some GCP integrations, New Relic also needs the following permissions, mainly to collect tags and other attributes.

Integration

Permissions

Google AppEngine

Not applicable. Google App Engine does not require additional permissions.

Google BigQuery

  • bigquery.datasets.get
  • bigquery.tables.get
  • bigquery.tables.list
  • bigquery.jobs.list

Google Cloud Dataflow

  • dataflow.jobs.get
  • dataflow.jobs.list
  • dataflow.messages.list
  • dataflow.metrics.get

Google Cloud Functions

  • cloudfunctions.functions.list

Google Cloud Load Balancing

Not applicable. Google Cloud Load Balancing does not require additional permissions.

Google Cloud Pub/Sub

  • pubsub.subscriptions.get
  • pubsub.subscriptions.list
  • pubsub.topics.get
  • pubsub.topics.list

Google Cloud Run

  • run.configurations.get
  • run.configurations.list
  • run.locations.list
  • run.revisions.get
  • run.revisions.list
  • run.routes.get
  • run.routes.list
  • run.services.get
  • run.services.list

Google Cloud Spanner

  • spanner.instances.get
  • spanner.instances.list
  • spanner.databases.get
  • spanner.databases.list
  • spanner.databases.getDdl

Google Cloud SQL

cloudsql.instances.list

Google Cloud Storage

storage.buckets.list

Google Compute Engine

  • compute.instances.list
  • compute.disks.get
  • compute.disks.list

Google Kubernetes Engine

container.clusters.list

Sugerencia

This applies to the New Relic service account and Google user account connection methods only. With Workload Identity Federation, these permissions are not needed: New Relic uses your own service account (which already has the Viewer role) to list accessible projects after you establish the WIF connection.

To see the list of projects you can link to New Relic through the UI, your New Relic authorized service account needs these permissions:

  • resourcemanager.projects.get

  • monitoring.monitoredResourceDescriptors.list

    If you prefer not to grant these permissions, you have two alternatives:

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.