Grafana Service Account Token
Step 1 - generate Grafana Service Account Token
Make sure you have groundcover cli installed and version is 0.10.13+
groundcover version
Generate service account token
groundcover auth generate-service-account-token
Service Account Token are only accessible once, so make sure you keep them somewhere safe, running the command again will generate a new service account token
Only groundcover tenant admins can generate Service Account Tokens
Step 2 - Use Grafana Terraform provider
make sure you have Terraform installed
Use the official Grafana Terraform provider with the following attributes
terraform {
required_providers {
grafana = {
source = "grafana/grafana"
}
}
}
provider "grafana" {
url = "https://app.groundcover.com/grafana"
auth = "{service account token}"
}
Continue to create Alerts and Dashboards in Grafana, see: Build alerts & dashboards with Grafana Terraform provider.
You can read more about what you can achieve with the Grafana Terraform provider in the official docs
Last updated