Plugins 〉GoogleStackdriver


Developer

Grafana Labs

Sign up to receive occasional product news and updates:


Grafana Cloud
Grafana Cloud
  • Grafana, of course
  • 10k series Prometheus metrics
  • 50 GB logs
  • 50 GB traces
  • 2,232 app o11y host hours
  • ...and more
Create free account

No credit card needed, ever.


Data Source
grafana

GoogleStackdriver

  • Overview
  • Installation
  • Related content

Google Stackdriver Datasource Plugin for Grafana

Setup

To use this plugin, you need to get client ID which allow to call Google Stackdriver API.

Please create OAuth 2.0 client ID at https://console.developers.google.com/apis/credentials.

After get the client ID, set the ID to datasource config.

At first time, you need to accept to open this popup window, and accept to use API.

Query editor

Please fill parameter for projects.timeSeries.list method.

You don't need to add projects/ prefix for Project ID field.

Templating

Query variable

NameDescription
metrics(project_id, filter expression)Returns a list of metrics matching the filter expression.
label_values(project_id, path to label name, filter expression)Returns a list of label values matching the filter expression and the path to label name.
groups(project_id)Returns a list of groups.
group_members(project_id, group_id, path to label name, filter expression)Returns a list of group members matching the filter expression and the path to label name.

The project_id is optional.

Please specify path to label name from top of TimeSeries object. For example, if you want to get instance name, set metric.labels.instance_name to path to label name.

Changelog

v1.0.0
  • Initial release

Installing GoogleStackdriver on Grafana Cloud:

For more information, visit the docs on plugin installation.

Installing on a local Grafana:

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

1. Install the Data Source

Use the grafana-cli tool to install GoogleStackdriver from the commandline:

grafana-cli plugins install 

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

2. Configure the Data Source

Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.

Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.

To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.