{"id":129776,"date":"2025-06-17T10:00:30","date_gmt":"2025-06-17T10:00:30","guid":{"rendered":"\/tutorials\/?p=129776"},"modified":"2026-03-10T09:26:19","modified_gmt":"2026-03-10T09:26:19","slug":"how-to-install-grafana","status":"publish","type":"post","link":"\/ca\/tutorials\/how-to-install-grafana\/","title":{"rendered":"How to install Grafana on Ubuntu?"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p><strong>Grafana <\/strong>is a free visualization tool that displays complex data from various sources in a single, unified platform. Some popular data sources that Grafana supports include <strong>Prometheus<\/strong>, <strong>Loki<\/strong>, <strong>MySQL<\/strong>, <strong>Elasticsearch<\/strong>, <strong>CloudWatch<\/strong>, and <strong>Jira<\/strong>.<\/p><p>Due to its lightweight design and strong community support, Grafana is a valuable tool widely used in organizations of all sizes.<\/p><p>This guide will teach you how to install Grafana on a Hostinger Ubuntu VPS with the one-click template or manual installation. In just a few simple steps, you&rsquo;ll have one of the leading observability tools ready to use with your data.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><strong>Prerequisites<\/strong><\/h2><p>Before you start installing Grafana, make sure your VPS meets the following requirements:<\/p><ul class=\"wp-block-list\">\n<li>Ubuntu 20.04 or later<\/li>\n\n\n\n<li>Internet access to retrieve packages<\/li>\n<\/ul><p>The recommended system resources for Grafana are:<\/p><ul class=\"wp-block-list\">\n<li>1 vCPU<\/li>\n\n\n\n<li>512 MB RAM<\/li>\n<\/ul><p>Hostinger&rsquo;s entry-level KVM 1 <a href=\"\/ca\/vps\/grafana-hosting\">VPS hosting plan<\/a> gives you more than enough resources for this purpose, starting at <strong>CA$ 9.09\/month<\/strong>. Grafana is highly efficient on its own. Data sources handle most of the resource load, while the features provided by Grafana do not stress system resources.<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> We recommend allocating more resources if you want a more advanced setup, such as replacing the default SQLite database with a PostgreSQL database.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><p>You&rsquo;ll also need:<\/p><ul class=\"wp-block-list\">\n<li>Basic familiarity with the command-line interface<\/li>\n\n\n\n<li>Permission to edit configuration files<\/li>\n\n\n\n<li>Permission to manage system services<\/li>\n<\/ul><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ca\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77934\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-how-to-install-grafana-with-the-hostinger-vps-template\"><strong>How to install Grafana with the Hostinger VPS template<\/strong>?<\/h2><p>The most straightforward way to install Grafana on your Ubuntu VPS is with Hostinger&rsquo;s <strong>one-click installation template for Grafana<\/strong>. Let&rsquo;s go through the installation process:<\/p><ol class=\"wp-block-list\">\n<li>Log in to <a href=\"https:\/\/hpanel.hostinger.com\/\" target=\"_blank\" rel=\"noopener\">hPanel<\/a> and in the <strong>VPS <\/strong>section, click <strong>Manage <\/strong>on your VPS:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e3f498\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e3f498\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"157\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/hPanel-manage.png\/w=1024,h=1024,fit=scale-down\" alt=\"Image of a Hostinger VPS running on Ubuntu with the Manage option highlighted.\" class=\"wp-image-129780\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Under <strong>VPS details<\/strong>, click the <strong>Edit <\/strong>icon next to the operating system entry:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e416e3\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e416e3\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"394\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/vps-edit-os.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger Ubuntu VPS details section with the edit option near Operating System highlighted.\" class=\"wp-image-129782\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>In the search bar, type <strong>Grafana<\/strong> and select the <strong>Grafana <\/strong>OS option that is returned:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e43df9\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e43df9\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"357\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/edit-os-search-grafana.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger's operating system change menu, with the pre-built Grafana template filtered out and highlighted.\" class=\"wp-image-129784\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>In the pop-up window, click <strong>Change OS<\/strong>:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e45cee\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e45cee\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"939\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/change-os.png\/w=1024,h=1024,fit=scale-down\" alt=\"Pop-up window displaying information about the Grafana application that's bundled in this VPS template with the Change OS button highlighted.\" class=\"wp-image-129785\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Proceed with the operating system reinstallation steps, acknowledging that reinstallation will result in data loss and setting up a new password.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e479a6\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e479a6\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"993\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/change-os-acknowledgment.png\/w=1024,h=1024,fit=scale-down\" alt=\"Pop-up window that displays an acknowledgement request regarding operating system change, which warns the user of data loss on their VPS if they proceed with the operation.\" class=\"wp-image-129787\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Wait for the OS reinstallation to complete.<\/li>\n<\/ol><p>Once the OS reinstallation is complete, click <strong>Manage App<\/strong>:<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e497a8\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e497a8\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"220\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/grafana-manage-app.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger VPS view with the Grafana template installed, displaying the Grafana application section and the highlighted Manage App button.\" class=\"wp-image-129788\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p><br>You will then enter the Grafana web interface. On the login page, enter your credentials: your username will be <strong>admin<\/strong>, and the default password will match the password you set for the root user during OS setup.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-grafana-manually\"><strong>How to install Grafana manually?<\/strong><\/h2><p>Grafana can be installed in several ways &ndash; as a simple system service, <a href=\"\/ca\/tutorials\/how-to-run-grafana-docker-image\/\">in a Docker container<\/a>, or as part of a high-availability setup. In this guide, we&rsquo;ll keep things straightforward and install it as a service on a <strong>VPS running Ubuntu 24.04<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-update-your-system\"><strong>1. Update your system<\/strong><\/h3><p>To install Grafana, you must first access your VPS using your preferred method. Here, we&rsquo;ll access it through hPanel&rsquo;s built-in <strong>browser terminal<\/strong> functionality, but you can also directly connect to your instance with SSH.<\/p><ol class=\"wp-block-list\">\n<li>Log in to <a href=\"https:\/\/hpanel.hostinger.com\/\" target=\"_blank\" rel=\"noopener\">hPanel<\/a> and in the <strong>VPS <\/strong>section, click <strong>Manage <\/strong>on your VPS:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e4b4c3\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e4b4c3\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"157\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/hPanel-manage-1.png\/w=1024,h=1024,fit=scale-down\" alt=\"Image of a Hostinger VPS running on Ubuntu with the Manage option highlighted. \" class=\"wp-image-129790\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Click the <strong>Browser terminal<\/strong> button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e4d67c\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e4d67c\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"647\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/browser-terminal.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger VPS overview section with the Browser terminal button highlighted.\" class=\"wp-image-129791\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Enter your VPS credentials.<\/li>\n<\/ol><p>Then, you&rsquo;ll need to update the system with the latest available packages. To do this, run these commands:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update &amp;&amp; sudo apt upgrade -y<\/pre><p>This will refresh all available packages in your local package list and then upgrade them to the latest version.<\/p><p>We recommend running these commands before installing new software to ensure your system is up to date. An outdated package can cause conflicts or issues during installation.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-install-required-dependencies\"><strong>2. Install required dependencies<\/strong><\/h3><p>Grafana&rsquo;s installation relies on a few basic tools to handle external repositories and package downloads. These include:<\/p><ul class=\"wp-block-list\">\n<li><strong>apt-transport-https<\/strong> &ndash; allows APT to access repositories over HTTPS<\/li>\n\n\n\n<li><strong>software-properties-common<\/strong> &ndash; provides utilities for managing APT sources<\/li>\n\n\n\n<li><strong>curl <\/strong>&ndash; used to download files from the command line<\/li>\n<\/ul><p>Modern Linux server distributions typically have these packages installed. However, it&rsquo;s worth checking just in case.<\/p><p>You can easily check these packages by running <strong>dpkg -s &lt;PackageName&gt;<\/strong>. If the command is successful, it&rsquo;ll return all available information on a package. For a missing package, you&rsquo;ll receive the message <strong>dpkg-query: package &lsquo;PackageName&rsquo; is not installed and no information is available<\/strong>.<\/p><p>You can use this script to check for the three required packages quickly:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dpkg -s curl &gt;\/dev\/null 2&gt;&amp;1 &amp;&amp; echo \"curl is installed\" || echo \"curl is NOT installed\"\n\ndpkg -s software-properties-common &gt;\/dev\/null 2&gt;&amp;1 &amp;&amp; echo \"software-properties-common is installed\" || echo \"software-properties-common is NOT installed\"\n\ndpkg -s apt-transport-https &gt;\/dev\/null 2&gt;&amp;1 &amp;&amp; echo \"apt-transport-https is installed\" || echo \"apt-transport-https is NOT installed\"<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e4f543\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e4f543\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"488\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/package-check-1.png\/w=1024,h=1024,fit=scale-down\" alt=\"Output of the package checker script above, which displays that curl and software-properties-common are installed, but apt-transport-https is not present in the system. \" class=\"wp-image-129795\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>In our case, we see that <strong>apt-transport-https<\/strong> is missing. If you&rsquo;re running<strong> Ubuntu 20.04 or later<\/strong>, it will likely have been merged into the <strong>apt <\/strong>package.<\/p><p>To verify this, run this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt show apt | grep Version<\/pre><p>If the version of the <strong>apt <\/strong>package is newer than <strong>1.5<\/strong>, the separate <strong>apt-transport-https <\/strong>package is unnecessary as the<strong> apt <\/strong>package will have it bundled in.<\/p><p>On legacy Linux distributions, you can run <strong>sudo apt install apt-transport-https<\/strong> to fetch this package, or upgrade <strong>apt <\/strong>to the latest version.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-add-grafana-s-official-apt-repository\"><strong>3. Add Grafana&rsquo;s official APT repository<\/strong><\/h3><p>To install Grafana with APT, you need to add the official Grafana APT repository to your system. Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Download and add Grafana&rsquo;s GPG key:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mkdir -p \/etc\/apt\/keyrings\/\n\nwget -q -O - https:\/\/apt.grafana.com\/gpg.key | gpg --dearmor | sudo tee \/etc\/apt\/keyrings\/grafana.gpg &gt; \/dev\/null<\/pre><p>These commands download Grafana&rsquo;s public GPG key and store it in a dedicated keyring. It ensures that the packages you&rsquo;re installing are authentic.<\/p><ol start=\"2\" class=\"wp-block-list\">\n<li>Add the Grafana APT repository:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">echo \"deb [signed-by=\/etc\/apt\/keyrings\/grafana.gpg] https:\/\/apt.grafana.com stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/grafana.list<\/pre><p>This command adds Grafana&rsquo;s official APT repository to your system&rsquo;s sources list and instructs it only to trust packages signed with the key you just added.<\/p><ol start=\"3\" class=\"wp-block-list\">\n<li>Update the package index:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update<\/pre><p>This command refreshes your local package list to include the newly added Grafana repository so that APT can find and install the Grafana package.<\/p><p>You will now see that the Grafana package repository is added as a source for the command, which means that your system will recognise the latest Grafana packages.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e51bda\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e51bda\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"636\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/grafana-package-update-1.png\/w=1024,h=1024,fit=scale-down\" alt=\"Image of the sudo apt update command's output, focused on the list of sources for packages. Both calls towards the newly added Grafana APT package source are highlighted.\" class=\"wp-image-129801\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-4-install-grafana\"><strong>4. Install Grafana<\/strong><\/h3><p>Now that the repository is in place, you can install Grafana using the standard APT package manager. Simply run this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install grafana<\/pre><p>When prompted, press <strong>Y <\/strong>and <strong>Enter<\/strong>:<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e537db\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e537db\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"503\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/grafana-install-prompt.png\/w=1024,h=1024,fit=scale-down\" alt=\"Grafana installation process prompt which informs you of the additional disk space, with the installation approval request highlighted. \" class=\"wp-image-129803\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>The installation will pull all the critical dependencies that Grafana requires and automatically create the needed directories. After it completes, run <strong>cd \/etc\/grafana <\/strong>and <strong>ls <\/strong>to check them<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e569f2\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e569f2\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"320\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/etc-grafana-directory.png\/w=1024,h=1024,fit=scale-down\" alt=\"Image of the Grafana files in the etc directory, containing the main Grafana configuration files used in an installation.\" class=\"wp-image-129804\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>In this directory, you will see three entries:<\/p><ul class=\"wp-block-list\">\n<li><strong>grafana.ini &ndash; <\/strong>this is the main configuration file for your Grafana server. It contains various configuration data for your instance that controls how Grafana behaves.<\/li>\n\n\n\n<li><strong>ldap.toml <\/strong>&ndash; this file contains the <strong>Lightweight Directory Access Protocol (LDAP) <\/strong>configuration data, which you can use to secure your data further.&nbsp;<\/li>\n\n\n\n<li><strong>provisioning &ndash;<\/strong> this folder contains predefined settings for your Grafana server, such as plugins, data sources, and dashboards.<\/li>\n<\/ul><p>You can fine-tune Grafana&rsquo;s settings by modifying the <strong>grafana.ini <\/strong>file to better suit your needs. In this tutorial, we&rsquo;ll proceed with the default configuration.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-enable-and-start-the-grafana-service\"><strong>5. Enable and start the Grafana service<\/strong><\/h3><p>To start the Grafana service, run this command:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl start grafana-server<\/pre><p>This will launch the Grafana server. By default, Grafana uses port <strong>3000<\/strong>, but you can change this value in the <strong>grafana.ini <\/strong>configuration file.<\/p><p>To verify it started successfully, you can execute:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl status grafana-server<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e58622\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e58622\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"784\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/grafana-server-status.png\/w=1024,h=1024,fit=scale-down\" alt=\"Output of the sudo systemctl status grafana-server command, which shows the status of the systemctl managed service, generic metrics, and most recent system logs.\" class=\"wp-image-129809\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>The main thing to look out for is the status of the Grafana process. You can see that it&rsquo;s <strong>active (running)<\/strong>, letting you know that Grafana is running correctly. You can also inspect the most recent logs of the Grafana service.<\/p><p>The next step is ensuring Grafana starts when your VPS starts, so you do not need to start it yourself. To do this, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl enable grafana-server<\/pre><h3 class=\"wp-block-heading\" id=\"h-6-access-the-grafana-dashboard\"><strong>6. Access the Grafana dashboard<\/strong><\/h3><p>Now that Grafana is up and running, you can access it through your browser by entering the <strong>IP <\/strong>or <strong>hostname <\/strong>of your VPS and adding the <strong>:3000 <\/strong>port to the URL.<\/p><p>You will be greeted with Grafana&rsquo;s web interface and will be able to log in.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a58f04e5a4cb\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a58f04e5a4cb\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"786\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/06\/grafana-login-screen.png\/w=1024,h=1024,fit=scale-down\" alt=\"Visual of the Grafana Web Interface, displaying the login page.\" class=\"wp-image-129810\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>The default credentials are:<\/p><ul class=\"wp-block-list\">\n<li>Username: <strong>admin<\/strong><\/li>\n\n\n\n<li>Password: <strong>admin<\/strong><\/li>\n<\/ul><p>When you first log in, Grafana will prompt you to change your password from the default one, which we strongly recommend.<\/p><p>And that&rsquo;s it, you have your very own Grafana instance!<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h2><p>The basic Grafana setup is just the beginning. It&rsquo;s a versatile tool, but only as powerful as the data you give it.<\/p><p>You can add various data sources and plugins to populate your dashboards and get the most out of Grafana. You can also customize your setup by modifying the <strong>grafana.ini<\/strong> configuration file, so Grafana runs just as you&rsquo;d like it to.<\/p><p>From here, it&rsquo;s all about shaping Grafana to fit your use case &ndash; one data source, plugin, and dashboard at a time.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-grafana-faq\"><strong>How to install Grafana FAQ<\/strong><\/h2><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-69428ec239b68\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is Grafana?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Grafana is an open-source data visualization platform for creating dashboards using various data sources. It allows you to monitor metrics, logs, and other time-series data from multiple sources on a unified platform, making it a critical component of many observability and monitoring setups.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-69428ec239b6c\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I install Grafana?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can install Grafana by adding its APT repository and using your systemu0026rsquo;s package manager to deploy and run it as a service, launch it as a Docker container, or use Hostingeru0026rsquo;s u003ca href=u0022https:\/\/www.hostinger.com\/vps\/grafana-hostingu0022u003eGrafana VPSu003c\/au003e template to have it run out of the box.u0026nbsp;<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-69428ec239b6d\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can I access Grafana remotely?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Grafana is accessible remotely through a web browser on port 3000 or a configured Domain Name System (DNS) name. If you canu0026rsquo;t access it, check if your VPS firewall allows traffic on this port. Since itu0026rsquo;s accessible online, consider securing access using authentication, HTTPS, and other recommended best practices.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Grafana is a free visualization tool that displays complex data from various sources in a single, unified platform. Some popular data sources that Grafana supports include Prometheus, Loki, MySQL, Elasticsearch, CloudWatch, and Jira. Due to its lightweight design and strong community support, Grafana is a valuable tool widely used in organizations of all sizes. This [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/how-to-install-grafana\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":515,"featured_media":139102,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to install Grafana on Ubuntu","rank_math_description":"Learn how to install Grafana on your Ubuntu VPS with both easy one-click and manual installation methods.","rank_math_focus_keyword":"how to install grafana","footnotes":""},"categories":[22703,22699],"tags":[],"class_list":["post-129776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-managing-monitoring-and-security","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-grafana","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-grafana","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/129776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/515"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=129776"}],"version-history":[{"count":16,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/129776\/revisions"}],"predecessor-version":[{"id":140768,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/129776\/revisions\/140768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media\/139102"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=129776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=129776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=129776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}