Skip to main content
๐ŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy โ€” plus the companion book on Leanpub & Amazon. Start Learning
Install Grafana on Ubuntu
DevOps

Install Grafana on Ubuntu (Step-by-Step 2026)

Step-by-step guide to install Grafana on Ubuntu. Copy-paste commands, verify installation, and configure for production.

LB
Luca Berton
ยท 1 min read

Here is how to install Grafana on Ubuntu in 2026. Tested and verified.

# Install prerequisites
sudo apt-get install -y apt-transport-https software-properties-common wget

# Add Grafana GPG key and repository
sudo mkdir -p /etc/apt/keyrings/
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list

# Install Grafana
sudo apt-get update
sudo apt-get install -y grafana

# Start and enable
sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

Access Grafana

Open http://localhost:3000 in your browser.

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

Method 2: Docker

docker run -d --name grafana -p 3000:3000 grafana/grafana-oss:latest

Method 3: Helm (Kubernetes)

helm repo add grafana https://grafana.github.io/helm-charts
helm install grafana grafana/grafana --namespace monitoring --create-namespace

Free 30-min AI & Cloud consultation

Book Now