{"id":8550,"date":"2021-04-03T10:19:00","date_gmt":"2021-04-03T07:19:00","guid":{"rendered":"https:\/\/kifarunix.com\/?p=8550"},"modified":"2024-03-19T08:27:44","modified_gmt":"2024-03-19T05:27:44","slug":"install-latest-grafana-on-debian-10","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-latest-grafana-on-debian-10\/","title":{"rendered":"Install latest Grafana on Debian 10"},"content":{"rendered":"\n
In this tutorial, you will learn how to install latest Grafana on Debian 10. Grafana<\/a> is an open source analytics and monitoring solution that enables you to query, visualize and alert on various systems metrics that can be pulled from various time series databases such as Graphite, InfluxDB & Prometheus etc.<\/p>\n\n\n\n There are various methods in which you can install Grafana. These include;<\/p>\n\n\n\n In this tutorial, we will discuss how to install Grafana from the Official Grafana APT repository. This is the surest way to ensure that you are running the latest Grafana on Debian 10.<\/p>\n\n\n\n Run the command below to install Grafana stable release repository;<\/p>\n\n\n\n Install the Grafana repository signing key;<\/p>\n\n\n\n Run system package cache update;<\/p>\n\n\n\n Install Grafana;<\/p>\n\n\n\n When installed, Grafana package;<\/p>\n\n\n\n On systems with systemd init system, Grafana creates a systemd service, In order to start Grafana on Debian 10, you first need to reload systemd daemon configurations;<\/p>\n\n\n\n Next, you can start and enable Grafana service to run on system boot using the command below;<\/p>\n\n\n\n Checking the status;<\/p>\n\n\n\n Grafana listens on port 3000\/tcp on all interfaces by default;<\/p>\n\n\n\n To be able to access it externally, you need to open this port on Firewall, if at all is running. Otherwise, just navigate to the browser and use the address The default login credentials:<\/p>\n\n\n\n When logged in with the default credentials, you will be prompted to change the password. Do so and proceed to Grafana web interface.<\/p>\n\n\n\n Install Grafana on Debian<\/a><\/p>\n\n\n\n Integrate Prometheus with Grafana for Monitoring<\/a><\/p>\n\n\n\n Monitoring Gitlab Metrics with Prometheus and Grafana<\/a><\/p>\n\n\n\nInstalling Grafana on Debian 10<\/h2>\n\n\n\n
\n
.deb<\/code> package<\/li>\n\n\n\n
.tar.gz<\/code> file<\/li>\n<\/ul>\n\n\n\n
Install Grafana from Official Grafana APT repository<\/h3>\n\n\n\n
Install Grafana Stable Release Repository<\/h4>\n\n\n\n
echo \"deb https:\/\/packages.grafana.com\/oss\/deb stable main\" > \/etc\/apt\/sources.list.d\/grafana.list<\/code><\/pre>\n\n\n\n
wget -q -O - https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add -<\/code><\/pre>\n\n\n\n
apt update<\/code><\/pre>\n\n\n\n
apt install grafana<\/code><\/pre>\n\n\n\n
\n
\/usr\/sbin\/grafana-server<\/code><\/li>\n\n\n\n
\/etc\/init.d\/grafana-server<\/code><\/li>\n\n\n\n
\/etc\/default\/grafana-server<\/code><\/li>\n\n\n\n
\/etc\/grafana\/grafana.ini<\/code><\/li>\n\n\n\n
grafana-server.service<\/code><\/li>\n\n\n\n
\/var\/log\/grafana\/grafana.log<\/code><\/li>\n\n\n\n
\/var\/lib\/grafana\/grafana.db<\/code><\/li>\n\n\n\n
\/usr\/share\/grafana<\/code><\/li>\n<\/ul>\n\n\n\n
Running Grafana on Debian 10<\/h3>\n\n\n\n
grafana-server.service<\/strong><\/code>.<\/p>\n\n\n\n
systemctl daemon-reload<\/code><\/pre>\n\n\n\n
systemctl enable --now grafana-server<\/code><\/pre>\n\n\n\n
systemctl status grafana-server.service<\/code><\/pre>\n\n\n\n
\u25cf grafana-server.service - Grafana instance\n Loaded: loaded (\/lib\/systemd\/system\/grafana-server.service; enabled; vendor preset: enabled)\n Active: active (running) since Sat 2021-04-03 02:58:17 EDT; 22s ago\n Docs: http:\/\/docs.grafana.org\n Main PID: 2025 (grafana-server)\n Tasks: 6 (limit: 2359)\n Memory: 17.4M\n CGroup: \/system.slice\/grafana-server.service\n \u2514\u25002025 \/usr\/sbin\/grafana-server --config=\/etc\/grafana\/grafana.ini --pidfile=\/var\/run\/grafana\/grafana-server.pid --packaging=deb cfg:default.paths.logs=\/var\/log\/g\n\nApr 03 02:58:39 debian grafana-server[2025]: t=2021-04-03T02:58:39-0400 lvl=info msg=\"Executing migration\" logger=migrator id=\"create playlist table v2\"\nApr 03 02:58:39 debian grafana-server[2025]: t=2021-04-03T02:58:39-0400 lvl=info msg=\"Executing migration\" logger=migrator id=\"create playlist item table v2\"\n...<\/code><\/pre>\n\n\n\n
Accessing Grafana Web Interface<\/h3>\n\n\n\n
ss -atlnp | grep 3000<\/code><\/pre>\n\n\n\n
LISTEN 0 128 *:3000 *:* users:((\"grafana-server\",pid=2025,fd=11))<\/code><\/pre>\n\n\n\n
http:\/\/<server-IP>:3000<\/code><\/strong> to access your Grafana interface.<\/p>\n\n\n\n
\n
admin<\/code><\/strong><\/li>\n\n\n\n
admin<\/code><\/strong><\/li>\n<\/ul>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Reference<\/h4>\n\n\n\n
Other Tutorials<\/h4>\n\n\n\n