Grafana is an open-source data visualization and observability platform. It allows you to query, visualize and monitor your data from different sources into customized dashboards and graphs. It also allows you to share your dashboard with other team members. Grafana supports a wide range of data sources, commonly referred to as databases such as Prometheus, InfluxDB, Loki, Graphite, Elasticsearch, Jaeger, and so on.
Here at LinuxAPT, we shall look into how to install Grafana on openSUSE Linux system.
For other Linux distributions, you can read our guides on how to install Grafana on Ubuntu, Mint, CentOS , and Rocky Linux .
Different ways of installing Grafana on openSUSE
- Grafana Installation from openSUSE Repositories.
- Grafana Installation Manually from its Official Website.
a. Grafana Installation from openSUSE Repositories
Grafana is available in the repositories of openSUSE. Here, you will see via the steps outlined below for the installation of Grafana on openSUSE:
1. Execute the below command to update the packages contained in the configured system repositories:
$ sudo zypper refresh
2. Now install Grafana by running the below command:
$ sudo zypper install grafana
This will display the download size of the Grafana package and the disk space that will be occupied after the installation. Then it will ask if you wish to proceed with the operation. Press y and then Enter to install Grafana on your openSUSE system.
3. Now you can verify the installation of Grafana using this command:
$ sudo grafana-server -v
The output will show the version of Grafana installed in our system.
b. Grafana Installation Manually from its Official Website
The rpm package of Grafana is also available on its official website. Here, you will see how to install Grafana manually using the package available on the Downloads page of the Grafana website. So follow the below steps for the installation of Grafana on openSUSE:
1. Start by downloading the Grafana open source or enterprise edition from its official website. We will be downloading here the latest version of Grafana 8.4.4.
To download the Grafana OSS edition, run the below command:
$ wget https://dl.grafana.com/oss/release/grafana-8.4.4-1.x86_64.rpm
To download the Grafana enterprise edition, run the command below:
$ wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.4.4-1.x86_64.rpm
2. Now run this command to install Grafana:
For Grafana OSS:
$ sudo rpm -i --nodeps grafana-8.4.4-1.x86_64.rpm
For Grafana Enterprise:
$ sudo rpm -i --nodeps grafana-enterprise-8.4.4-1.x86_64.rpm
3. Once Grafana is installed, you can verify it through the command below:
$ sudo grafana-server -v
How to Manage Grafana Services ?
Execute the command below to start the Grafana service:
$ sudo systemctl start grafana-server
To confirm the service status, run the command below:
$ sudo systemctl status grafana-server
If the service is started, you will see an Active: active (running) status in the output of this command.
The port Grafana listens for incoming connection is 3000. If you have a firewall enabled on your system and want to access Grafana from another system, you will need to open port 3000 in your firewall:
$ sudo firewall-cmd --permanent --add-port=3000/tcp
$ sudo firewall-cmd –reload
How to access Grafana Dashboard ?
To access the Grafana dashboard, point your browser to the following address:
where ip-address is your system's IP address where Grafana is running. You will be welcomed with the following login page. Use "admin" username and password. Then click Login.
Now set a new password for Grafana login and click Submit.
The next time you login, you will use "admin" as the username and password that you have set in the previous step.
After that, it will display the Grafana dashboard. Now you can start adding your data sources.
How to uninstall Grafana from openSUSE Linux system ?
If you no longer need Grafana on your system, you can remove it through the command below:
$ sudo zypper remove grafana
[Need help in fixing Linux system issues ? We can help you. ]