An open API service indexing awesome lists of open source software.

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

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.