Section 4 · Query with data sources

Query GCP Cloud Monitoring with a Grafana data source.

Estimated time: 1 min

How it works

GCP Cloud Monitoring data source: Query GCP metrics directly from Grafana

Authenticate with a service account JSON key, or use workload identity when you run Grafana in GKE. The plugin supports PromQL, Monitoring Query Language (MQL), and a visual query builder. For multi-project setups, grant your service account permissions across the projects and query them all from one Grafana instance.

What you get

  • All GCP service metrics
  • PromQL, MQL, and visual builder query modes
  • Alignment and aggregation
  • Template variables
  • Label filtering

Considerations

  • API latency
  • Per-project authentication, typically
  • Alert evaluation calls the API

Authentication options

Service account JSON key or workload identity

Documentation

View the Cloud Monitoring data source documentation.