{"id":16574,"date":"2026-05-08T14:58:20","date_gmt":"2026-05-08T14:58:20","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=16574"},"modified":"2026-05-08T16:30:41","modified_gmt":"2026-05-08T16:30:41","slug":"how-to-set-up-prometheus-monitoring-from-installation-to-dashboards","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/","title":{"rendered":"How to Set Up Prometheus Monitoring: From Installation to Dashboards"},"content":{"rendered":"\n<p>Today, Prometheus is the most popular and widely used open-source monitoring and alerting toolkit for the DevOps community, used by hosting companies to monitor millions of metrics from thousands of servers in real-time. This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.<\/p>\n\n\n\n<p><strong>Table of Content<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#What-Is-Prometheus-and-How-Does-It-Work\">What Is Prometheus and How Does It Work?<\/a><\/li>\n\n\n\n<li><a href=\"#How-to-Configure-Prometheus-Monitoring:-A-Step-by-Step-Guide\">How to Configure Prometheus Monitoring: A Step-by-Step Guide<\/a><\/li>\n\n\n\n<li><a href=\"#Troubleshooting-Common-Issues-on-Ubuntu-\">Troubleshooting Common Issues on Ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"#post-16574-_6yjiv05c1mgm\">Best Practices for Prometheus Monitoring on Ubuntu<\/a><\/li>\n\n\n\n<li><a href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"What-Is-Prometheus-and-How-Does-It-Work\"><a id=\"post-16574-_jvjhjwrgclal\"><\/a><strong>What Is Prometheus and How Does It Work?<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/prometheus.io\/\">Prometheus<\/a> is a time-series database and monitoring system that pulls (scrapes) metrics from endpoints at regular intervals and configured periods. While push-based monitoring tools connect to your infrastructure and applications and wait for metrics to be sent, Prometheus actively seeks out your application and infrastructure, collecting metrics and storing them in a series of numerical values with times of collection that you can query, graph, and alert on.<\/p>\n\n\n\n<p>The main Prometheus architecture of Ubuntu is made up of three parts that function together:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prometheus Server<\/strong>: The thinking part of the stack. It gathers metrics from targets and stores them into a time-series database (TSDB), checks alerting rules, and provides a web UI and API on port 9090.<\/li>\n\n\n\n<li><strong>Node Exporter<\/strong>: A lightweight agent installed on each Linux server and listening on port 9100 for over 1,000 system-level metrics such as CPU, memory, disk, network, and file system usage.<\/li>\n\n\n\n<li><strong>Grafana: <\/strong>It is a visualization platform that provides beautiful, interactive dashboards from your metrics data on port 3000, and connects to Prometheus as a data source.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Configure-Prometheus-Monitoring:-A-Step-by-Step-Guide\"><a id=\"post-16574-_6ienk6ih389h\"><\/a><strong>How to Configure Prometheus Monitoring: A Step-by-Step Guide<\/strong><\/h2>\n\n\n\n<p>To set Prometheus monitoring up on Ubuntu, install it with sudo apt install prometheus -y, configure \/etc\/prometheus\/prometheus.yml to define your scrape targets, then start the service with sudo systemctl enable prometheus &#8211;now to begin collecting metrics on port 9090. Let\u2019s explore the step-by-step instructions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_71e1niuvbp73\"><\/a><strong>Step 1: Verify Your System Environment<\/strong><\/h3>\n\n\n\n<p>To be safe, check which version of <a href=\"https:\/\/ubuntu.com\/\">Ubuntu<\/a> you are running and update package lists prior to installation. To use all commands in this guide, you will need sudo or root access to your Ubuntu server:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>lsb_release -a<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1097\" height=\"251\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-1.png\" alt=\"lsb_release -a\" class=\"wp-image-16575\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-1.png 1097w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-1-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-1-1024x234.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-1-768x176.png 768w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_hgmx2aelp0cb\"><\/a><strong>Step 2: Install Prometheus on Ubuntu <\/strong><\/h3>\n\n\n\n<p>The Prometheus binary is already available in the package repository of Ubuntu 24.04 LTS, so you can just download and install it with apt, without needing to extract a tarball or download the binary yourself:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install prometheus -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1130\" height=\"442\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-2.png\" alt=\"sudo apt install prometheus -y\" class=\"wp-image-16576\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-2.png 1130w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-2-300x117.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-2-1024x401.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-2-768x300.png 768w\" sizes=\"(max-width: 1130px) 100vw, 1130px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Please check its version to verify that Prometheus was installed correctly:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>prometheus &#8211;version<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1132\" height=\"311\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-3.png\" alt=\"prometheus --version\" class=\"wp-image-16577\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-3.png 1132w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-3-300x82.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-3-1024x281.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-3-768x211.png 768w\" sizes=\"(max-width: 1132px) 100vw, 1132px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you are running Prometheus on your local Ubuntu machine, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>which prometheus<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1137\" height=\"126\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-4.png\" alt=\"which prometheus\" class=\"wp-image-16578\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-4.png 1137w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-4-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-4-1024x113.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-4-768x85.png 768w\" sizes=\"(max-width: 1137px) 100vw, 1137px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_1gwt9e7bvxt8\"><\/a><strong>Step 3: Review the Default Configuration File<\/strong><\/h3>\n\n\n\n<p>Prometheus is configured through a YAML file located at \/etc\/prometheus\/prometheus.yml. View its contents to understand the default setup:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>cat \/etc\/prometheus\/prometheus.yml<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"491\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-5.png\" alt=\"cat \/etc\/prometheus\/prometheus.yml\" class=\"wp-image-16579\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-5.png 1125w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-5-300x131.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-5-1024x447.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-5-768x335.png 768w\" sizes=\"(max-width: 1125px) 100vw, 1125px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The default configuration directory contains the following files:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>ls -la \/etc\/prometheus\/<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1135\" height=\"287\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-6.png\" alt=\"ls -la \/etc\/prometheus\/\" class=\"wp-image-16580\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-6.png 1135w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-6-300x76.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-6-1024x259.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-6-768x194.png 768w\" sizes=\"(max-width: 1135px) 100vw, 1135px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now update the configuration file to create a clean, production-ready setup. Open the file with your text editor:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo nano \/etc\/prometheus\/prometheus.yml<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>Replace the contents with this clean configuration:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>global:<\/p>\n<p>scrape_interval: 15s<\/p>\n<p>evaluation_interval: 15s<\/p>\n<p>scrape_configs:<\/p>\n<p>&#8211; job_name: &#8216;prometheus&#8217;<\/p>\n<p>scrape_interval: 5s<\/p>\n<p>static_configs:<\/p>\n<p>&#8211; targets: [&#8216;localhost:9090&#8217;]<\/p>\n<p>&#8211; job_name: &#8216;node&#8217;<\/p>\n<p>static_configs:<\/p>\n<p>&#8211; targets: [&#8216;localhost:9100&#8217;]<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1115\" height=\"749\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-7.png\" alt=\"sudo nano \/etc\/prometheus\/prometheus.yml\" class=\"wp-image-16581\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-7.png 1115w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-7-300x202.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-7-1024x688.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-7-768x516.png 768w\" sizes=\"(max-width: 1115px) 100vw, 1115px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Save and close the file. This configuration tells Prometheus to scrape its own metrics every 5 seconds and to scrape Node Exporter metrics every 15 seconds.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_h3nsj7pwmiaq\"><\/a><strong>Step 4: Start and Enable the Prometheus Service<\/strong><\/h3>\n\n\n\n<p>Start the Prometheus service and enable it to start automatically at every system boot:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl enable prometheus &#8211;now<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1127\" height=\"184\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-8.png\" alt=\"sudo systemctl enable prometheus --now\" class=\"wp-image-16582\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-8.png 1127w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-8-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-8-1024x167.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-8-768x125.png 768w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Check that the service is running:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl status prometheus<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1124\" height=\"560\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-9.png\" alt=\"sudo systemctl status prometheus\" class=\"wp-image-16583\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-9.png 1124w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-9-300x149.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-9-1024x510.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-9-768x383.png 768w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The final line, &#8220;Server is ready to receive web requests,&#8221; confirms that Prometheus is fully initialized and listening on port 9090.<\/p>\n\n\n\n<p>Verify the health endpoint responds correctly:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>curl http:\/\/localhost:9090\/-\/healthy<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1127\" height=\"132\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-10.png\" alt=\"curl http:\/\/localhost:9090\/-\/healthy\" class=\"wp-image-16584\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-10.png 1127w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-10-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-10-1024x120.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-10-768x90.png 768w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_lcfvq5iudd5r\"><\/a><strong>Step 5: Install and Start Node Exporter<\/strong><\/h3>\n\n\n\n<p><strong>Node Exporter<\/strong> collects over 1,000 hardware and OS-level metrics from your Ubuntu server. Install it using apt:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install prometheus-node-exporter -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1124\" height=\"277\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-11.png\" alt=\"sudo apt install prometheus-node-exporter -y\" class=\"wp-image-16585\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-11.png 1124w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-11-300x74.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-11-1024x252.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-11-768x189.png 768w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Verify the installation:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>prometheus-node-exporter &#8211;version<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1126\" height=\"277\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-12.png\" alt=\"prometheus-node-exporter --version\" class=\"wp-image-16586\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-12.png 1126w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-12-300x74.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-12-1024x252.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-12-768x189.png 768w\" sizes=\"(max-width: 1126px) 100vw, 1126px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Start and enable the Node Exporter service:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl enable prometheus-node-exporter &#8211;now<\/p>\n<p>sudo systemctl status prometheus-node-exporter<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1127\" height=\"617\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-13.png\" alt=\"sudo systemctl enable prometheus-node-exporter --now\" class=\"wp-image-16587\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-13.png 1127w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-13-300x164.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-13-1024x561.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-13-768x420.png 768w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_h8h6dad9xud\"><\/a><strong>Step 6: Verify Node Exporter Is Exposing Real Metrics<\/strong><\/h3>\n\n\n\n<p>Test the <a href=\"https:\/\/prometheus.io\/docs\/guides\/node-exporter\/\">Node Exporter<\/a> metrics endpoint directly from your terminal:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>curl http:\/\/localhost:9100\/metrics | head -30<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1128\" height=\"498\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-14.png\" alt=\"curl http:\/\/localhost:9100\/metrics | head -30\" class=\"wp-image-16588\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-14.png 1128w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-14-300x132.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-14-1024x452.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-14-768x339.png 768w\" sizes=\"(max-width: 1128px) 100vw, 1128px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>These are real metrics collected from the Ubuntu 24.04.4 LTS system where this blog was written and tested.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_voj59clofo7i\"><\/a><strong>Step 7: Access the Prometheus Web UI<\/strong><\/h3>\n\n\n\n<p>Open your web browser and navigate to:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>http:\/\/YOUR_SERVER_IP:9090<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>If you are running Prometheus on your local Ubuntu machine, use:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>http:\/\/localhost:9090<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"683\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-15.png\" alt=\"http:\/\/localhost:9090\" class=\"wp-image-16589\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-15.png 1267w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-15-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-15-1024x552.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-15-768x414.png 768w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The Prometheus web UI offers three key views:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Targets page:<\/strong> (http:\/\/localhost:9090\/targets)<\/li>\n<\/ul>\n\n\n\n<p>Shows all the targets that are configured and their current health status. Once scraping starts, both Prometheus and node targets should display a green UP sign. A DOWN target indicates that Prometheus can&#8217;t access that endpoint.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1266\" height=\"697\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-16.png\" alt=\"\" class=\"wp-image-16590\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-16.png 1266w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-16-300x165.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-16-1024x564.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-16-768x423.png 768w\" sizes=\"(max-width: 1266px) 100vw, 1266px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Graph page: <\/strong>(http:\/\/localhost:9090\/graph)<\/li>\n<\/ul>\n\n\n\n<p>The built-in expression browser, to run PromQL and display the results as a graph or as a table. This is the main screen that you&#8217;ll use to explore metrics before creating Grafana dashboards.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"683\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-17.png\" alt=\"\" class=\"wp-image-16591\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-17.png 1267w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-17-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-17-1024x552.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-17-768x414.png 768w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16574-_6qazrvj1a5aa\"><\/a><strong>Step 8: Run PromQL Queries to Explore Your Metrics<\/strong><\/h3>\n\n\n\n<p><strong>PromQL<\/strong> (Prometheus Query Language) is the powerful query language you use to select, filter, and calculate metrics from the Prometheus time-series database. Run these queries in the Prometheus Graph page to explore your system metrics.<\/p>\n\n\n\n<p><strong>Check if Node Exporter is up:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>up{job=&#8221;node&#8221;}<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1260\" height=\"573\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-18.png\" alt=\"up{job=&quot;node&quot;}\" class=\"wp-image-16592\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-18.png 1260w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-18-300x136.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-18-1024x466.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-18-768x349.png 768w\" sizes=\"(max-width: 1260px) 100vw, 1260px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This returns 1 if the target is reachable and scraping successfully, or 0 if it is down.<\/p>\n\n\n\n<p><strong>CPU usage percentage across all cores:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>100 &#8211; (avg by(instance)(rate(node_cpu_seconds_total{mode=&#8221;idle&#8221;}[5m])) * 100)<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"665\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-19.png\" alt=\"100 - (avg by(instance)(rate(node_cpu_seconds_total{mode=&quot;idle&quot;}[5m])) * 100)\" class=\"wp-image-16593\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-19.png 1267w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-19-300x157.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-19-1024x537.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-19-768x403.png 768w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Available memory in megabytes:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>node_memory_MemAvailable_bytes \/ 1024 \/ 1024<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1265\" height=\"675\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-20.png\" alt=\"node_memory_MemAvailable_bytes \/ 1024 \/ 1024\" class=\"wp-image-16594\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-20.png 1265w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-20-300x160.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-20-1024x546.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-20-768x410.png 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Disk space used percentage:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>100 &#8211; ((node_filesystem_avail_bytes{mountpoint=&#8221;\/&#8221;} \/ node_filesystem_size_bytes{mountpoint=&#8221;\/&#8221;}) * 100)<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1268\" height=\"691\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-21.png\" alt=\"100 - ((node_filesystem_avail_bytes{mountpoint=&quot;\/&quot;} \/ node_filesystem_size_bytes{mountpoint=&quot;\/&quot;}) * 100)\" class=\"wp-image-16595\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-21.png 1268w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-21-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-21-1024x558.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-21-768x419.png 768w\" sizes=\"(max-width: 1268px) 100vw, 1268px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Network receive rate in KB\/s:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>rate(node_network_receive_bytes_total[5m]) \/ 1024<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1261\" height=\"673\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-22.png\" alt=\"rate(node_network_receive_bytes_total[5m]) \/ 1024\" class=\"wp-image-16596\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-22.png 1261w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-22-300x160.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-22-1024x547.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/word-image-16574-22-768x410.png 768w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>All of these queries will return the actual values of your Ubuntu system, so you can know what your system is using at any time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Troubleshooting-Common-Issues-on-Ubuntu-\"><a id=\"post-16574-_1rti6oflbmyh\"><\/a><strong>Troubleshooting Common Issues on Ubuntu <\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>No port 9090 is available: <\/strong>Make sure to see if it is blocked by your Ubuntu firewall (UFW). Open Prometheus and Node Exporter ports by running sudo ufw allow 9090\/tcp and sudo ufw allow 9100\/tcp.<\/li>\n\n\n\n<li><strong>If the Node Exporter target is DOWN <\/strong>in Prometheus UI, execute sudo systemctl status prometheus-node-exporter to make sure Node Exporter is running. If it is stopped, then start it using sudo systemctl start prometheus-node-exporter and check whether the metrics endpoint is responding using curl http:\/\/localhost:9100\/metrics.<\/li>\n\n\n\n<li><strong>If Prometheus does not start <\/strong>after editing prometheus.yml, you can validate the syntax of the YAML file before retrying the service using promtool check config \/etc\/prometheus\/prometheus.yml. This will indicate the exact line number on which the syntax error is found.<\/li>\n\n\n\n<li><strong>Grafana data source test fails: <\/strong>This typically occurs when Grafana is installed on a different server than Prometheus, or there is a firewall in the way. Make sure that the Prometheus URL entered in Grafana is accessible from the Grafana server, and port 9090 is open.<\/li>\n\n\n\n<li><strong>Prometheus uses a lot of memory<\/strong>: Prometheus stores 15 days of metrics by default. When space is an issue, minimize storage by editing \/etc\/default\/prometheus and updating ARGS to: &#8211;storage.tsdb.retention.time=7d, and restarting the service.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-16574-_6yjiv05c1mgm\"><\/a><strong>Best Practices for Prometheus Monitoring on Ubuntu<\/strong><\/h2>\n\n\n\n<p>With these in mind, you can be sure that your monitoring stack is reliable and secure in production:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Set up a separate Prometheus user.<\/strong> The Ubuntu package installer automatically creates a Prometheus user for both the Prometheus server and the Node Exporter, which gives them limited system privileges, making attacks less likely to succeed if either service is compromised.<\/li>\n\n\n\n<li><strong>Version control configuration files.<\/strong> Just as you do with application code, store prometheus.yml in a git repository and have a complete history of all changes to your monitoring configuration.<\/li>\n\n\n\n<li><strong>Create alerting rules in advance. <\/strong>Prometheus integrates with Alertmanager to send notifications when metrics reach thresholds defined in Alertmanager. Set CPU, memory, and disk alerts in advance, not after an incident.<\/li>\n\n\n\n<li><strong>Monitor Prometheus itself. <\/strong>The default is to also scrape Prometheus&#8217;s own metrics (job_name: &#8216;prometheus&#8217;), so you&#8217;ll be able to alert if Prometheus is using a lot of memory, or if the duration of the scraps is increasing unexpectedly.<\/li>\n\n\n\n<li><strong>Apply recording rules to costly queries.<\/strong> For complex PromQL queries that Grafana executes on each refresh of the dashboard, create these queries as recording rules in Prometheus, rather than using Grafana to query them on the fly, which increases the latency of your queries.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-16574-_p67jwf4tqkry\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Setting up Prometheus involves downloading the binary, configuring the prometheus.yml file to define scrape targets, and running the server, which listens on port 9090. In this tutorial, you&#8217;ll learn how to install Prometheus monitoring on Ubuntu 24.04 LTS to enable you to view your server as a fully observed system. You installed Prometheus 2.45.3 from the Ubuntu official repository and Node Exporter 1.7.0, configured both of them to run under systemd, and verified that 1,088 real metrics are being exposed and scraped. You wrote some PromQL queries to explore CPU, memory, disk, and network data.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Today, Prometheus is the most popular and widely used open-source monitoring and alerting toolkit for the DevOps community, used by hosting companies to monitor millions of metrics from thousands of servers in real-time. This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":16600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[675,238,347,1040,317],"class_list":["post-16574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-database","tag-devops","tag-monitoring","tag-promethus","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-08T14:58:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-08T16:30:41+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"672\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Set Up Prometheus Monitoring: From Installation to Dashboards\",\"datePublished\":\"2026-05-08T14:58:20+00:00\",\"dateModified\":\"2026-05-08T16:30:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\"},\"wordCount\":1519,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg\",\"keywords\":[\"Database\",\"DevOps\",\"Monitoring\",\"Promethus\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\",\"name\":\"How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg\",\"datePublished\":\"2026-05-08T14:58:20+00:00\",\"dateModified\":\"2026-05-08T16:30:41+00:00\",\"description\":\"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg\",\"width\":1200,\"height\":672,\"caption\":\"How to Set Up Promotheus\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up Prometheus Monitoring: From Installation to Dashboards\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community","description":"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community","og_description":"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/","og_site_name":"Greenwebpage Community","article_published_time":"2026-05-08T14:58:20+00:00","article_modified_time":"2026-05-08T16:30:41+00:00","og_image":[{"width":1200,"height":672,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Set Up Prometheus Monitoring: From Installation to Dashboards","datePublished":"2026-05-08T14:58:20+00:00","dateModified":"2026-05-08T16:30:41+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/"},"wordCount":1519,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg","keywords":["Database","DevOps","Monitoring","Promethus","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/","url":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/","name":"How to Set Up Prometheus Monitoring: From Installation to Dashboards - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg","datePublished":"2026-05-08T14:58:20+00:00","dateModified":"2026-05-08T16:30:41+00:00","description":"This guide will help you set up a full Prometheus monitoring stack for Ubuntu 24.04 LTS, including the installation of Prometheus, Node Exporter, and learning how to use the PromQL queries.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/05\/How-to-Set-Up-Promotheus.jpg","width":1200,"height":672,"caption":"How to Set Up Promotheus"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-set-up-prometheus-monitoring-from-installation-to-dashboards\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Set Up Prometheus Monitoring: From Installation to Dashboards"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=16574"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16574\/revisions"}],"predecessor-version":[{"id":16621,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16574\/revisions\/16621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/16600"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=16574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=16574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=16574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}