blog-image

Jul 29, 2024

10 min read

How To Install Grafana on Ubuntu 24.04 and Configure it

Written by

Abdelhadi Dyouri
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. Grafana is an open-source monitoring and data visualization software. 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 Prometheus, Graphite, and ElasticSearch. Grafana on Ubuntu 24.04 Tutorial This tutorial will guide you through installing and configuring Grafana on your Ubuntu server.

Installing Grafana on Ubuntu 24.04

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.

Note

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 server, and while prompted to choose the operating system, choose Grafana from the dropdown menu. This will set up Grafana in minutes! However, if you want to get your hands dirty, then you can continue reading.

Prerequisites

To follow this tutorial you need:
  • Basic knowledge of the Linux command line.
  • An Ubuntu 24.04 server with a non-root user with sudo privileges.  If you haven't noticed, we offer extremely powerful Ubuntu servers at the globe's absolute lowest price. Take a look at our offerings and prepare for your mind to be blown 🤯.
  • The LEMP stack (Nginx, MariaDB, and PHP) installed on your server. Use our Installing LEMP on Ubuntu 24.04 LTS guide to set it up, or you can simply use our LEMP 1-Click App to set up LEMP automatically when creating a server with SSD Nodes.
  • A TLS/SSL certificate, because Grafana can access sensitive information about your infrastructure. Fun fact: All our 1-click applications (including LEMP and Grafana) come preinstalled with an SSL certificate :)
Check out our How to access your server using SSH guide to learn how to access your server and create a sudo user.

Step 1: Updating the Ubuntu Package List

Start by updating the packages in the package manager cache to the latest available versions using the following command:
sudo apt update
Continue reading this article
by subscribing to our newsletter.
Subscribe now

Leave a Reply