Get started with Aiven for Grafana®
To start using Aiven for Grafana®, the first step is to create a service. You can do this in the Aiven Console or with the Aiven CLI.
Create an Aiven for Grafana service
- Console
- Terraform
-
In your project, click Services.
-
Click Create service.
-
Select Grafana®.
-
Select a Cloud.
-
Select a Plan.
noteThe plans available can vary between cloud providers and regions for the same service.
-
In the Service details, enter a name for your service.
-
Optional: Add service tags.
-
In the Service summary, click Create service.
The status of the service is Rebuilding during its creation. When the status is Running, you can start using the service. This typically takes a couple of minutes and can vary between cloud providers and regions.
The following example files create a Grafana service in your Aiven project. They are part of the Grafana example in the Aiven Terraform Provider repository on GitHub.
-
Create a file named
provider.tfand add the following:Loading... -
Create a file named
service.tfand add the following:Loading... -
Create a file named
variables.tfand add the following:Loading... -
Create the
terraform.tfvarsfile and add the values for your token and project name.
To apply your Terraform configuration:
-
Initialize Terraform by running:
terraform initThe output is similar to the following:
Initializing the backend...
Initializing provider plugins...
- Finding aiven/aiven versions matching ">= 4.0.0, < 5.0.0"...
- Installing aiven/aiven v4.9.2...
- Installed aiven/aiven v4.9.2
...
Terraform has been successfully initialized!
... -
To create an execution plan and preview the changes, run:
terraform plan -
To deploy your changes, run:
terraform apply --auto-approve
Log in to Grafana
After starting the Aiven for Grafana service, you can access Grafana:
- From the Aiven Console, access your Aiven for Grafana service.
- In the service Overview screen, copy or select the Service URI to launch the Grafana login page in a browser.
- On the login page, enter or copy and paste the User and Password details from the Connection information section, and select Log in.
You can begin visualizing your data sources using the default dashboards or create your own.