Tools: How to Install Prometheus and Node Exporter on CentOS Stream 9 (The Upstream Way)
Why the Upstream Approach?
Key Best Practices for Deployment
The Complete Step-by-Step Guide
3 Common Mistakes to Avoid If you are managing Linux infrastructure, having real-time visibility into your servers is non-negotiable. Prometheus is the industry-standard, open-source monitoring and alerting toolkit. Paired with Node Exporter, it becomes a powerhouse for collecting host metrics like CPU usage, memory consumption, load averages, and network statistics. In this guide, we'll look at the SysAdmin-approved way to install Prometheus and Node Exporter on CentOS Stream 9. Instead of relying on outdated third-party RPMs, we will use the official upstream binaries. This approach is cleaner, easy to audit, and simple to keep updated. Relying on old third-party repositories can introduce version mismatches, missing features, and security issues. By downloading directly from the official Prometheus releases and verifying the SHA256 checksums, you guarantee your binaries are authentic and uncorrupted. If you are setting this up in a production environment, here are the critical steps you need to follow: 1. Create Dedicated Service Users
For security purposes, services should never run as root. Create dedicated system users (prometheus and node_exporter) with no login shell to isolate the services. 2. Verify Official BinariesAlways download the sha256sums.txt alongside your tarballs and verify them using sha256sum -c. Only proceed if the output says OK. 3. Configure Systemd ServicesCreate custom systemd unit files for both Prometheus and Node Exporter. This ensures they run reliably in the background, start automatically on boot, and manage data retention properly (e.g., by setting the --storage.tsdb.retention.time=15d flag). 4. Lock Down the Firewall
CRITICAL SECURITY WARNING: Exposing port 9090 (Prometheus UI) or 9100 (Node Exporter) directly to the public internet is highly discouraged. We have documented the entire process from start to finish. If you want the complete, copy-paste friendly commands, we have put together the full SysAdmin guide on our blog. π How to Install Prometheus and Node Exporter on CentOS Stream 9 Happy monitoring! Let me know in the comments if you have any questions about configuring your scrape jobs or writing PromQL queries. Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to ? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse