Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to install Grafana on Ubuntu Linux

Posted on 02/07/202005/09/2026 Christian By Christian No Comments on How to install Grafana on Ubuntu Linux
  1. Home
  2. Network | Monitoring
  3. How to install Grafana on Ubuntu Linux
install Grafana

Grafana is multi-platform open-source analytics and interactive visualization web application that integrates with complex data from sources like Prometheus, InfluxDB, Graphite, and ElasticSearch. It provides charts, graphs, and alerts for the web when connected to supported data sources. It is expandable through a plug-in system. This implementation will be performed on Ubuntu 20.04. See this guide on how to install Grafana on Windows 10 and Windows Server.

Grafana enables users to create complex monitoring dashboards using interactive query builders and also lets you create alerts, notifications, and ad-hoc filters for your data while also making collaboration with your teammates easier through built-in sharing features. You can download Grafana for all OS here.

Install Grafana on Ubuntu Linux

Grafana Enterprise includes access to enterprise plugins that take your existing data sources and allow you to drop them right into Grafana.

This means you can get the best out of your complex, expensive monitoring solutions, and databases by visualizing all the data in an easier and more effective way. Below are the steps to install Grafana on Ubuntu.

Step 1 – Update the system

For the difference between these commands below, see differences between Linux system Update, Upgrade, and Dist-upgrade.

sudo apt-get update
sudo apt-get upgrade
Grafana setup
Ubuntu Linux

Note: This step is optional. It is advisable to reboot your server when updated and upgraded because the new kernel will be active (used) only after reboot.

Step 2 – Add Grafana GPG Key

Download the Grafana GPG key with wget or curl. This will add the key to your APT installation’s list of trusted keys, which will allow you to download and verify the GPG-signed Grafana package.

Note: You need Administrative privilege to have this step done as shown below. You need to have wget installed previously in order to do thus.

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
Ubuntu installation

To verify that the GPG key was added correctly to your key repository, run the command below. This is a lab server only 🙂

sudo apt-key list
Ubuntu Linux

Step 3 – Add Grafana repository to your APT sources

If you install from the APT repository, then Grafana is automatically updated every time you run an apt-get update.

Grafana is available in the official Ubuntu 20.04 packages repository, the version of Grafana there may not be the latest, so use Grafana’s official repository s shown below.

Grafana VersionPackageRepository
Grafana OSSgrafanahttps://packages.grafana.com/oss/deb stable main
Grafana OSS (Beta)grafanahttps://packages.grafana.com/oss/deb beta main
Grafana Enterprisegrafana-enterprisehttps://packages.grafana.com/enterprise/deb stable main
Grafana Enterprise (Beta)grafana-enterprisehttps://packages.grafana.com/enterprise/deb beta main

Now to install the Grafana repository to your APT sources, run the following command below

sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main
Grafana setup

Next, refresh the APT cache to update your package lists

sudo apt update
Terminal window displaying the output of the 'sudo apt update' command in a Linux environment, showing available package updates.

Since there are 119 packages that can be upgraded, I will have to run the “sudo apt-get upgrade command again as discussed in step 1 above.

This step can be ignored if you do not have additional packages to install.

Terminal window displaying the output of a Linux command for upgrading software packages using 'sudo apt-get upgrade'.

Step 4 – Install Grafana

Use the following command below to have Grafana installed on Ubuntu

sudo apt-get -y install grafana
Terminal window displaying the installation process of Grafana on a Linux system, showing installation commands and package information.

Step 5 – Start the Grafana Service

Now that Grafana is installed on the server, we can now start the Grafana service by using the command below. This will start the Grafana Server process as the Grafana user, which was created during the package installation.

sudo systemctl start grafana-server
Terminal window displaying a command to start the Grafana server using 'sudo systemctl start grafana-server'.

Step 6 – Verify Grafana Service Status: Next, we will verify that Grafana is running by checking the service’s status as shown below.

