Skip to content

 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99

Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99

Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99

Install and Start Grafana

Video Lecture

Install and Start Grafana Install and Start Grafana Install and Start Grafana


Grafana is the analytics platform for all your metrics. Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored.

In this lecture, I will manually install Grafana on an Ubuntu 20.04 (LTS), and then start it.


In this course all my examples are executed on an unrestricted Ubuntu 20. You can get minimal Ubuntu 20 server from cloud providers. In this course I used Digital Ocean, with this link You will get $50 credit for 30 days for new registrations, where you can create and delete as many VMs as you wish up to the credit limit without any charge. The minimal $5 a month Ubuntu 18 Droplet is what I used for all the examples in the course.

Other providers are Hetzner Cloud, AWS, Azure, GCP and many more. Each solution will have there own requirements that you will need to overcome especially with giving your server network access and sufficient permissions.

You can also use a Oracle Virtual Box with an Ubuntu VM, Docker, Kubernetes, Vagrant, etc. They all have there specific complications. If you are not proficient in your chosen platform that you install your server on, you will have issues.

Keep it simple and use the Digital Ocean or Hetzners links I provided so that you can follow all the examples in the course with minimal issues.

If you use Centos, you may have more specific issues with SELINUX that you will need to overcome.

After the course, once you are familiar with Grafana, then you should install it on your chosen environment so that you know whether your problem is related to Grafana, or your chosen environment.

$50 - 30 Day FREE Credit

€20 FREE credits

With a new install of your operating system, I am using Ubuntu 20.04 LTS, we should SSH onto our new server.

On Windows we can use Putty as our SSH client. SSH means 'Secure Shell'.

Download and Install Putty, and add your new servers ip address to the Session configuration page.

Once you have connected, on Ubuntu, make sure your package lists are updated.

sudo apt update

Then ensure that the dependencies for Grafana are installed.

sudo apt-get install -y adduser libfontconfig1

Now to download the binary, and run the debian package manager.

sudo dpkg -i grafana_8.2.3_amd64.deb


Grafana is updated very regularly. To see the list of release version numbers available to download, visit

The install has now completed. You can now start the Grafana service

sudo service grafana-server start

Check the status

sudo service grafana-server status


If you reboot your server, the Grafana Service may not restart automatically.

You can set the Grafana service to auto restart after reboot by entering,

sudo systemctl enable grafana-server.service

Your Grafana server will be hosted at

http://[your Grafana server ip]:3000

The default Grafana login is

Username Password
admin admin

You have the option to update your password upon first login and then be presented with the option to add a new data source and create dashboards and users.

Start Grafana First Time

Reset Password

If you forgot your password then you can reset it using the grafana-cli command

cd /usr/share/grafana
grafana-cli admin reset-admin-password admin

Next time you log in, you can update your password to something other than admin.

More Info :