Integrate Google Cloud Monitoring Grafana Datasource
Last updated
Last updated
To set up the Google Cloud Monitoring datasource in Grafana, you need to configure the necessary credentials and permissions. This involves creating a service account in GCP with appropriate permissions to access metrics and data.
For more information see Grafana's Google Cloud Monitoring Datasource documentation
Grafana's Google Cloud Monitoring datasource requires a service account with the Monitoring Viewer
role.
Create a new service account in the GCP console.
Choose a unique service name, such as groundcover-monitoring
Choose JSON
as the key type
Assign the Monitoring Viewer
role
After provisioning the service account above, you will need to create a key to allow the Grafana datasource to authenticate with it.
Access the newly provisioned service account through the Service Accounts
page
Click on the Keys
tab and choose Add key
-> Create new key
Choose the JSON
key type
Click Create
The key will be downloaded as a local .json
file. You will need this file for the next step.
Self provisioning of data sources is only available as part of the enterprise plan. If you are on the team plan, contact the groundcover's team to provision the new datasource.
The following steps require a user with admin privileges in the platform
In the Grafana Data sources
page, add a new Google Cloud Monitoring
datasource.
Name: Select a meaningful name to your choosing.
Authentication:
Authentication type: Select Google JWT File
JWT token: Either upload the file created previously or paste its contents directly using Paste JWT token
Click Save & test
to verify the data source correctness.
After provisioning you can now use new Google Cloud Monitoring datasource in groundcover's Grafana. Explore, built dashboards and create alerts based on any metric availalbe in the GCP monitoring stack.