Menu
Grafana Cloud RSS

Google Cloud Platform

Google Cloud Platform (GCP) enables you to monitor GCP metrics and view GCP logs.

GCP Metrics

Grafana Alloy sends metrics from Cloud Monitoring to Grafana Cloud. Alloy uses its embedded stackdriver-exporter to export metrics from Cloud Monitoring and then send them to Grafana Cloud.

How GCP Metrics works
How GCP Metrics works

To get GCP Metrics running, refer to Configure GCP Metrics.

Preconfigured dashboards

You can use the filters on any dashboard to refine your data. Filters are appropriate for each dashboard, and may include:

  • Data source
  • Job
  • Project ID
  • Instance
  • Database ID
  • Bucket name
  • Country
  • Backend target
  • Subscription ID
Filtering a dashboard to refine data by subscription ID
Filtering a dashboard to refine data by subscription ID

Additionally, use the time range selector to change time period of your data.

Changing the time range selector for a dashboard to the last two days
Changing the time range selector for a dashboard to the last two days

Go to a GCP dashboard

  1. To see any metrics dashboard, configure GCP metrics.
  2. In the main menu, click GCP to open the Services tab.
    List of available services on **Services** tab
    List of available services on Services tab
  3. Locate the specific service in the list, and click the dashboard in the View your data column of the table.

The following dashboards are available out of the box.

GCP Blob Storage

The GCP Blob Storage dashboard shows the following metrics:

  • Number of storage buckets
  • Number of objects stored
  • Top five buckets with total bytes stored
  • API requests by type
  • API error rate by type
  • Network traffic sent/recieved
Storage dashboard showing metrics for the past two days
Storage dashboard showing metrics for the past two days

GCP Cloud SQL

SQL Database dashboard showing metrics for the past two days
SQL Database dashboard showing metrics for the past two days

GCP Logs

Grafana Alloy sends logs from Cloud Monitoring to Grafana Cloud. Logs are sent from Cloud Monitoring through a log sink to a Pub/Sub topic. The GCP SDK is used for pulling and receiving messages from Pub/Sub. The service account enables Alloy to read the logs from the Pub/Sub subscription. Alloy then sends the logs to Grafana Cloud.

How GCP Logs works
How GCP Logs works

To get GCP Logs running, refer to Configure GCP Logs.

GCP Logs view

GCP logs for the past hour
GCP logs for the past hour