---
title: "Grafana template"
description: "Dashboards and charts with its own PostgreSQL database."
path: "/templates/grafana/"
---

# Grafana

Dashboards and charts with its own PostgreSQL database.

One command creates the Grafana app and a PostgreSQL database, then connects them. Grafana data stays on a disk. The app gets a public address.

## Install

Run it in the environment you want. The command waits until the public address responds.

```
dflow templates:install grafana
```

One app, one PostgreSQL database, and a disk.

## Application

- Name: grafana
- Image: grafana/grafana:13.3.2
- Port: 3000
- Replicas: 1
- Memory: 1024 Mi
- Disk: 1Gi at /var/lib/grafana
- Address: Public route

## Database

- Name: grafana-db
- Engine: PostgreSQL
- Database: grafana
- Storage: 1Gi

## How they connect

- The database host, port, name, user, and password come from grafana-db.
- The admin user is admin.
- dFlow generates GF_SECURITY_ADMIN_PASSWORD and GF_SECURITY_SECRET_KEY.
- Usage reporting and update checks are off.