K-Phoen / grabana

User-friendly Go library for building Grafana dashboards
MIT License
680 stars 69 forks source link

Add a new cloudmonitoring target #259

Open jlevesy opened 5 months ago

jlevesy commented 5 months ago

What does this PR do?

This PR adds a new target called cloudmonitoring which implements a way of defining Google Cloud Metrics targets supported by Grafana 10. I did not reuse the stackdriver name, because it isn't used anymore on the actual Google Product.

It aims to support the 4 different ways of making queries to CloudMonitoring:

Very much a work in progress as I type this message. But just to let you know how I'm planing to deal with it.

Tested this branch against Grafana v10.2.6 (e5ffb9ba46)

Needs https://github.com/K-Phoen/sdk/pull/29 to land before.

TODO list: