This tutorial uses Managed Service for TimescaleDB (MST) to set up your database, and to set up Grafana. You can create a free account to try it out.
You need to sign in to your MST account to create a new service to run Grafana.
Servicesview, showing any services you currently have in your project.
Create a new service.
Select your servicesection, click
TimescaleDB Grafana - Metrics dashboard:
Select your cloud service providerand
Select your cloud service regionsections, choose the provider and region that you prefer, or accept the default values.
Select your service plansection, click
Provide your service namesection, type a name for your new service. In this example, we've used
Create Serviceto go back
Servicesview while your service is created. The status indicator says
Rebuildingwhile the service is created. It is ready for you to use when the indicator is green and says
Running. This usually takes a couple of minutes, but different clouds can vary. You can click the service name in the list to see more information and make changes.
When your service is built, you can log and set up your data services.
Servicesview, click the name of your new Grafana service.
Service URIfield to open Grafana:
Now you have your Grafana service up and running, you can configure Grafana to connect to your TimescaleDB instance.
Configuration → Data Sourcesin the left menu bar.
Add Data Sourceand choose the
PostgreSQLoption in the SQL group:
Namefield, type a name for the data source. In this example, we used
Hostfield, type the Service URI for your service, add a colon at the end, and then type the port number. In this example, we used
Databasefield, type the name of your Grafana service. In this example, we used
Userfield, type the user name for your Grafana service.
Passwordfield, type the password for your Grafana service.
PostgreSQL detailssection, in the
TimescaleDBfield, toggle the switch on:
Save & Test. You can confirm your data source is working by clicking
Back, and checking that your service is listed correctly.
Found an issue on this page?Report an issue!