🔗Analyzing BigQuery costs by linking the logging export
Last updated
Last updated
Follow the below steps to create and integrate a logging sink with Economize, allowing you to analyze BigQuery costs within Reports.
Navigate to the BigQuery console to create a new dataset named logging_export in the same project where you created the billing export dataset during onboarding.
For this newly created dataset configure the permission as follows:
Select the three vertical dots next to the dataset name, then click Share.
On the Share permissions panel that appears on the right, click + ADD PRINCIPAL.
In the New principals field, under Add principals, paste the value of the service account based on your selected access method during onboarding.
In the Role field, under Assign roles, search for and select BigQuery Data Editor.
Now go to the Log router and select Create Sink.
Provide a sink name and select the BigQuery dataset logging_export that you created earlier as the destination.
Click on the Use partitioned tables checkbox in the form.
Provide the below inclusion filter in Step 3 when asked to Choose logs to include in sink.
Leave the exclusion filter empty and click on Create Sink.
Navigate to the Projects page from the settings of the Economize console.
Click on the pen icon for the project you wish to analyze the BigQuery costs.
Enter the Dataset ID of the BigQuery dataset you created in step 1 in the following text field.
Test your connection to the dataset by clicking on the test button.
Click on the Save Changes button.
SUCCESS
You can now navigate to the Reports within the Economize console and start analyzing the BigQuery costs.