Search code examples
cloudgcloudgrafana

Show GCloud Billing in Grafana


I'd like to have my GCloud Billing shown in Realtime in Grafana, does anybody know about related projects to do just that? My experience with Grafana itself is still quite limited, this doesn't make the task any easier.

I've read about Google Cloud Billing API, so this hints, that the task should be quite possible.

As I stated, I'm not proficient with Grafana yet If no preexisting solution can be used, I'd be really grateful about an abstract description of the steps I'd have to take, in order to complete this task



Solution

  • It will be useful to learn what others recommend and I'm confident that someone else may have take this path too, but I think your best approach is to:

    • Use Google's Billing Export to export your billing data to BigQuery (see here)
    • Configure a Grafana BigQuery plugin (see here) to access the export data
    • Build a Grafana dashboard

    If I understand correctly, the Billing API does not provide the level of detail that you require. It should, but it's limited to metadata (Billing Accounts, SKUs) etc.