<p>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.</p>
<h5>Uploading a JWT file</h5>
<p>
<p>
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
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.
visualize data from multiple GCP Projects then you need to create one datasource per GCP Project.
</p>
</p>
<p>
<p>
The <strong>Monitoring Viewer</strong> role provides all the permissions that Grafana needs.
The <strong>Monitoring Viewer</strong> role provides all the permissions that Grafana needs. The following API
needs to be enabled on GCP for the datasource to work: <aclass="external-link"target="_blank"href="https://console.cloud.google.com/apis/library/monitoring.googleapis.com">Monitoring
API</a>
</p>
</p>
<h5>GCE Default Service Account</h5>
<p>
<p>
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
<ul>
automatically retrieve default project id and authentication token from the metadata server. In order for this to