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
#Grafana #Installation #Ubuntu #Tutorial #DevOps
Share:
Free Consultation

Need help implementing this?

I help enterprises design AI infrastructure, Kubernetes platforms, and automation strategies. Free 30-minute discovery call.

Want to operate this yourself, in production?

Take the free AI Platform Engineer Readiness Scorecard to see which skills transfer โ€” then build a production-shaped AI platform in the 4-week Bootcamp.

Take the Scorecard โ†’
Luca Berton โ€” The Production AI Expert, Docker Captain

Luca Berton

The Production AI Expert ยท Docker Captain ยท KubeCon Speaker

15+ years in enterprise infrastructure. Author of 8 technical books, creator of Ansible Pilot (1M+ YouTube views, 648K site users). Former Red Hat engineer. Speaker at KubeCon EU 2026 and Red Hat Summit 2026.

Free 30-min Production AI consultation

Book Now