Skip to main content

Google Cloud Platform

Oodle integrates with Google Cloud Platform (GCP) to pull metrics from Cloud Monitoring. Oodle uses a service account with delegated access to query your GCP project, discover compute resources, and enrich metrics with resource labels and tags.

Prerequisites

  • A GCP project with billing enabled
  • Permission to enable APIs, create service accounts, and manage IAM bindings in the project
  • An Oodle account (navigate to ap1, us1 to start setup)

Setup

  1. Open the GCP integration page in Oodle (ap1, us1), or click Settings in the left sidebar and select the Google Cloud Platform tile.
  2. Click Add project (+ button) to open the setup drawer.
GCP integration setup in Oodle

The setup drawer guides you through each step. Follow the instructions in the drawer, or use the tabs below for detailed guidance:

1. Provide GCP Project ID

Enter the ID of the GCP project you want to monitor with Oodle. You can find your project ID in the GCP Console dashboard.

2. Enable Required APIs

Ensure the following APIs are enabled for your project. You can click each link in the setup drawer to check and enable the API if needed:

APIPurpose
Cloud Monitoring APIQuery Google Cloud metric data
Compute Engine APIDiscover compute instance data
Cloud Asset APIRequest Google Cloud resources and link relevant labels as tags
Cloud Resource Manager APIAppend metrics with the correct resources and tags

3. Create a Service Account

Create a service account that Oodle will use to access your GCP project. Assign the following roles to the service account:

RoleAccess
BrowserRead-only access to browse the hierarchy of a project
Compute ViewerRead-only access to get and list Compute Engine resources
Monitoring ViewerRead-only access to monitoring data in your Google Cloud environment
Cloud Asset ViewerRead-only access to cloud assets metadata

4. Provide GCP Service Account Email

Enter the email address of the service account you created in the previous step (e.g. oodle-monitoring@YOUR_PROJECT_ID.iam.gserviceaccount.com).

5. Add the Oodle Principal to Your Service Account

  1. Open the Principals with access tab of your service account in the IAM console.
  2. Click Grant access to open the access drawer.
  3. In the New principals field under Add principals, paste the Oodle principal:
  4. In the Role dropdown under Assign roles, select Service Account Token Creator.
  5. Click Save.
Troubleshooting: Organization Policy Restriction

If you see an error like "one or more users named in the policy do not belong to a permitted customer", your organization has an iam.allowedPolicyMemberDomains constraint. Add Oodle's Directory Customer ID C03pmpa0m to your organization's allowed policy member domains.

6. Save and Wait

Click Save in the Oodle drawer. Allow up to 5 minutes for setup to complete and metrics to start flowing.

Verification

Once setup is complete, verify the integration is working:

  1. Navigate to ap1, us1 and confirm the project status shows as connected.
  2. Go to ap1, us1 and search for metrics prefixed with gcp_ to confirm data is flowing.

Troubleshooting

IssueResolution
No metrics appearing after 5 minutesVerify all four APIs are enabled in the GCP project
Permission denied errorsCheck that the service account has all four required roles
Token creation failuresEnsure the Oodle principal has the Service Account Token Creator role on your service account
Organization policy blocks external principalsAdd Directory Customer ID C03pmpa0m to iam.allowedPolicyMemberDomains

How Oodle collects GCP metrics

Polling interval

Oodle polls the Cloud Monitoring API on a recurring interval - every 5 minutes by default. To adjust this interval, reach out to Oodle Support.

A shorter polling interval increases the number of API calls made to GCP, which affects your Cloud Monitoring API costs. Note that reducing the polling interval below a metric's native alignment interval (see below) will have no impact - GCP will not have new data points to return more frequently than the metric is emitted.

GCP metric alignment intervals

Different GCP services emit metrics at different native intervals. For example, Compute Engine CPU metrics are reported every 60 seconds, while some managed-service metrics (such as Cloud SQL or Cloud Storage) may only update every 5 or 10 minutes. Oodle requests data aligned to each metric's native interval so no data points are missed or double-counted.

Expected data delay

Because of the combination of Oodle's polling interval and GCP's own metric publication delay, metrics typically appear in Oodle approximately 5 minutes after they are recorded in GCP. This delay is normal and applies to all polling-based integrations.

Custom metrics

If you are sending custom metrics to GCP and want them available in Oodle without the polling delay, consider writing those metrics directly to Oodle instead. See the other metrics integrations for options on sending data to Oodle directly.


Support

If you need assistance or have any questions, please reach out to us through: