Install and configure Grafana

In this section, you install Grafana on a SUSE Arm64 virtual machine, access its web interface, and connect it to TimescaleDB. Grafana acts as the visualization layer that queries TimescaleDB and displays time-series data in dashboards.

This setup enables real-time monitoring and analytics of sensor data stored in TimescaleDB.

    

        
        
Python Sensor Ingest Script
        |
        v
TimescaleDB (PostgreSQL)
        |
        v
Grafana Dashboard

    

Install Grafana on SUSE

Grafana is available via RPM packages and works natively on Arm64.

    

        
        
cd $HOME
sudo zypper addrepo https://rpm.grafana.com grafana
sudo zypper refresh
sudo zypper install -y grafana

    

Enable and start Grafana

    

        
        
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

    

Verify the service is running:

    

        
        
sudo systemctl status grafana-server

    

The output is similar to:

    

        
        ● grafana-server.service - Grafana instance
     Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2026-02-17 08:57:45 UTC; 1h 31min ago

        
    

Access the Grafana web UI

Open your browser and navigate to:

    

        
        
http://<VM-PUBLIC-IP>:3000

    

Default login credentials

FieldValue
Usernameadmin
Passwordadmin

You will be prompted to change the password on first login. Provide and save off a new password. Re-login if needed using the new password:

Image Alt Text:Grafana login page showing username and password fields with a Sign In button alt-txtGrafana login page

You will be presented with the main dashboard for Grafana:

Image Alt Text:Grafana main dashboard showing the Home screen with sidebar navigation including Dashboards, Explore, and Connections menu items alt-txtGrafana main dashboard

Add TimescaleDB as a data source

Step 1: Open data sources

From the Grafana sidebar, navigate to ConnectionsData sourcesAdd data source.

Step 2: Choose PostgreSQL

Select PostgreSQL (TimescaleDB is PostgreSQL-compatible).

Image Alt Text:Add PostgreSQL data source in GrafanaAdd PostgreSQL data source

Step 3: Configure connection settings

Fill the form exactly as below:

FieldValue
Host URLlocalhost:5432
Database namesensors
Usernamepostgres
Password<postgres password saved>
TLS/SSL Modedisable

Image Alt Text:PostgreSQL data source connection settings alt-txtPostgreSQL data source settings

Scroll down and select Save & Test.

You should see “Database connection OK.”

Image Alt Text:Grafana PostgreSQL data source save and test success alt-txtGrafana PostgreSQL data source save and test

What you’ve accomplished and what’s next

In this section, you:

  • Installed Grafana on SUSE Arm64 and started the service
  • Accessed the Grafana web UI and updated the default password
  • Connected Grafana to TimescaleDB as a PostgreSQL data source

In the next section, you’ll create a live dashboard to visualize real-time sensor temperature data.

Back
Next