Проект

Общее

Профиль

Install Grafana on Debian

Grafana is an open-source, multi-platform active monitoring and data visualization software with detailed analytics displayed on charts and graphs. It offers features such as reusable dynamic dashboards, exploring metrics with ad-hoc queries, creating alert rules for important metrics to continuously evaluate and send notifications in case of changes, and collaboration with team members through built-in sharing, among other features. In addition, it provides the capability for integration with data sources like InfluxDB, Elasticsearch, Graphite, and Prometheus. In this article, you will learn how to install Grafana on Debian 11.

Prerequisites

Deploy a fully updated Vultr Debian 11 server.
Create a non-root user with sudo access.

  1. Install Grafana

Update the system packages.

apt update

Install required system packages.

apt install gnupg2 curl software-properties-common dirmngr apt-transport-https lsb-release ca-certificates -y

Add Grafana GPG key.

curl https://packages.grafana.com/gpg.key | sudo apt-key add -

Install Grafana APT repository.

add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"

Update the system packages.

apt update

Install Grafana

apt -y install grafana

Start Grafana service.

systemctl start grafana-server

Enable Grafana service to start on system boot.

systemctl enable grafana-server

Check the service status.

systemctl status grafana-server
  1. Enable and Configure Firewall

Enable the firewall.

ufw enable

Allow ssh traffic through the firewall.

ufw allow ssh

Allow port 3000 traffic through the firewall.

ufw allow 3000/tcp
  1. Access Grafana Dashboard

To access the Grafana Web Interface, go to your browser and visit http://Server_IP:3000/. For example:

http://192.0.2.10:3000/

Conclusion

You have successfully installed Grafana on your server. You will get a log-in screen. Use admin as your username and admin as your password. You can now access the Dashboard and configure it to begin managing and analyzing your data.
More Information

To learn more about Grafana, go to the official documentation page.