Grafana is a multi-stage open source investigation and intuitive representation programming accessible since 2014. It gives outlines, diagrams, and cautions for the web when associated with upheld information sources. It is expandable through a module framework.
In this post, We will install Grafana on ubuntu 16.04 | 18.04 | 20.04
Step 1: Update System
You need to update the current ubuntu repository by using the following command.
$ sudo apt-get update
Step 2: Add Grafana Repository
You need to add the grafana repository by using the command.
$ sudo wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
$ sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
Step 3: Install Grafana
You need to update the repository and after that you can install the Grafana packages.
$ sudo apt-get update
$ sudo apt install grafana -y
Step 4: Controlling Deamon
To Start the Grafana service, Use the following command.
$ sudo systemctl start grafana-server
To stop the Grafana service, Use the following command.
$ sudo systemctl stop grafana-server
On boot enable Grafana service, Use the following command.
$ sudo systemctl enable grafana-server
On boot disable Grafana service , Use the following command.
$ sudo systemctl disable grafana-server
Step 5: Access Grafana Admin Panal
You need to open the browser with given url:
http://localhost:3000
By default Grafana using 3000 port, Click here to visit official website of Grafana.