{"id":3459,"date":"2023-06-06T13:07:47","date_gmt":"2023-06-06T10:07:47","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=3459"},"modified":"2023-06-06T13:10:23","modified_gmt":"2023-06-06T10:10:23","slug":"how-to-install-prometheus-and-grafana-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/","title":{"rendered":"How to install Prometheus and Grafana on Ubuntu"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Prometheus and Grafana are powerful open-source tools used for monitoring and visualizing system metrics, making them essential components of any modern infrastructure. In this comprehensive guide, we will walk you through the step-by-step process of installing Prometheus and Grafana on an Ubuntu system. By the end of this tutorial, you&#8217;ll have a robust monitoring setup that provides valuable insights into your system&#8217;s performance.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/#Prerequisites\" title=\"Prerequisites\">Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/#Step_1_Installing_Prometheus\" title=\"Step 1: Installing Prometheus\">Step 1: Installing Prometheus<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/#Step_2_Installing_Grafana\" title=\"Step 2: Installing Grafana\">Step 2: Installing Grafana<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before we begin, ensure that you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu <a href=\"https:\/\/www.virtono.com\/cloud-vps#plans\">server or virtual machine<\/a> (minimum Ubuntu 18.04 LTS)<\/li>\n\n\n\n<li>Sudo access or a user with administrative privileges<\/li>\n\n\n\n<li>Basic familiarity with the Linux command line<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_1_Installing_Prometheus\"><\/span>Step 1: Installing Prometheus<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update System Packages:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by updating your Ubuntu system packages to ensure you have the latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>apt-get update &amp;&amp; apt-get upgrade -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Download Prometheus:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Visit the official Prometheus website (<a href=\"https:\/\/prometheus.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/prometheus.io\/<\/a>) and navigate to the downloads page. Choose the appropriate package for your Ubuntu version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install Prometheus:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the download is complete, extract the Prometheus tarball and move it to the desired location. You may choose to install it system-wide or in your user&#8217;s home directory.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code># wget https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.44.0\/prometheus-2.44.0.linux-amd64.tar.gz\n# tar zxvf prometheus-2.44.0.linux-amd64.tar.gz\n# cd prometheus-2.44.0.linux-amd64\/<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"568\" data-attachment-id=\"3460\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/attachment\/screenshot-2023-06-06-at-11-58-55\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?fit=1688%2C1280&amp;ssl=1\" data-orig-size=\"1688,1280\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-06-at-11.58.55\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?fit=750%2C568&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?resize=750%2C568&#038;ssl=1\" alt=\"How to install Prometheus and Grafana on Ubuntu\" class=\"wp-image-3460\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?resize=1024%2C776&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?resize=300%2C227&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?resize=768%2C582&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?resize=1536%2C1165&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-11.58.55.png?w=1688&amp;ssl=1 1688w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Configure Prometheus:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Prometheus comes with a default configuration file named &#8220;prometheus.yml.&#8221; You can customize it based on your monitoring needs.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cat prometheus.yml\n# my global config\nglobal:\n  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.\n  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.\n  # scrape_timeout is set to the global default (10s).\n\n# Alertmanager configuration\nalerting:\n  alertmanagers:\n    - static_configs:\n        - targets:\n          # - alertmanager:9093\n\n# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.\nrule_files:\n  # - \"first_rules.yml\"\n  # - \"second_rules.yml\"\n\n# A scrape configuration containing exactly one endpoint to scrape:\n# Here it's Prometheus itself.\nscrape_configs:\n  # The job name is added as a label `job=&lt;job_name>` to any timeseries scraped from this config.\n  - job_name: \"prometheus\"\n\n    # metrics_path defaults to '\/metrics'\n    # scheme defaults to 'http'.\n\n    static_configs:\n      - targets: &#91;\"localhost:9090\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Start Prometheus:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Launch the Prometheus server by executing the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">.\/prometheus &#8211;config.file=prometheus.yml<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Verify Prometheus Installation:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open your web browser and access <a href=\"http:\/\/localhost:9090\" target=\"_blank\" rel=\"noopener\">http:\/\/server-ip-address:9090<\/a>. If Prometheus is running correctly, you will see the Prometheus web interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"351\" data-attachment-id=\"3461\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/attachment\/screenshot-2023-06-06-at-12-04-01\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?fit=1906%2C892&amp;ssl=1\" data-orig-size=\"1906,892\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-06-at-12.04.01\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?fit=750%2C351&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?resize=750%2C351&#038;ssl=1\" alt=\"\" class=\"wp-image-3461\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?resize=1024%2C479&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?resize=300%2C140&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?resize=768%2C359&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?resize=1536%2C719&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.04.01.png?w=1906&amp;ssl=1 1906w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_2_Installing_Grafana\"><\/span>Step 2: Installing Grafana<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Add the Grafana Repository:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command to add the Grafana repository to your system:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code># sudo apt install -y apt-transport-https\n# wget -q -O - https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add -\n# echo \"deb https:\/\/packages.grafana.com\/oss\/deb stable main\" | sudo tee \/etc\/apt\/sources.list.d\/grafana.list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install Grafana<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update the package list and install Grafana with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo apt-get update\nsudo apt-get install grafana<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Start Grafana:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable and start the Grafana service:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl enable --now grafana-server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Access Grafana:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open your web browser and go to <a href=\"http:\/\/localhost:3000\" target=\"_blank\" rel=\"noopener\">http:\/\/your-server-ip:3000<\/a>. You will be prompted to set up a new admin password. Follow the on-screen instructions to complete the setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Execute the following command to set the admin password to a new value:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code># sudo systemctl stop grafana-server\n# sudo grafana-cli admin reset-admin-password &lt;new_password>\n# sudo systemctl start grafana-server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>&lt;new_password><\/code> with your desired new password.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"479\" data-attachment-id=\"3463\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/attachment\/screenshot-2023-06-06-at-12-19-30\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?fit=1422%2C908&amp;ssl=1\" data-orig-size=\"1422,908\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-06-at-12.19.30\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?fit=750%2C479&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?resize=750%2C479&#038;ssl=1\" alt=\"How to install Prometheus and Grafana on Ubuntu\" class=\"wp-image-3463\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?resize=1024%2C654&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?resize=300%2C192&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?resize=768%2C490&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.19.30.png?w=1422&amp;ssl=1 1422w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Configure Prometheus as a Data Source:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the Grafana web interface, click on &#8220;Connections&#8221; > &#8220;Data Sources.&#8221; Add a new data source and choose Prometheus. Provide the URL of your Prometheus server (e.g., <a href=\"http:\/\/localhost:9090\" target=\"_blank\" rel=\"noopener\">http:\/\/server-ip:9090<\/a>) and save the configuration.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"516\" data-attachment-id=\"3464\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/attachment\/screenshot-2023-06-06-at-12-23-21\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?fit=1948%2C1342&amp;ssl=1\" data-orig-size=\"1948,1342\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-06-at-12.23.21\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?fit=750%2C516&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?resize=750%2C516&#038;ssl=1\" alt=\"Prometheus and Grafana on Ubuntu\" class=\"wp-image-3464\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?resize=1024%2C705&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?resize=300%2C207&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?resize=768%2C529&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?resize=1536%2C1058&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.23.21.png?w=1948&amp;ssl=1 1948w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Create Dashboards:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Grafana provides a rich set of pre-built dashboards and visualizations. Explore the dashboard library or create your custom dashboards to monitor your system metrics effectively.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"373\" data-attachment-id=\"3465\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-prometheus-and-grafana-on-ubuntu\/attachment\/screenshot-2023-06-06-at-12-25-14\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?fit=2596%2C1290&amp;ssl=1\" data-orig-size=\"2596,1290\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-06-at-12.25.14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?fit=750%2C373&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=750%2C373&#038;ssl=1\" alt=\"\" class=\"wp-image-3465\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=1024%2C509&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=300%2C149&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=768%2C382&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=1536%2C763&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?resize=2048%2C1018&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-06-at-12.25.14.png?w=2250&amp;ssl=1 2250w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Congratulations! You have successfully installed Prometheus and Grafana on your Ubuntu system. With this monitoring setup, you can now gain valuable insights into your infrastructure&#8217;s performance and troubleshoot any issues promptly. Experiment with Grafana&#8217;s visualization options to create personalized dashboards that suit your monitoring requirements. Keep exploring the capabilities of Prometheus and Grafana to unleash their full potential.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prometheus and Grafana are powerful open-source tools used for monitoring and visualizing system metrics, making them essential components of any modern infrastructure. In this comprehensive guide, we will walk you through the step-by-step process of installing Prometheus and Grafana on an Ubuntu system. By the end of this tutorial, you&#8217;ll<\/p>\n","protected":false},"author":8,"featured_media":3466,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[454,466,451,465,463,464],"class_list":["post-3459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to","tag-grafana-on-ubuntu","tag-how-to-install-prometheus","tag-install-grafana","tag-install-prometheus","tag-prometheus-and-grafana","tag-prometheus-on-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-Prometheus-and-Grafana-on-Ubuntu.png?fit=600%2C330&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-TN","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1774,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-integrate-and-visualize-prometheus-metrics-in-grafana\/","url_meta":{"origin":3459,"position":0},"title":"How To Integrate and Visualize Prometheus Metrics In Grafana","author":"Shreyash Sharma","date":"July 29, 2020","format":false,"excerpt":"Generally speaking, Prometheus is good, after all he was a titan, created humanity, gave us fire. And the other Prometheus is also good however we need a way to visualize it. Currently the official recommendation is to use Grafana. Prometheus has a plugin for this that can be configured as\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/monitoring-prometheus-with-grafana.jpg?fit=564%2C336&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/monitoring-prometheus-with-grafana.jpg?fit=564%2C336&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/monitoring-prometheus-with-grafana.jpg?fit=564%2C336&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3761,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-grafana-on-kubernetes\/","url_meta":{"origin":3459,"position":1},"title":"How to Deploy Grafana on Kubernetes","author":"George B.","date":"August 24, 2023","format":false,"excerpt":"This article will walk you through the process of deploying Grafana on Kubernetes, specifically using k3s and Helm, and making it accessible via a NodePort on your VPS (Virtual Private Server). We'll assume you have k3s and Helm already installed. If not, please refer to their respective official documentation to\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/08\/How-to-Deploy-Grafana-on-Kubernetes.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3442,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-grafana-on-ubuntu-22-04-for-advanced-data-visualization\/","url_meta":{"origin":3459,"position":2},"title":"How to Install Grafana on Ubuntu 22.04 for Advanced Data Visualization","author":"George B.","date":"June 2, 2023","format":false,"excerpt":"We will walk you through the step-by-step process of installing Grafana on Ubuntu 22.04. Grafana, an open-source platform, has become a popular choice for data visualization and monitoring. With its user-friendly dashboards and extensive plugin ecosystem, Grafana empowers users to derive valuable insights from their data. Whether you're a data\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-Grafana-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-Grafana-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-Grafana-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3695,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-prometheus-on-kubernetes\/","url_meta":{"origin":3459,"position":3},"title":"How to Deploy Prometheus on Kubernetes","author":"George B.","date":"July 30, 2023","format":false,"excerpt":"In this tutorial, we'll discuss how to set up Prometheus on Kubernetes. We'll assume that you've already installed Helm and K3s. If you don't have K3s and Helm installed you can follow our guide. Prometheus has established itself as a top open-source option for monitoring and alerting systems. It is\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/07\/How-to-Deploy-Prometheus-on-Kubernetes.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3954,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-docker-swarm-on-ubuntu-22-04\/","url_meta":{"origin":3459,"position":4},"title":"How to Install and Configure Docker Swarm on Ubuntu 22.04","author":"George B.","date":"September 27, 2023","format":false,"excerpt":"This tutorial will show you how to install and configure Docker Swarm on Ubuntu 22.04 ensuring that you harness its full potential for your containerized applications. For effectively scaling and managing containers, Docker Swarm is still a great option. Many developers and DevOps experts prefer it because of its ease\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/How-to-Install-and-Configure-Docker-Swarm-on-Ubuntu.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1755,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-prometheus-on-a-linux-server\/","url_meta":{"origin":3459,"position":5},"title":"How To Install and Configure Prometheus On a Linux Server","author":"Shreyash Sharma","date":"July 27, 2020","format":false,"excerpt":"Introduction Prometheus is an open-source monitoring system developed by SoundCloud. Development on Prometheus started back in 2012 when SoundCloud felt that the existing monitoring systems were proving insufficient for their needs. It uses a time-series database just like Druid, InfluxDB, Graphite. However, Prometheus is able to work on a multi-dimensional\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_yz1TgEsIb9qNtmv2O-SZsg.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_yz1TgEsIb9qNtmv2O-SZsg.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_yz1TgEsIb9qNtmv2O-SZsg.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_yz1TgEsIb9qNtmv2O-SZsg.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/07\/1_yz1TgEsIb9qNtmv2O-SZsg.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=3459"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3459\/revisions"}],"predecessor-version":[{"id":3467,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3459\/revisions\/3467"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/3466"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=3459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=3459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=3459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}