Hero Image

Install Grafana on Arch Linux

Install Grafana on Arch Linux

Step 1 – Install Grafana

pacman -S --noconfirm grafana
systemctl enable --now grafana

Step 2 – Access and initial setup

Grafana listens on port 3000 by default:

http://your-server:3000

Default credentials: admin / admin (change immediately).

Step 3 – Add Prometheus data source

  1. Go to Configuration → Data Sources → Add data source
  2. Select Prometheus
  3. Set URL: http://localhost:9090
  4. Click Save & Test

Step 4 – Import dashboards

Popular dashboards from grafana.com:

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

Go to Dashboards → Import, enter the ID, select Prometheus data source.

Step 5 – Configure SMTP alerts

Edit /etc/grafana/grafana.ini:

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