Dashboard#

The Grafana dashboard provides an overview of the system’s performance and metrics in real-time. It is a powerful tool for visualising data streams and monitoring the system’s health. The dashboard is accessible through a web interface and can be customised to display different metrics and data streams.

Getting Started#

To get started with the Grafana dashboard, follow these steps:

  1. Navigate to the Grafana dashboard by opening a web browser and entering the following URL:

    • Direct access: http://localhost:3000

  2. Log in to the Grafana dashboard using the credentials from your .env file (GF_SECURITY_ADMIN_USER and GF_SECURITY_ADMIN_PASSWORD).

  3. A new connection is needed to the TimescaleDB database to visualise the data streams. To do this, follow these steps:

    • Click on Connections in the left sidebar.

    • Click on Add new connection.

    • Select PostgreSQL from the list of available data sources.

    • Add new data source

    • Host url: timescaledb:5432

    • Database name: leaf

    • Authentication username: readonly_user (recommended for viewing) or postgres (for admin)

    • Authentication password: Check the .env file for READONLY_PASSWORD or PGPASSWORD

    • TLS/SSL Mode: disable

    • Click on Save & Test

    • Database Connection OK should be shown

    • Next, you can start to visualize data by building a dashboard, or by querying data in the Explore view.

Network Configuration#

Grafana operates exclusively on the frontend network for user access:

  • Frontend Network: Web interface access for users

  • Port: 3000 for the Grafana web interface

  • Resource Limits: 512MB memory, 0.5 CPU cores

  • Health Checks: Automated monitoring of Grafana service health

The Grafana service connects to TimescaleDB through the backend network, ensuring secure internal communication while providing user access through the frontend network.

  1. Go to the Dashboards section in the left sidebar to create a new dashboard.

    • Click on New > New dashboard

    • Add visualization

    • Select the data source you just created

    • The query builder can help you to create queries to fetch data from the database.

    • Save dashboard

    • You should now have a panel in the dashboard with the demo information in place.

Grafana query builder Demo dashboard Overview of the Grafana dashboard with demo data.