For those who don’t know about Grafana, is open-source software that provides monitoring and analytics across network systems and runs on all major operating systems, including Ubuntu. Grafana is a complete enterprise-grade server and log monitoring system which brings together data from diverse systems and databases into a single platform. This post will show you how to perform a basic configuration after installing this open-source project backed by a vibrant community. You’ll also be able to log on to the Grafana server once installed. For more about Grafana, please visit its homepage. When you’re ready, continue below with the steps:
Install Grafana Package
To install Grafana, you can go and download its .deb package file and install it locally on the Ubuntu server. However, if you want to quickly and easily upgrade to newer versions of the software, you will want to add its official APT repository to Ubuntu. To add its APT repository to Ubuntu, run the commands below to import its repository GPG key. After importing the repository key above, run the commands below to add its repository. For its stable version, run the commands below: For its beta version, run the commands below. However, the beta version is not recommended for production so you’ll probably use it in a non-production environment. After adding the repository file above, run the commands below to update the APT package list and install Grafana packages: Once installed, the commands below can be used to stop, start and enable Grafana to automatically startup when the server boots up.
Configure Grafana Service
Grafana default configuration files are located under the/etc/default/grafana-server/ directory. The main configuration file is /etc/grafana/grafana.ini and has a basic setup configured in it. You’ll need to make some changes to suit your environment. To validate if Grafana is installed, run the commands below: You should see Grafana system status details as shown below:
Access Grafana Web Portal
Now that the Grafana server is installed and access is allowed from the local machine, use the address below to access the Grafana portal. The initial username and password are admin and admin. You’ll be prompted immediately upon entering to change the password. enter and confirm and new password and continue. Enjoy! That’s it! Congratulations! You have learned how to install the Grafana monitoring and analytics platform on Ubuntu 16.04 | 18.04 LTS servers. You may also like the post below: