Installing Grafana for use with TimescaleDB

    You will need to setup an instance of TimescaleDB.

    The easiest option for installing Grafana is to use Timescale Cloud. Alternatively, you can setup your own instance of Grafana.

    Installing Grafana with Timescale Cloud

    If you’re using Timescale Cloud, you can setup a Grafana Metrics Dashboard from the Create Service flow.

    Installing your own managed instance of Grafana

    Next, you need to configure Grafana to connect to your TimescaleDB instance.

    Start by selecting ‘Add Data Source’ and choosing the ‘PostgreSQL’ option in the SQL group:

    Adding Postgres to Grafana

    In the configuration screen, supply the , , , and for your TimescaleDB instance.

    Since we will be connecting to a TimescaleDB instance for this tutorial, we will also want to check the option for ‘TimescaleDB’ in the ‘PostgreSQL details’ section of the PostgreSQL configuration screen.

    You should also change the ‘Name’ of the database to something descriptive. This is optional, but will inform others who use your Grafana dashboard what this data source contains.

    Once done, click ‘Save & Test’. You should receive confirmation that your database connection is working.