---
title: "GCP metrics - Grafana Alloy | Grafana Labs"
description: "Collect GCP Cloud Monitoring metrics using Grafana Alloy."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## How it works

> **Note**: Unlike AWS and Azure, GCP requires deploying Grafana Alloy. There is no serverless “scrape job” option.

[GCP metrics Alloy architecture: Alloy pulls from Cloud Monitoring across projects, pushes to Grafana Cloud Mimir](cp-olly-viz-gcp-metrics-alloy-light.svg "GCP metrics Alloy architecture: Alloy pulls from Cloud Monitoring across projects, pushes to Grafana Cloud Mimir")

**Complexity:** Moderate | **Infrastructure:** GCE or GKE | **Latency:** Configurable

## Authentication options

| Authentication                 | Description                         |
|--------------------------------|-------------------------------------|
| **Service account (JSON key)** | Simple setup, requires key rotation |
| **Workload identity**          | No keys to manage, more secure      |

## Trade-offs

| Pros                         | Cons                       |
|------------------------------|----------------------------|
| Multi-project from one agent | Deploy and manage Alloy    |
| Workload identity option     | Infrastructure to maintain |
| Full processing pipeline     |                            |
| Converts to PromQL           |                            |

## Documentation

View the full documentation. *Learning path coming soon!*

[GCP metrics](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/gcp/config-gcp-metrics/)
