2

Install Grafana on Debian 11

 2 years ago
source link: https://www.vultr.com/docs/install-grafana-on-debian-11
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
<?xml encoding="utf-8" ??>

Introduction

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

1. Install Grafana

Update the system packages.

$ sudo apt update

Install required system packages.

$ sudo 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.

$ sudo apt update

Install Grafana

$ sudo 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

2. Enable and Configure Firewall

Enable the firewall.

$ sudo ufw enable

Allow ssh traffic through the firewall.

$ sudo ufw allow ssh

Allow port 3000 traffic through the firewall.

$ sudo ufw allow 3000/tcp

3. 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.

Want to contribute?

You could earn up to $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK