From the course: Prometheus and Grafana: Visualizing Application Performance

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Installing and configure the Grafana provider

Installing and configure the Grafana provider

- [Instructor] Before we create dashboards with Terraform, we'll need to install the Terraform provider for Grafana. We will do that in this video. Remember that in the previous video, we have installed Terraform and set up a Grafana Cloud account. In our examples, we'll create dashboards on both Grafana Cloud and Grafana Open Source, which is the local Grafana instance running in Docker. Let's start with Grafana Cloud. To interact with Grafana Cloud, the first step is to obtain a Grafana Cloud token. We can get this token by navigating to the Grafana Cloud Organization page and then clicking on Access Policies. We then create an access policy and select the relevant resources we want our token to have access to. We call the policy demo-policy and select the relevant scopes. We then click on Create. After the access policy is ready, we can create a token for this policy. We click on the Add Token button. Name it demo token. We make sure to set a proper expiry date. Next, we can copy…

Contents