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®.
-
Enter a name for your service.
importantYou cannot change the name after you create the service.
You can fork the service with a new name instead.
-
Optional: Add tags.
-
Select the cloud provider, region, and plan.
noteAvailable plans and pricing for the same service can vary between cloud providers and regions.
-
Optional: Add disk storage.
-
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 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.tf
and add the following:Loading...
-
Create a file named
service.tf
and add the following:Loading...
-
Create a file named
variables.tf
and add the following:Loading...
-
Create the
terraform.tfvars
file and add the values for your token and project name.
To apply your Terraform configuration:
-
Initialize Terraform by running:
terraform init
The 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.