From 5b9cd830d284746412075a277c23ae8c5b5f7756 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 15 Oct 2018 16:31:33 +0200 Subject: [PATCH] stackdriver: improve config page info box documentation --- .../stackdriver/partials/config.html | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/partials/config.html b/public/app/plugins/datasource/stackdriver/partials/config.html index 31497d3e8e9..da8c9896348 100644 --- a/public/app/plugins/datasource/stackdriver/partials/config.html +++ b/public/app/plugins/datasource/stackdriver/partials/config.html @@ -1,26 +1,34 @@
-
GCP Service Account
+

Stackdriver Authentication

+

There are two ways to authenticate the Stackdriver plugin - either by uploading a Google JWT file, or by + automatically retrieving credentials from Google metadata server. The latter option is only available + when running Grafana on GCE virtual machine.

+ +
Uploading a JWT file

- To authenticate with the Stackdriver API, you need to create a Google Cloud Platform (GCP) Service Account for + First you need to create a Google Cloud Platform (GCP) Service Account for the Project you want to show data for. A Grafana datasource integrates with one GCP Project. If you want to visualize data from multiple GCP Projects then you need to create one datasource per GCP Project.

- The Monitoring Viewer role provides all the permissions that Grafana needs. + The Monitoring Viewer role provides all the permissions that Grafana needs. The following API + needs to be enabled on GCP for the datasource to work: Monitoring + API

+ +
GCE Default Service Account

- The following APIs need to be enabled on GCP for the datasource to work: -

+ If Grafana is running on a Google Compute Engine (GCE) virtual machine, it is possible for Grafana to + automatically retrieve default project id and authentication token from the metadata server. In order for this to + work, you need to make sure that you have a service account that is setup as default account for the virtual + machine and that the service account has been given read access to the Stackdriver Monitoring API.

+

Detailed instructions on how to create a Service Account can be found in - the documentation.

+ the documentation. +