Skip to content

cloudforet-io/plugin-mzc-google-cost-datasource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-mzc-google-cost-datasource

Plugin for collecting GCP Billing data


Secret Data

Schema

  • project_id (str): project_id is a unique identifier for a project and is used only within the GCP console.
  • private_key (str): When you add a GCP cloud account, you use a private key for a GCP service account
  • token_uri (str): The OAuth 2.0 authorization server’s token endpoint URI.
  • client_email (str): A service account's credentials include a generated email address
  • bucket (str): Bucket of GCS (e.g. spaceone-billing-data)
  • organization(str): Specifies a sub-specific organization within the bucket
project_id, private_key, token_uri and client_email can be obtained from api_key issued when creating service_account.  


Example 1

{
    "project_id": "<project_id>",
    "private_key": "*****",
    "client_email": "<service_account_name>@<project_id>.iam.gserviceaccount.com",
    "token_uri": "https://oauth2.googleapis.com/token",
    "bucket": "spaceone-billing-data",
    "organization": "*"
}
  • Collect all cost data under spaceone-billing-data.

Example 2

{
    "project_id": "<project_id>",
    "private_key": "*****",
    "client_email": "<service_account_name>@<project_id>.iam.gserviceaccount.com",
    "token_uri": "https://oauth2.googleapis.com/token",
    "bucket": "spaceone-billing-data",
    "organization": "<organization name_1 (spaceone domain name)>"
}
  • Cost data is collected for a specific organization of the spaceone-billing-data bucket.

Options

Currently, not required.