In this guide, we are going to learn how to install and set up Grafana in Linux.
Grafana is a multi-platform open source analytics and interactive visualization web application. It provides charts, graphs, and alerts for the web when connected to supported data sources.
Installing grafana in Debian or Ubuntu
To install the latest OSS release in ubuntu, first you need to add grafana osss gpg key, use this command:
|
|
Add this repository for stable releases:
|
|
Add this repository if you want beta releases:
|
|
After you add the repository, update packaged and install grafana:
|
|
Install Grafana on RPM-based Linux (CentOS, Fedora, OpenSuse, Red Hat)
Add a new file to your YUM repo using the method of your choice. The command below uses nano.
|
|
For OSS releases, add this content to the repo file:
|
|
Install Grafana with one of the following commands:
|
|
Start the server with systemd
This starts the grafana-server process as the grafana user, which was created during the package installation.
To start the service and verify that the service has started:
|
|
To configure the Grafana server to start on boot:
|
|