← All integrations
Google Cloud

Google Cloud integration. Find and fix issues across your Cloud Run, GKE and Cloud SQL services.

Polylane maps Cloud Run, GKE and Cloud SQL, reads logs, metrics and traces to spot issues, investigates Cloud Monitoring alerts as they fire, and writes the fix.

Why Polylane for Google Cloud

Get started for free

How to set up Google Cloud

The console says setup usually takes a few minutes and that Google access changes can take longer. Registration can finish before resources appear. No measured end-to-end setup duration is published.

  1. Choose Google Cloud in Settings → Clouds → Connect, then Continue with Google and authorize a Google Cloud administrator account. Google requests broad cloud-platform access for setup only; that temporary access expires within an hour and no refresh token is kept.
  2. Select one project (billing must be enabled), review the setup permissions and the Investigate alerts option, then choose Connect project. Polylane enables the bootstrap APIs, creates a <prefix>-im installation service account and submits the published blueprint to Infrastructure Manager. Alternatively, run the prefilled script in Cloud Shell and choose Verify and connect, or apply the companion Terraform module.
  3. Setup continues in the background; you can close the panel. After deployment Polylane verifies the reader identity and registers the project, then inventory sync starts. If Google access has expired, choose Authorize again to resume. A pending request lasts seven days.

Permissions and access

The installation service account (<prefix>-im) receives config.agent, iam.serviceAccountAdmin, iam.workloadIdentityPoolAdmin, resourcemanager.projectIamAdmin, iam.roleAdmin, pubsub.admin, cloudasset.owner, logging.configWriter and serviceUsage.serviceUsageAdmin, and keeps them for deployment updates and cleanup. Ongoing access uses a separate reader service account that signs in through workload identity federation with short-lived credentials; no service account keys are created. The reader reads inventory, IAM policies, Logging, Monitoring, Cloud Trace and the configuration of Compute Engine, Cloud Run, Cloud Functions, Cloud SQL, GKE and other services, and does not read Storage objects, BigQuery rows, secret payloads or artifact contents. It is not strictly read-only: with Investigate alerts on, a custom role lets it update alert policies, create and delete its own notification channel, and create the alert Pub/Sub topic and push subscription. GKE writes additionally need gke_operations_enabled = true in the setup and Read-only turned off in Polylane.

Discovery, refresh and the connected view

A project asset feed publishes resource changes to an authenticated Pub/Sub push subscription, and a filtered log sink sends Pub/Sub and Storage activity to a separate subscription. A full reconciliation runs every 15 minutes, but Cloud Asset Inventory is eventually consistent and some types update hours apart. Deletions are confirmed from asset history within its 35-day retention. With Investigate alerts on, Cloud Monitoring incidents arrive through a dedicated Pub/Sub channel added to your existing alert policies (Polylane creates no default policies), and closures that are never delivered are recovered during reconciliation.

Disconnect and revoke access

Disconnect the project in Polylane to stop new credential issuance, processing and schedules. Google access tokens already issued expire within fifteen minutes. Google resources stay in your project: delete the Infrastructure Manager deployment with resource deletion enabled, or run terraform destroy for the module, to remove the reader and push identities, the workload identity pool and provider, IAM grants, topics, subscriptions, the asset feed and the log sink. Then remove the -im installation service account and its grants. Enabled APIs, Google-managed service agents and Infrastructure Manager state and staging buckets remain; review them separately. Cancelling a pending request does not delete resources already created.

Provider credentials and Polylane’s access mode are separate. Where write-capable tools exist, the connected account’s Settings page offers a Read-only switch. Turning it off permits writes subject to review and confirmation, but cannot add permissions to the provider credential. Agent-connected Kubernetes clusters stay read-only.

In the graph.

Every Google Cloud resource Polylane picks up sits in the graph with its connections, config and history.

Google Cloud Project
Google Service Account
Google IAM Role
Pub/Sub Topic
Pub/Sub Subscription
Storage Bucket
Compute Engine Instance
VPC Network
VPC Subnet
Persistent Disk
Firewall Rule
Cloud Run Service
GKE Cluster
Cloud SQL Instance
Cloud Function
Memorystore for Redis Instance
Firestore Database
Cloud Tasks Queue
Cloud Scheduler Job
Secret Manager Secret
Artifact Registry Repository
Forwarding Rule
Target HTTP Proxy
Target HTTPS Proxy
URL Map
Backend Service
Backend Bucket
Network Endpoint Group
Health Check
Cloud Armor Policy
SSL Certificate
Cloud Router
IP Address
Managed Instance Group
Instance Group
Instance Template
Cloud DNS Zone
Serverless VPC Access Connector
API Gateway
API Gateway API
BigQuery Dataset
Spanner Instance
Spanner Database
AlloyDB Cluster
AlloyDB Instance
Bigtable Instance
Bigtable Cluster
Dataflow Job
Dataproc Cluster
Composer Environment
Eventarc Trigger
Workflow
Filestore Instance
Memorystore for Memcached Instance
Memorystore for Redis Cluster
Memorystore Instance
Vertex AI Workbench Instance
Vertex AI Endpoint
Cloud Build Trigger
Cloud Deploy Pipeline
Cloud Deploy Target
Cloud KMS Key Ring
Cloud KMS Key
Cloud Run Job
Workload Identity Pool
Vertex AI Deployment Resource Pool
Cloud Build Repository
VPC Route
GKE Node Pool
Developer Connect Repository Link
Workload Identity Pool Provider
Cloud Logging Bucket
Cloud Logging Sink
Private Service Access Connection

Google Cloud tools.

The calls Polylane can make to Google Cloud when it looks into an issue.

Google Cloud
  • gcpLogs Read Google Cloud logs (list log names, query entries)
  • gcpMetrics Discover and query Google Cloud Monitoring metrics (list, query)
  • gcpDashboards Read Google Cloud Monitoring dashboards (list, get)
  • gcpAlertPolicies Read Google Cloud alert policies (list, get)
  • gcpTraces Search and read Google Cloud traces (list, get)
  • gcpApi Read Google Cloud APIs using the connected project's reader identity
  • gcpListApiOperations Discover Google Cloud API read operations and their input fields
  • gcpGkeKubectl Read and operate on Kubernetes resources on a GKE cluster, including pod logs, events, metrics, rollouts, scale, restart, patch, apply and delete

All guides for Google Cloud

Common questions.

How does Polylane connect to Google Cloud?

Choose Google Cloud in Settings → Clouds → Connect, then Continue with Google and authorize a Google Cloud administrator account. Google requests broad cloud-platform access for setup only; that temporary access expires within an hour and no refresh token is kept. Select one project (billing must be enabled), review the setup permissions and the Investigate alerts option, then choose Connect project. Polylane enables the bootstrap APIs, creates a <prefix>-im installation service account and submits the published blueprint to Infrastructure Manager. Alternatively, run the prefilled script in Cloud Shell and choose Verify and connect, or apply the companion Terraform module. Setup continues in the background; you can close the panel. After deployment Polylane verifies the reader identity and registers the project, then inventory sync starts. If Google access has expired, choose Authorize again to resume. A pending request lasts seven days.

Connect it once. Then get back to shipping.