How to Install Grafana on Ubuntu
What is Grafana?
Requirements
- Fresh Installation of Ubuntu 20.04 Server
- Root User Credentials
- Account in Grafana cloud(Optional)
- Nginx(Optional, required when using reverse proxy)
- HAProxy(Optional, required when using reverse proxy)
Steps to Install Grafana on Ubuntu 20.04 Server
Step 1: Update and Upgrade Repositories
sudo apt update && upgrade -y
Step 2: Enable root login
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
Step 3: Restart ssh
sudo systemctl restart ssh
Step 4: Set password for root login, by default root password is not set
sudo passwd
Step 5: Login using root credentials
ssh root@ip-address
Step 6: Install adduser and libfontconfig1
apt install adduser libfontconfig -y
Step 7: Download Grafana deb file from grafana offical website
wget https://dl.grafana.com/enterprise/release/grafana-enterprise_9.2.4_amd64.deb
Step 8: Install Grafana using dpkg
dpkg -i grafana-enterprise_9.2.4_amd64.deb
Step 9: Restart Grafana service
- After Installation of grafana service check the status of Grafana server as
systemctl status grafana-server or service grafana-server status
![]() |
Grafan service status |
- Intially grafana server will inactive, so we need to start the grafana server
systemctl start grafana-server
- After starting the grafana server check the status again.
systemctl status grafana-server or service grafana-server status
![]() |
Grafan service status |
Step 10: Login into Grafana using GUI
Use the system ip-address to login into Grafana as
10.0.14.240:3000
![]() |
Grafana Login GUI |
username and Password: admin & admin
Note: We can can change the password after login into Grafana.
![]() |
Grafana DashBoard |
Reference:
https://grafana.com/grafana/download/9.2.4?edition=enterprise&pg=get&plcmt=selfmanaged-box1-cta1
https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/
0 Comments