Back to Journal

Grafana Installation for Real Infrastructure

How I Install Grafana on Debian Server.

Install Grafana (Debian Linux)

✅ Step 1: Add Grafana APT Repository

Grafana provides an official repo with signed packages.

apt-get install -y software-properties-common
mkdir -p /etc/apt/keyrings
curl -fsSL https://apt.grafana.com/gpg.key | gpg --dearmor |  tee /etc/apt/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" |  tee /etc/apt/sources.list.d/grafana.list

✅ Step 2: Update Package Lists and Install Grafana

 apt-get update
 apt-get install grafana

✅ Step 3: Enable and Start the Grafana Service

 systemctl enable grafana-server
 systemctl start grafana-server

Check that it’s running:

 systemctl status grafana-server

✅ Step 4: Open Grafana in Your Browser

By default, Grafana runs on port 3000.

Go to:

http://your_server_ip:3000

Default login:

  • Username: admin
  • Password: admin (you’ll be prompted to change it)

If you’re using UFW:

 ufw allow 3000/tcp
 ufw reload

Grafana is now installed and accessible. 🚀