Schedule and manage the jobs that download Google Cloud billing data
Billing Download jobs download, organize, and store billing data for your payer account on the schedule that you specify. The system analyzes the data to generate reports and to make recommendations for changes in your cloud operations that can lead to cost savings.
始める前に
- Ensure that your system has 8 GB Clotho memory and 4 GB mid memory.
- You must set up required roles to perform billing download. For more information, see Setup roles for Google Cloud billing download.
- Enable cost allocation for each Kubernetes cluster before you run a Google Cloud Billing download job to view the Kubernetes spend. For more information, see Enable cost allocation in Google Cloud for Kubernetes cluster.
- On the Google Cloud Console: Google Cloud administrator.
- Cloud Cost Management: insights_admin [sn_clin_core.insights_admin] or admin.
このタスクについて
During the billing download, all the resources are pulled into the system. GCP SQL databases are placed in the [cmdb_ci] table.
If you have installed the Cloud Cost Management Infra Stack application, then toward the end of a job, significant database update, and insert operations are performed based on your Cloud CIs and spend data volume. Thus, any other job that impacts database performance shouldn't be run during this time alongside Cloud Cost Management jobs.
- A Billing Download job creates and updates the billing node data table [sn_cld_intg_gcp_cost_usage] with billing line items from the BigQuery dataset.注:Charges associated with BigQuery usage are based on billing plans.
- The CI placement process associates downloaded cost and usage data with the appropriate CIs in the CMDB. See Add a Google Cloud CI class type to ensure accurate billing data for details.
- Billing Download jobs can’t be in the Global scope.
- You can create only one Billing Download job for each account.
- To ensure accurate reporting and recommendations for some providers, make sure that the Discovery application runs before the scheduled execution.
- Each successful execution of a Billing Download job triggers the Budget Forecast, Business hours, Reservation/saving plans, Rightsizing, and Unused resources jobs to analyze spend and usage data and to update the actionable recommendations in reports.
- Each successful execution of a Billing Download job updates tagged costs. Recent updates that you make to tag category definitions (for example, adding a tag name to a category) might not be reflected in cost reports. You should map tag values to tag categories after the first run because populating tag values needs at least one successful run. You can apply the latest tag category definitions to cost data without running a Billing Download job, by selecting and then selecting Re-Apply Categories.
- When the scheduled time arrives, job execution happens in multiple stages (for example, connect to the provider, download the data, perform the post-import sort, and so on). The system logs status and results on the Price Sheet Executions page for each stage.
- Cost categories are updated with new cost tag values each time
billing data is downloaded. (You define cost tags in the
provider portal to associate usage data with a particular
business entity. For example, the Cost Center category might
include the tags
development,testing, andQA. The User category might include the names of your users.) - Billing data is downloaded in reverse chronological order by month. For example, if the range is from March to June, data for June is downloaded first.
- To ensure meaningful results for the first billing data download, the app downloads data for at least 30 days. For example, if today is June 10 and you specify June for download, the system downloads data for both May and June to ensure at least 30 days of data for analysis.
- You can download data only for the most recent twelve months.
手順
タスクの結果
- While downloading the data, Cloud Cost Management updates the billing node data table [sn_cld_intg_<provider>_cost_usage] with the CIs in the CMDB that correspond to each resource ID. If a CI doesn’t exist, the system generates a placeholder CI. On subsequent discovery, the system reconciles the placeholder CI.
- Cloud Cost Management generates a log entry for each stage of the execution on the Billing Download Executions page.