GCP/Kubecost Data Audit
Performing a cluster data audit
First, in the Kubecost UI, view the price of a single node for a single day. This can be done on the Assets page by modifying your query with the following requests:
Select the window range picker and select Today
Select Filter and add the filters Provider is "GCP" and Asset Type is "node".
Next, compare this instance's costs with what is found in the GCP export via BigQuery. Use the providerID that's in Kubecost for the node as the resource.name
in the following query:
The example above is auditing the GKE nodes associated with the cluster. BigQuery will return additional items such as network costs and costs associated with the node pool, however you should focus on GKE nodes only.
Performing an Audit against GCP resources (services)
Navigate to the Cloud Cost Explorer page. choose a window with a start date (Select Start) and end date (Select End) only 24 hours apart from each other, where the end date is greater than 48 hours in the past. Then, select Filter and add the filters Provider is "GCP" and Account ID is "".
Next, compare the costs of services for the same account in the GCP billing console.
Total costs aren't always precise and may have a deviation of 1-2%.
Last updated