Install Grafana on Arch Linux
Step 1 – Install
pacman -S --noconfirm grafana
systemctl enable --now grafana
Step 2 – Access
http://your-server:3000 — default admin / admin (change immediately).
Step 3 – Add Prometheus data source
- Configuration → Data Sources → Add data source
- Select Prometheus, URL:
http://localhost:9090 - 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