https://github.com/cloudforet-io/plugin-mzc-google-cost-datasource
https://github.com/cloudforet-io/plugin-mzc-google-cost-datasource
cost-analysis data-source plugin
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudforet-io/plugin-mzc-google-cost-datasource
- Owner: cloudforet-io
- License: apache-2.0
- Created: 2023-07-03T07:31:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T16:37:31.000Z (about 2 years ago)
- Last Synced: 2025-02-04T11:52:06.473Z (about 1 year ago)
- Topics: cost-analysis, data-source, plugin
- Language: Python
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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*
```python
{
"project_id": "",
"private_key": "*****",
"client_email": "@.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*
```python
{
"project_id": "",
"private_key": "*****",
"client_email": "@.iam.gserviceaccount.com",
"token_uri": "https://oauth2.googleapis.com/token",
"bucket": "spaceone-billing-data",
"organization": ""
}
```
- Cost data is collected for a specific organization of the `spaceone-billing-data` bucket.
## Options
Currently, not required.