The Webcoast
Back to Grafana

Setting up Grafana

A standalone Grafana instance, useful beyond TeslaMate's own bundled copy for anything else worth graphing.

  1. 1

    Run the container

    Dashboards, users, and data source connections all live in the mounted data volume.

    services:
      grafana:
        image: grafana/grafana:latest
        container_name: grafana
        restart: unless-stopped
        ports:
          - "3000:3000"
        volumes:
          - ./data:/var/lib/grafana
  2. 2

    Log in and set a real password

    The default login is admin / admin, Grafana forces a password change immediately on first login.

  3. 3

    Add a data source

    Under Connections → Data sources, point it at whatever's producing the numbers worth graphing, a Postgres database (like TeslaMate's own, if not using its bundled Grafana), Prometheus, or several others.

  4. 4

    Build or import a dashboard

    Dashboards can be built panel by panel, or imported from Grafana's public library by ID for common data sources, often faster than starting from a blank page.

Further reading