{"id":3614,"date":"2026-09-14T06:00:26","date_gmt":"2026-09-13T23:00:26","guid":{"rendered":"https:\/\/sumberlaba.com\/index.php\/2026\/09\/14\/how-to-use-prometheus-for-system-monitoring-a-practical-tutorial\/"},"modified":"2026-09-14T06:00:26","modified_gmt":"2026-09-13T23:00:26","slug":"how-to-use-prometheus-for-system-monitoring-a-practical-tutorial","status":"publish","type":"post","link":"https:\/\/sumberlaba.com\/index.php\/2026\/09\/14\/how-to-use-prometheus-for-system-monitoring-a-practical-tutorial\/","title":{"rendered":"How to Use Prometheus for System Monitoring: A Practical Tutorial"},"content":{"rendered":"<h1>How to Use Prometheus for System Monitoring: A Practical Tutorial<\/h1>\n<p>Prometheus is an open-source monitoring system that scrapes metrics from your servers and applications, stores them as time-series data, and fires alerts when thresholds break. Its pull-based model and powerful PromQL query language have made it the default choice for Linux and Kubernetes monitoring.<\/p>\n<p>This tutorial walks you through installing Prometheus, connecting node_exporter, writing your first query, and setting up basic alerts.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/800x600\/4a90d9\/ffffff?text=how%20to%20use%20prometheus%20for%20system%20monitoring\" alt=\"Article illustration\" style=\"display:block;margin:20px auto;max-width:100%;height:auto;border-radius:8px;\" \/><\/p>\n<h2>1. Install Prometheus and node_exporter<\/h2>\n<p>Download the Prometheus binary, extract it, and start it with <strong>.\/prometheus &#8211;config.file=prometheus.yml<\/strong>. Then install node_exporter on every host you want to monitor \u2014 it exposes CPU, memory, disk, and network metrics on port 9100.<\/p>\n<h2>2. Configure Scraping<\/h2>\n<p>Edit prometheus.yml and add a scrape target:<\/p>\n<ul>\n<li>job_name: &#8220;nodes&#8221;<\/li>\n<li>targets: [&#8220;localhost:9100&#8221;]<\/li>\n<li>scrape_interval: 15s<\/li>\n<\/ul>\n<p>Restart Prometheus and verify the target is UP under Status \u2192 Targets in the web UI on port 9090.<\/p>\n<h2>3. Query Metrics with PromQL<\/h2>\n<p>Use expressions like <strong>node_cpu_seconds_total<\/strong> or <strong>rate(node_cpu_seconds_total[5m])<\/strong> to inspect CPU trends. Graph results directly in the built-in expression browser.<\/p>\n<h2>4. Add Alerting<\/h2>\n<p>Define alert rules in a rules.yml file, point Alertmanager at them, and route notifications to email, Slack, or PagerDuty.<\/p>\n<h2>Conclusion<\/h2>\n<p>Prometheus turns raw system metrics into actionable insight. Start with node_exporter, master a few PromQL queries, then layer on Grafana dashboards and Alertmanager as your infrastructure grows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Use Prometheus for System Monitoring: A Practical Tutorial Prometheus is an open-source monitoring system that scrapes metrics from your servers and applications, stores them as time-series data, and fires alerts when thresholds break. Its pull-based model and powerful PromQL query language have made it the default choice for Linux and Kubernetes monitoring. This &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,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-3614","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/3614","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=3614"}],"version-history":[{"count":0,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/3614\/revisions"}],"wp:attachment":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/media?parent=3614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/categories?post=3614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/tags?post=3614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}