{"id":2087,"date":"2026-07-22T18:03:35","date_gmt":"2026-07-22T11:03:35","guid":{"rendered":"https:\/\/sumberlaba.com\/index.php\/2026\/07\/22\/how-to-set-up-a-monitoring-system-with-prometheus-a-step-by-step-guide\/"},"modified":"2026-07-22T18:03:35","modified_gmt":"2026-07-22T11:03:35","slug":"how-to-set-up-a-monitoring-system-with-prometheus-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/sumberlaba.com\/index.php\/2026\/07\/22\/how-to-set-up-a-monitoring-system-with-prometheus-a-step-by-step-guide\/","title":{"rendered":"How to Set Up a Monitoring System with Prometheus: A Step-by-Step Guide"},"content":{"rendered":"<h1>How to Set Up a Monitoring System with Prometheus: A Step-by-Step Guide<\/h1>\n<p>Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability. Its pull model collects time-series data from configured endpoints, making it ideal for dynamic cloud environments. This tutorial walks through a basic Prometheus setup with node_exporter and Grafana.<\/p>\n<p>Before starting, ensure you have a Linux server (Ubuntu 20.04+ used here), root access, and a basic understanding of terminal commands. You&#8217;ll also need port 9090 open for Prometheus and port 3000 for Grafana.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/800x600\/4a90d9\/ffffff?text=how%20to%20set%20up%20a%20monitoring%20system%20with%20Prometheus\" alt=\"Article illustration\" style=\"display:block;margin:20px auto;max-width:100%;height:auto;border-radius:8px;\" \/><\/p>\n<h2>Install and Configure Prometheus<\/h2>\n<p>Download the latest Prometheus release:<\/p>\n<ul>\n<li>Visit <code>https:\/\/prometheus.io\/download\/<\/code> and grab the <code>linux-amd64<\/code> tarball<\/li>\n<li>Extract it: <code>tar xvf prometheus-*.tar.gz<\/code><\/li>\n<li>Edit <code>prometheus.yml<\/code> to define scrape targets. Default config already scrapes Prometheus itself on port 9090<\/li>\n<li>Run Prometheus: <code>.\/prometheus --config.file=prometheus.yml<\/code><\/li>\n<\/ul>\n<p>Verify it&#8217;s running by visiting <code>http:\/\/your-server-ip:9090<\/code> \u2014 the expression browser should load.<\/p>\n<h2>Add Node Exporter for System Metrics<\/h2>\n<p>Node exporter exposes hardware and OS metrics. Install it on the same or another machine:<\/p>\n<ul>\n<li>Download and extract node_exporter similarly from the Prometheus downloads page<\/li>\n<li>Run it: <code>.\/node_exporter<\/code> (listens on port 9100 by default)<\/li>\n<li>Add it to <code>prometheus.yml<\/code> under <code>scrape_configs<\/code>:<\/li>\n<\/ul>\n<pre>  - job_name: 'node_exporter'\n    static_configs:\n      - targets: ['localhost:9100']<\/pre>\n<p>Restart Prometheus and check the targets page (<code>\/targets<\/code>) \u2014 should show &#8220;UP&#8221;.<\/p>\n<h2>Visualize Metrics with Grafana<\/h2>\n<p>Grafana connects to Prometheus for dashboards. Install Grafana:<\/p>\n<ul>\n<li>Follow official APT installation for your distro, then start with <code>sudo systemctl start grafana-server<\/code><\/li>\n<li>Access <code>http:\/\/your-server-ip:3000<\/code>, login (admin\/admin), add a Prometheus data source pointing to <code>http:\/\/localhost:9090<\/code><\/li>\n<li>Import a pre-built dashboard (e.g., Node Exporter Full ID 1860) for instant system monitoring<\/li>\n<\/ul>\n<h2>Set Up Basic Alerting (Optional)<\/h2>\n<p>Alertmanager handles alerts. Install and configure <code>alertmanager.yml<\/code> with a receiver (email, Slack). Define alert rules in Prometheus config <code>rule_files<\/code>. Test with a simple rule like high CPU usage.<\/p>\n<p>Your monitoring system is now live. Explore PromQL for custom queries and add more exporters (e.g., <code>blackbox_exporter<\/code> for endpoints). Regularly update and tune retention settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Set Up a Monitoring System with Prometheus: A Step-by-Step Guide Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability. Its pull model collects time-series data from configured endpoints, making it ideal for dynamic cloud environments. This tutorial walks through a basic Prometheus setup with node_exporter and Grafana. Before starting, &hellip; <\/p>\n","protected":false},"author":2716,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-2087","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/2087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/users\/2716"}],"replies":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/comments?post=2087"}],"version-history":[{"count":0,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/2087\/revisions"}],"wp:attachment":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}