https://github.com/cloudforet-io/plugin-google-billing-cost-datasource
https://github.com/cloudforet-io/plugin-google-billing-cost-datasource
cost-analysis data-source plugin
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudforet-io/plugin-google-billing-cost-datasource
- Owner: cloudforet-io
- License: apache-2.0
- Created: 2023-07-20T08:34:44.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T08:35:18.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T07:04:21.081Z (about 1 year ago)
- Topics: cost-analysis, data-source, plugin
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plugin-google-billing-cost-datasource
Plugin for collecting GCP Billing data from BigQuery service
---
## 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
* billing_dataset (str)(**optional**): specifies the name of the dataset to collect billing data from. If not present, `spaceone_billing_data` is used.
* target_billing_account_id(str)(**optional**): specifies the billing_account_id to be collected. If not present, use billing_account_id linked to project_id in secret_data.
* target_project_id (list): specify the project_id to be collected by filtering the Cloud Billing data loaded into BigQuery by project_id. If `*` is specified, it is collected regardless of project_id.
```
project_id, private_key, token_uri and client_email can be obtained from api_key issued when creating service_account.
```
*Example*
```python
{
"project_id": "",
"private_key": "*****",
"client_email": "@.iam.gserviceaccount.com",
"token_uri": "https://oauth2.googleapis.com/token",
"billing_dataset": "spaceone_billing_data", #optional
"target_billing_account_id": "{BILLING_ACCOUNT_ID}", #optional
"target_project_id": ["*"]
}
```
## Options
Currently, not required.