Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Install Grafana on Debian 12

Install Grafana on Debian 12

Step 1 – Install

wget -q -O - https://packages.grafana.com/gpg.key | gpg --dearmor | tee /usr/share/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/grafana.gpg] https://packages.grafana.com/oss/deb stable main" | tee /etc/apt/sources.list.d/grafana.list
apt update && apt install -y grafana
systemctl enable --now grafana-server

Step 2 – Access

http://your-server:3000 — default admin / admin (change immediately).

Step 3 – Add Prometheus data source

  1. Configuration → Data Sources → Add data source
  2. Select Prometheus, URL: http://localhost:9090
  3. Save & Test

Step 4 – Import dashboards

Dashboard ID
Node Exporter Full 1860
Nginx 9614
MySQL Overview 7362
PostgreSQL Statistics 9628

Dashboards → Import → enter ID → select Prometheus source.

Step 5 – SMTP alerts (/etc/grafana/grafana.ini)

[smtp]
enabled      = true
host         = smtp.example.com:587
user         = [email protected]
password     = SmtpPass!
from_address = [email protected]
systemctl restart grafana-server