In a Cloudfore Version 1.12.x, there is a concept of managed plugins which are already registered by code.
But plugin-google-billing-cost-datasource is not included. To enable Google Billing in Cloudforet, we need following step.
To enable Google billing plugin, there are two prerequisite
- Enable Local Repository
- Register google billing plugin
1. Enable Local Repository
spacectl exec register repository.Repository -p name="My Private Repo" -p repository_type=local
2. Register Google Billing Plugin
- In a spacectl POD, save gcp-billing.yaml
---
plugin_id: plugin-google-billing-cost-datasource
name: Google Billing Data Source
image: spaceone/plugin-google-billing-cost-datasource
capability:
supported_schema:
- google-secret-oauth2-credentials
labels: [ ]
provider: google_cloud
resource_type: cost_analysis.DataSource
tags:
description: Google Cloud Billing Data Source
icon: https://spaceone-custom-assets.s3.ap-northeast-2.amazonaws.com/console-assets/icons/google_cloud.svg
long_description: Google Cloud Billing is a service that provides cost data for
resources being used by subscriptions. This plugin can use the Cost Management
API to collect billing data on all subscriptions in the billing account.
Register Plugin
spacectl exec register repository.Plugin -f gcp-billing.yaml
Top comments (4)
@choonho
Executing above plugin yaml throwing below error.
I have followed below steps and got my google billing plugin enabled with data source.
Register Google billing plugin
Verify plugin
Register billing data source
Great. Thank you for update.
For Docker image registry, "spaceone" is not upgrading new plugin images. "spaceone" registry is for old user who does not want to upgrade cloudforet.
I recommend Docker image registry from "spaceone" to "cloudforet"
So
Sure will update. Thanks !
Enable BigQuery for Google billing
cloud.google.com/billing/docs/how-...