GCP Billing custom metrics plugin for mackerel.io agent.
The billing data is in BigQuery. And the following schema is required.
Name | Type |
---|---|
cost | FLOAT |
start_time | TIMESTAMP |
- Recommend to use export billing data to BigQuery.
And Application Default Credentials(JSON key) is required.
[plugin.metrics.gcp-billing]
command = "env GOOGLE_APPLICATION_CREDENTIALS=/path/to/JSONKEY.json /path/to/mackerel-plugin-gcp-billing -d DATASET -p PROJECTID -t TABLE"
Application Options:
-p, --projectid= Project ID (require)
-d, --dataset= Dataset (require)
-t, --table= Table (require)
Help Options:
-h, --help Show this help message