{"id":7239,"date":"2025-07-29T09:00:56","date_gmt":"2025-07-29T09:00:56","guid":{"rendered":"https:\/\/blog.ssdnodes.com\/blog\/?p=7239"},"modified":"2025-07-29T09:21:22","modified_gmt":"2025-07-29T09:21:22","slug":"install-and-configure-grafana-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.ssdnodes.com\/blog\/install-and-configure-grafana-on-ubuntu\/","title":{"rendered":"How To Install Grafana on Ubuntu 24.04 and Configure it"},"content":{"rendered":"<p>Looking to install Grafana on Ubuntu 24.04, and you want a simple tutorial? You're in the right place. I'll walk you through everything you need to install and configure on your server to have Grafana up and running.<\/p>\n<p><a href=\"https:\/\/grafana.com\/\" target=\"_blank\" rel=\"noopener\">Grafana<\/a> is an open-source <a href=\"https:\/\/www.ssdnodes.com\/blog\/tools-to-manage-multiple-linux-servers-free\/\">monitoring and data visualization software<\/a>. It provides analytics and interactive visualization on the web for your servers, with features offering charts, graphs, and alerts. It supports integration with complex data sources such as <a href=\"https:\/\/prometheus.io\/\" target=\"_blank\" rel=\"noopener\">Prometheus<\/a>, <a href=\"https:\/\/graphiteapp.org\/\" target=\"_blank\" rel=\"noopener\">Graphite<\/a>, and <a href=\"https:\/\/www.elastic.co\/\" target=\"_blank\" rel=\"noopener\">ElasticSearch<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10347 size-full\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-To-Install-Grafana-on-Ubuntu-24.04-and-Configure-it.jpg\" alt=\"Grafana on Ubuntu 24.04 Tutorial\" width=\"579\" height=\"386\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-To-Install-Grafana-on-Ubuntu-24.04-and-Configure-it.jpg 579w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-To-Install-Grafana-on-Ubuntu-24.04-and-Configure-it-300x200.jpg 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/p>\n<p>This tutorial will guide you through installing and configuring Grafana on your Ubuntu server.<\/p>\n<h2>Installing Grafana on Ubuntu 24.04<\/h2>\n<p>To install Grafana on Ubuntu 24.04, you'll first update the package index, add Grafana's APT repository, install it, then enable it to start automatically after system startup. Finally, you'll secure your installation by disabling signups and anonymous access.<\/p>\n<h3>Note<\/h3>\n<p>If you want to skip all the technical steps of setting up Grafana on your server and have it installed in minutes, then I have some great news for you! Our team of engineers has prepared a ready-to-use 1-click Grafana application for your convenience. Just choose a <a href=\"https:\/\/www.ssdnodes.com\/\">server<\/a>, and while prompted to choose the operating system, choose <strong>Grafana<\/strong> from the dropdown menu. This will set up <strong>Grafana<\/strong> in minutes! However, if you want to get your hands dirty, then you can continue reading.<\/p>\n<h2>Prerequisites<\/h2>\n<p>To follow this tutorial you need:<\/p>\n<ul>\n<li>Basic knowledge of the Linux command line.<\/li>\n<li>An Ubuntu 24.04 server with a non-root user with <code>sudo<\/code> privileges.\u00a0 If you haven't noticed, we offer extremely powerful Ubuntu servers at the globe's absolute lowest price. Take a look at our <a href=\"https:\/\/ssdnodes.com\/\" target=\"_blank\" rel=\"noopener\">offerings<\/a> and prepare for your mind to be blown \ud83e\udd2f.<\/li>\n<li>The LEMP stack (Nginx, MariaDB, and PHP) installed on your server. Use our <a href=\"https:\/\/www.ssdnodes.com\/blog\/installing-lemp-on-ubuntu-22-04-lts-jammy-jellyfish\/\">Installing LEMP on Ubuntu 24.04 LTS<\/a> guide to set it up, or you can simply use our <strong>LEMP 1-Click App<\/strong> to set up LEMP automatically when creating a server with SSD Nodes.<\/li>\n<li>A TLS\/SSL certificate, because Grafana can access sensitive information about your infrastructure. <strong>Fun fact<\/strong>: All our 1-click applications (including LEMP and Grafana) come preinstalled with an SSL certificate \ud83d\ude42<\/li>\n<\/ul>\n<p>Check out our <a href=\"https:\/\/www.ssdnodes.com\/blog\/tutorial-setting-up-and-securing-ssh-based-authentication\/\">How to access your server using SSH<\/a> guide to learn how to access your server and create a <code>sudo<\/code> user.<\/p>\n<h2>Step 1: Updating the Ubuntu Package List<\/h2>\n<p>Start by updating the packages in the package manager cache to the latest available versions using the following command:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10243\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/update.webp\" alt=\"Updating Ubuntu Packages\" width=\"600\" height=\"251\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/update.webp 962w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/update-300x125.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/update-768x321.webp 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2>Step 2: Install Grafana on Ubuntu Server<\/h2>\n<p>To install Grafana, you will need to first add its APT repository. First get the official GPG key from the Grafana website using the following command:<\/p>\n<pre><code>wget -q -O - https:\/\/packages.grafana.com\/gpg.key | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/grafana.gpg &gt; \/dev\/null<\/code><\/pre>\n<p>This downloads and stores the key in <code>\/usr\/share\/keyrings\/grafana.gpg<\/code>.<\/p>\n<p>With the GPG key downloaded, add the Grafana repository to your APT sources using the following command:<\/p>\n<pre><code>echo \"deb [signed-by=\/usr\/share\/keyrings\/grafana.gpg] https:\/\/packages.grafana.com\/oss\/deb stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/grafana.list<\/code><\/pre>\n<p>To use the repository, update the package index of your Ubuntu server:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>Once the update is done, install Grafana with the following command:<\/p>\n<pre><code>sudo apt install grafana<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10244\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/install-grafana-1024x625.webp\" alt=\"Install Grafana on Ubuntu\" width=\"600\" height=\"366\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/install-grafana-1024x625.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/install-grafana-300x183.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/install-grafana-768x469.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/install-grafana.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once the installation finishes, start the Grafana server:<\/p>\n<pre><code>sudo systemctl start grafana-server<\/code><\/pre>\n<p>Once started, check the Grafana server status with the <code>systemctl status<\/code> command:<\/p>\n<pre><code>sudo systemctl status grafana-server<\/code><\/pre>\n<p>You will receive the following output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10245\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/grafana-status-1024x379.webp\" alt=\"Grafana status after installation on Ubuntu\" width=\"600\" height=\"222\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/grafana-status-1024x379.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/grafana-status-300x111.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/grafana-status-768x284.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/grafana-status.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Next, enable the Grafana server to start at boot:<\/p>\n<p><code><\/code><\/p>\n<pre><code>sudo systemctl enable grafana-server<\/code><\/pre>\n<p>You should receive the following output:<\/p>\n<pre><code>Synchronizing state of grafana-server.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.\r\nExecuting: \/lib\/systemd\/systemd-sysv-install enable grafana-server\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/grafana-server.service \u2192 \/lib\/systemd\/system\/grafana-server.service.<\/code><\/pre>\n<p>With this, Grafana is now successfully installed on your server.<\/p>\n<h2>Step 3: Logging in to Grafana<\/h2>\n<p>Now that you have Grafana installed on your server, you can visit the following URL to access the Grafana web interface:<\/p>\n<pre><code>http:\/\/your_server_IP_or_domain:3000<\/code><\/pre>\n<p>Remember to change <code>your_server_IP_or_domain<\/code> with your server's IP address or domain name.<\/p>\n<p>Once the page loads, you will see a login screen as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2022\/11\/Grafana-Login.jpg\" alt=\"Grafana Login Screen\" width=\"1599\" height=\"804\" \/><\/p>\n<p>The default Grafana credentials are <code>admin<\/code> for the username and <code>admin<\/code> for the password. Once you enter these credentials and submit the form, you will be moved to a screen with a form for entering a new password for your admin account. Enter a strong password, re-enter it, and submit the form.<\/p>\n<p>Once you secure your account, you'll be redirected to the Grafana dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10246\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard-1024x492.webp\" alt=\"Grafana Dashboard on Ubuntu\" width=\"600\" height=\"288\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard-1024x492.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard-300x144.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard-768x369.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard-1536x738.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/dashboard.webp 1573w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2>Step 4: Disabling Grafana Signups and Anonymous Access<\/h2>\n<p>To further secure your Grafana set up, you need to disable an option that allows visitors to create user accounts and access the Grafana dashboard.<\/p>\n<p>First, open Grafana's main configuration file:<\/p>\n<pre><code>sudo nano \/etc\/grafana\/grafana.ini<\/code><\/pre>\n<p>Change the <code>allow_sign_up<\/code> directive from this:<\/p>\n<pre><code># disable user signup \/ registration\r\n;allow_sign_up = true<\/code><\/pre>\n<p>To the following:<\/p>\n<pre><code># disable user signup \/ registration\r\nallow_sign_up = false<\/code><\/pre>\n<p>Next, disable anonymous access. First, look for the following:<\/p>\n<pre><code># enable anonymous access\r\n;enabled = false<\/code><\/pre>\n<p>And change it to the following:<\/p>\n<pre><code># enable anonymous access\r\nenabled = false<\/code><\/pre>\n<p>This limits dashboard access to registered users only.<\/p>\n<p>Save and close the file.<\/p>\n<p>Restart Grafana:<\/p>\n<pre><code>sudo systemctl restart grafana-server<\/code><\/pre>\n<p>Check the status of the Grafana server:<\/p>\n<pre><code>sudo systemctl status grafana-server<\/code><\/pre>\n<p>The output should be as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10247\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/status-2--1024x411.webp\" alt=\"Grafana Status\" width=\"600\" height=\"241\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/status-2--1024x411.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/status-2--300x120.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/status-2--768x308.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/status-2-.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><code><\/code><br \/>\nTo verify that registrations have been disabled, visit your Grafana web interface like before:<\/p>\n<pre><code>http:\/\/your_server_IP_or_domain:3000<\/code><\/pre>\n<p>Move your cursor to the admin avatar on the lower-left of the screen directly above the question mark, then click <strong>Sign out<\/strong>.<\/p>\n<p>Once your signed out, check that there is no <strong>Sign Up<\/strong> button on the page.<\/p>\n<p>With this, the Grafana dashboard is now only accessible via accounts you register.<\/p>\n<p>You've successfully installed Grafana on your Ubuntu 24.04 server, and you can now monitor your server. For more information on Grafana, check out their <a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/?utm_source=grafana_gettingstarted\" target=\"_blank\" rel=\"noopener\">official website<\/a>.<\/p>\n<p><strong>Note:<\/strong> What we\u2019ve done in this article is suitable for testing purposes and personal use, whereas if you want to publish your site to production, and securely process your online transactions, we do suggest you check our <a href=\"https:\/\/www.ssdnodes.com\/blog\/install-lets-encrypt-on-ubuntu-certbot-apache-and-nginx\/\">How To Install Let\u2019s Encrypt on Ubuntu 24.04<\/a> article, that explains in detail how to secure your site with SSL certificates<\/p>\n<h2>Reader Alert!<\/h2>\n<p>If you feel that the technical instructions in this tutorial are time-consuming, or beyond your expertise, you can choose a very convenient and practical solution, ready-made, fully and professionally tested, and developed by SSD Nodes (That is us \ud83d\ude0a). Just visit <a href=\"https:\/\/www.ssdnodes.com\/\">our website<\/a>, choose the server\u2019s specifications that fit your needs, and while prompted to choose among the operating systems and the 1-Click Applications we have, choose <strong>Grafana<\/strong> from the <strong>Apps<\/strong>\u00a0menu, complete your checkout, and in a couple of minutes our algorithms will take care of all the technical aspects smoothly and effortlessly, just for you!<\/p>\n<h2>FAQ: Frequently Asked Questions on Grafana<\/h2>\n<h3>What is Grafana Playground?<\/h3>\n<p><a href=\"https:\/\/play.grafana.org\/\" target=\"_blank\" rel=\"noopener\">Grafana Playground<\/a> is a free, interactive environment for exploring Grafana features and capabilities without installation. It allows users to experiment with dashboards, data sources, and visualization options in real-time. This is ideal for learning and testing. Grafana Playground helps users understand how to leverage Grafana for monitoring and data analytics effectively. Try it today to enhance your skills!<\/p>\n<h3>How to Use HTTPS with Grafana?<\/h3>\n<p>Using HTTPS with Grafana enhances security by encrypting data transmission. Learn to set it up using Let's Encrypt and Certbot with our <a href=\"https:\/\/www.ssdnodes.com\/blog\/install-lets-encrypt-on-ubuntu-certbot-apache-and-nginx\/\">How To Install Let\u2019s Encrypt on Ubuntu 24.04<\/a> tutorial.<\/p>\n<h3>What is the Difference Between Grafana vs Superset?<\/h3>\n<p>While both Grafana and Apache Superset are powerful data visualization tools, they cater to different needs. Grafana is ideal for real-time monitoring and observability, excelling with time-series data and providing robust alerting features. It's commonly used for tracking system health and application performance. In contrast, Apache Superset is geared towards business intelligence and data exploration, offering powerful tools for creating interactive dashboards and conducting SQL-based analytics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Transform your data visualization! Install &#038; configure Grafana on Ubuntu 24.04 with our easy tutorial. From setup to securing dashboards, we&#8217;ve got you covered.<\/p>\n","protected":false},"author":19,"featured_media":10344,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[18,30],"tags":[188,185],"class_list":["post-7239","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-tutorials","tag-grafana","tag-ubuntu"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/comments?post=7239"}],"version-history":[{"count":20,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7239\/revisions"}],"predecessor-version":[{"id":10345,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7239\/revisions\/10345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media\/10344"}],"wp:attachment":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media?parent=7239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/categories?post=7239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/tags?post=7239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}