sudo systemctl start grafana-server
Terminal screenshot displaying the status of the Grafana server using systemctl, showing it is active and running along with recent log entries.

Step 7 – Start the Grafana Service upon boot up

Ensure the service is set to run on boot by using the command below

sudo systemctl enable grafana-server
Terminal window displaying a command to enable the Grafana server using systemctl on a Linux operating system.

Grafana on Ubuntu Linux

Furthermore, This confirms that Systemd has created the necessary symbolic links to autostart Grafana. The installation of Grafana is now complete and ready for use. You can proceed from here by installing an SSL certificate or a proxy server for Grafana.

Step 8 – Launch the Grafana Web interface

Consequently, Upon installation and starting of the Grafana service, you can access the dashboard by visiting the server IP on port 3000. Since I am on the server, I will access it via the localhost:3000.

The default port is 3000. In a production environment, you may need to open port 3000 on your network (router) and on the server itself (Grafana Server).

Login page of Grafana application showing fields for email or username and password.

Nonetheless, Below are the default credentials for Grafana.

Username: admin
Password: admin

Note: Every Grafana installation uses the same administrative credentials by default therefore, it is best practice to change your login information as soon as possible.

In addition, upon entering the default password, you will be prompted to change your password. Simply enter your new password as shown below and click on submit.

Grafana login screen displaying fields for 'New password' and 'Confirm new password', with a 'Submit' button highlighted.

Moreover, Now we are presented with the default Grafana Home screen as shown below.

Grafana dashboard home screen displaying welcome message, tutorial options, and links to add data sources and create dashboards.

Refer to the Configuration page for details on options for customizing your environment, logging, and database etc.

However, I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Network | Monitoring Tags:Linux distro, Monitoring, Ubuntu

Post navigation

Previous Post: How to install and configure Jitsi video conferencing server on Ubuntu
Next Post: Install Grafana on Windows and Windows Server

Related Posts

  • Encapsulationset to Auto
    Error – Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode Network | Monitoring
  • elastic ip association error screen
    Fix Elastic IP Address Could not be Associated AWS/Azure/OpenShift
  • Featured image wifipass
    Find saved Wi-Fi Passwords in Windows 10 and 11 Network | Monitoring
  • image 29
    How to force your website to redirect from HTTP to HTTPS using a web.config file Network | Monitoring
  • Exchange Admin Centre EMC
    How to grant Access to User Mailbox Network | Monitoring
  • Screenshot 1
    Fix SMB Freezes That Break Backups on Critical Linux Servers Network | Monitoring

More Related Articles

banner 3 How to Set Network Adapter Priority on Windows 11 Network | Monitoring
Preliminary Active Directory Analysis Preliminary Guide for Active Directory and Initial Assessment Network | Monitoring
Add camaeras Add additional CC400W Cameras to Synology Surveillance Station Backup
Veeam App for Splunk setup Install Splunk and Veeam App on Windows Server to monitor VBR Backup
troubleshooting Active Directory Replication How to troubleshoot Active Directory Replication issues Network | Monitoring
Veeam ONE Update e1780339954118 How to Upgrade Veeam ONE to 13.0.2.6723 to Address Security Fixes Backup

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Enable or Disable Siri
    How to enable Siri on Mac devices Mac
  • zoominstallanduninstall
    How to uninstall, reinstall, and update Zoom on Mac JIRA|Confluence|Apps
  • image 29
    How to force your website to redirect from HTTP to HTTPS using a web.config file Network | Monitoring
  • mgithub
    How to use Command-Line on Git Bash and GitHub Desktop to PUSH local code to GitHub Version Control System
  • Featured image DNS Server settings
    Do not use Public DNS in Prod: Change DNS Server in Windows Network | Monitoring
  • AzureAD
    Azure Active Directory integration with on-premise AD using PTA AWS/Azure/OpenShift
  • TPM
    Clear TPM: How to enable or disable TPM in Windows Windows
  • image 22
    How to clone a Windows Server running on VirtualBox Virtualization

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,745 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.