{"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<p>In this tutorial, you will learn how to install latest Grafana on Debian 10. <a rel=\"noreferrer noopener\" href=\"https:\/\/grafana.com\/\" target=\"_blank\">Grafana<\/a>&nbsp;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 &amp; Prometheus etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Grafana on Debian 10<\/h2>\n\n\n\n<p>There are various methods in which you can install Grafana. These include;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#install-from-apt\" class=\"rank-math-link\">Install from Official Grafana APT repository<\/a><\/li>\n\n\n\n<li>Install by downloading a&nbsp;<code>.deb<\/code>&nbsp;package<\/li>\n\n\n\n<li>Install by downloading a binary&nbsp;<code>.tar.gz<\/code>&nbsp;file<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-from-apt\">Install Grafana from Official Grafana APT repository<\/h3>\n\n\n\n<p>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<h4 class=\"wp-block-heading\">Install Grafana Stable Release Repository<\/h4>\n\n\n\n<p>Run the command below to install Grafana stable release repository;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb https:\/\/packages.grafana.com\/oss\/deb stable main\" &gt; \/etc\/apt\/sources.list.d\/grafana.list<\/code><\/pre>\n\n\n\n<p>Install the Grafana repository signing key;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -q -O - https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p>Run system package cache update;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Install Grafana;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install grafana<\/code><\/pre>\n\n\n\n<p>When installed, Grafana package;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Installs binary to&nbsp;<code>\/usr\/sbin\/grafana-server<\/code><\/li>\n\n\n\n<li>Installs Init.d script to&nbsp;<code>\/etc\/init.d\/grafana-server<\/code><\/li>\n\n\n\n<li>Creates default file (environment vars) to&nbsp;<code>\/etc\/default\/grafana-server<\/code><\/li>\n\n\n\n<li>Installs configuration file to&nbsp;<code>\/etc\/grafana\/grafana.ini<\/code><\/li>\n\n\n\n<li>Installs systemd service (if systemd is available) name&nbsp;<code>grafana-server.service<\/code><\/li>\n\n\n\n<li>The default configuration sets the log file at&nbsp;<code>\/var\/log\/grafana\/grafana.log<\/code><\/li>\n\n\n\n<li>The default configuration specifies a SQLite3 db at&nbsp;<code>\/var\/lib\/grafana\/grafana.db<\/code><\/li>\n\n\n\n<li>Installs HTML\/JS\/CSS and other Grafana files at&nbsp;<code>\/usr\/share\/grafana<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Running Grafana on Debian 10<\/h3>\n\n\n\n<p>On systems with systemd init system, Grafana creates a systemd service, <code><strong>grafana-server.service<\/strong><\/code>.<\/p>\n\n\n\n<p>In order to start Grafana on Debian 10, you first need to reload systemd daemon configurations;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl daemon-reload<\/code><\/pre>\n\n\n\n<p>Next, you can start and enable Grafana service to run on system boot using the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl enable --now grafana-server<\/code><\/pre>\n\n\n\n<p>Checking the status;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl status grafana-server.service<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\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&#91;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&#91;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<h3 class=\"wp-block-heading\">Accessing Grafana Web Interface<\/h3>\n\n\n\n<p>Grafana listens on port 3000\/tcp on all interfaces by default;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ss -atlnp | grep 3000<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>LISTEN    0         128                      *:3000                   *:*        users:((\"grafana-server\",pid=2025,fd=11))<\/code><\/pre>\n\n\n\n<p>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 <strong><code>http:\/\/&lt;server-IP&gt;:3000<\/code><\/strong> to access your Grafana interface.<\/p>\n\n\n\n<p>The default login credentials:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Username: <strong><code>admin<\/code><\/strong><\/li>\n\n\n\n<li>Password: <strong><code>admin<\/code><\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1152\" height=\"591\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/install-grafana-debian-10.png\" alt=\"\" class=\"wp-image-8551\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/install-grafana-debian-10.png?v=1617433592 1152w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/install-grafana-debian-10-768x394.png?v=1617433592 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/figure>\n\n\n\n<p>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<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1900\" height=\"959\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/debian-10-grafana-dashboard.png\" alt=\"\" class=\"wp-image-8552\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/debian-10-grafana-dashboard.png?v=1617433826 1900w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/debian-10-grafana-dashboard-768x388.png?v=1617433826 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/04\/debian-10-grafana-dashboard-1536x775.png?v=1617433826 1536w\" sizes=\"(max-width: 1900px) 100vw, 1900px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Reference<\/h4>\n\n\n\n<p><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/installation\/debian\/#install-from-apt-repository\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">Install Grafana on Debian<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Other Tutorials<\/h4>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/integrate-prometheus-with-grafana-for-monitoring\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Integrate Prometheus with Grafana for Monitoring<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/monitoring-gitlab-metrics-with-prometheus-and-grafana\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Monitoring Gitlab Metrics with Prometheus and Grafana<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/monitor-openvpn-connections-with-prometheus-and-grafana\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Monitor OpenVPN Connections with Prometheus and Grafana<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install latest Grafana on Debian 10. Grafana&nbsp;is an open source analytics and monitoring solution that enables you<\/p>\n","protected":false},"author":1,"featured_media":8551,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,301],"tags":[3393,3398,3397,3392,3394,3396,3395],"class_list":["post-8550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-grafana","tag-debian-10-gradana-install","tag-grafana-apt-repository","tag-grafana-oss","tag-install-grafana-debian-10","tag-install-grafana-debian-ubuntu","tag-install-latest-grafana","tag-install-latest-grafana-on-debian-10","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8550"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=8550"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8550\/revisions"}],"predecessor-version":[{"id":21857,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8550\/revisions\/21857"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/8551"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=8550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=8550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=8550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}