GCP Recommender
Connect GCP Recommender to CloudZero to enrich your cost data with Google Cloud optimization insights. Recommender data feeds into Optimize for savings recommendations and into Dimensions for deeper cost organization. Like the billing connection, CloudZero reads your Recommender data from BigQuery tables using a read-only service account with the BigQuery Data Viewer role.
For details on what CloudZero accesses, see GCP Permissions and Security.
What you need
- CloudZero user with data configuration permissions
- An existing GCP billing connection
- A GCP Data Transfer for Recommendations configured in BigQuery, producing both an
insights_exportand arecommendations_exporttable. If you do not have one, follow Google's guide to create a Data Transfer for Recommendations. New transfers can take 24-48 hours to produce their first data drop. - Permission to share BigQuery tables in the project that contains your Recommender data
Step 1: Retrieve your table names from BigQuery
- In the Google Cloud console, navigate to BigQuery.
- In the navigation panel, expand the project and dataset you specified when you configured the Data Transfer. You should see two tables:
insights_exportandrecommendations_export. - Copy the fully qualified table name from the Table ID field for each table. You will paste these into CloudZero in Step 2.
The fully qualified table names follow the format project.dataset.table:
billing-administration-123456.all_recommender_data.insights_exportbilling-administration-123456.all_recommender_data.recommendations_export
Step 2: Configure the connection in CloudZero
- In CloudZero, go to Settings > Cloud Connections.
- Select Create Connection +.
- Select the GCP tile, then choose Get Started on the GCP Recommender tile.
- Enter a Connection Name. This name appears throughout CloudZero. It cannot contain spaces, periods, or special characters, except for hyphens and underscores.
- Paste the insights table name you copied in Step 1 into the Fully Qualified Insights Table Name field.
- Paste the recommendations table name you copied in Step 1 into the Fully Qualified Recommendations Table Name field.
- Copy the Service Account ID value shown on the page. You will need this in Step 3.
- Select Save & Connect.
Your connection appears in the Billing Connections table and may show an error status until you complete Step 3. This is expected and resolves automatically after you grant access.
Step 3: Grant CloudZero read access to your Recommender data
Grant the CloudZero service account read access to both Recommender tables.
- In the Google Cloud console, navigate to BigQuery in the project that contains your Recommender data.
- Select the
insights_exporttable. - Select +SHARE.
- Select +ADD PRINCIPAL.
- In the New principals field, paste the Service Account ID you copied in Step 2.
- In the Role field, select BigQuery Data Viewer.
- Select Save.
- Repeat steps 2-7 for the
recommendations_exporttable.
Step 4: Verify the connection
- In CloudZero, go to Settings > Cloud Connections.
- Select your GCP Recommender connection in the Billing Connections table.
- Confirm that the Fully Qualified Insights Table Name and Fully Qualified Recommendations Table Name match the table names you copied in Step 1 and that the Service Account ID matches the value you used in Step 3.
CloudZero periodically scans the connection. Once it detects that access has been granted, the status changes to Pending Data while CloudZero processes the first ingest.
If the status still shows an error after 24 hours, reach out to your account manager.
What to expect
After CloudZero processes the first data ingest, the connection status changes from Pending Data to Healthy. This can take several hours. Your GCP Recommender data then appears in Optimize alongside recommendations from your other cloud providers and is available for cost organization through Dimensions.
Have questions or feedback? Reach out to your account manager.
Updated 19 days ago
