DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Blog

How to Install Prometheus on a Linux VPS

A complete Linux VPS walkthrough for installing Prometheus, adding Node Exporter, configuring scrape targets, verifying UP endpoints, scaling with file-based discovery, and securing ports 9090 and 9100.
Length11 min Posted Quest giverVGSources Team

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Prometheus on a Linux VPS by downloading the release archive for the server’s architecture, extracting it, creating a YAML configuration, and starting ./prometheus --config.file=prometheus.yml. A practical single-VPS setup keeps Prometheus on port 9090, runs Node Exporter on port 9100 for host metrics, and adds both endpoints under scrape_configs. Verify the installation in the Prometheus UI, the /metrics endpoint, and the Targets page before exposing anything beyond a trusted network.

What you are installing

Prometheus is a monitoring server that stores time-series data gathered by periodically scraping HTTP metrics endpoints. The server process is configured with YAML rather than a graphical wizard. On a small Linux VPS, the usual arrangement is:

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Component Role Default port in this setup
Prometheus server Scrapes targets, stores time-series data, and provides the expression browser and web interface 9090
Node Exporter Exposes Linux host metrics such as CPU time and available filesystem space 9100

Prometheus scrapes the exporter over HTTP. It does not require Node Exporter to be installed on the same machine, although using localhost is the simplest starting point for one VPS. The Prometheus Authors’ Node Exporter documentation describes it as “a single static binary that you can install via tarball.”

Before you begin

  • A Linux VPS with shell access and permission to install and run long-lived processes.
  • The correct Prometheus and Node Exporter release archives for the VPS operating-system and CPU architecture.
  • A plan for where Prometheus will keep its time-series database. By default, it uses its data path unless you change that behavior with startup flags.
  • A trusted network path for the web interface. Port 9090 should not be left openly reachable from the public internet without access controls.
  • Firewall rules that allow only the traffic you actually need. If Prometheus and Node Exporter run on the same VPS, Node Exporter normally needs to be reachable only locally.

Check the architecture before downloading:

uname -m

Use the result to choose the matching archive on the official Prometheus downloads page. Do the same for the Node Exporter release. Avoid copying an archive built for a different architecture; the binary may fail immediately or be unusable on the VPS.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Choose how to run Prometheus

The tarball workflow below follows the upstream distribution model. Other choices affect how you operate the installation after the first launch.

Decision Option 1 Option 2 When to choose
How to obtain the binary Upstream release tarball Operating-system package Use the tarball when you want the release supplied by the Prometheus project and a predictable directory layout. A package can fit an existing distribution update process, but its version and paths are controlled by that distribution.
Process management Start the binary manually Run it as a system service Manual execution is useful for a first validation. A service manager is the safer operational choice for automatic startup and restart on a production VPS.
Web access Local-only access Protected reverse-proxy access Keep the interface local while testing. If remote operators need it, put it behind a reverse proxy with authentication and network restrictions.
Target inventory static_configs file_sd_configs Static targets are straightforward for one or a few stable VPS instances. File-based discovery is better for a changing fleet because Prometheus watches the target file and updates the list when it changes.
Monitoring scope Prometheus on one VPS Centralized Prometheus server A local server is simple for a single host. A centralized server is more appropriate when one Prometheus instance must scrape multiple VPS instances.

Install Prometheus from the release archive

1. Download and extract the matching release

Open the official Prometheus downloads page, select the current Prometheus release for your VPS architecture, and download the Linux archive. After the archive is on the VPS, extract it and enter the extracted directory:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
tar -xzf prometheus-*.tar.gz
cd prometheus-*

The wildcard is convenient when the directory contains only the archive you just downloaded. If it matches more than one file, use the exact filename shown by ls instead. The extracted directory contains the Prometheus executable and the files needed for the basic configuration.

2. Create the first configuration

Create prometheus.yml in the extracted directory. This minimal configuration scrapes Prometheus itself every 15 seconds:

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ["localhost:9090"]

global.scrape_interval controls how often targets are scraped unless a job overrides it. The scrape_configs section is where scrape jobs belong. Each job has a name and one or more target definitions; static_configs is the simplest form for a fixed list.

Keep YAML indentation exact. A misplaced space can prevent Prometheus from loading the file. Save the file, then run the binary from the directory containing it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
./prometheus --config.file=prometheus.yml

Prometheus starts its web interface on port 9090 in this basic arrangement and begins scraping the local target. The time-series database is written to Prometheus’s data path unless you change it with the available startup flags. If you start the process in an interactive shell, closing that shell normally ends the process; use your distribution’s service manager for a persistent production service.

3. Open the interface safely

For a local check on the VPS, use:

curl http://localhost:9090/metrics

From an administrator workstation, use http://<vps-address>:9090 only through a trusted network path or a protected reverse proxy. The Prometheus security guidance assumes that only trusted users can change command-line arguments, configuration files, and rule files. Treat access to the interface and to the directory containing prometheus.yml as administrative access, not as a public status page.

Add Linux host metrics with Node Exporter

1. Download and run Node Exporter

Download the Node Exporter release that matches the VPS architecture, extract its tarball, and run the single static binary. The standard example listens on port 9100:

tar -xzf node_exporter-*.tar.gz
cd node_exporter-*
./node_exporter

In a second shell on the VPS, confirm that it is serving metrics:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl http://localhost:9100/metrics

The response should contain Prometheus-formatted samples. The Node Exporter documentation specifically uses metrics including node_cpu_seconds_total and node_filesystem_avail_bytes as examples of Linux host data.

2. Add the exporter as a scrape job

Edit prometheus.yml and add a second job under scrape_configs:

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
global:
  scrape_interval: 15s

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ["localhost:9090"]

  - job_name: node
    static_configs:
      - targets: ["localhost:9100"]

The target address is the address Prometheus must contact, not the address a browser uses to reach the Prometheus UI. Here, both processes are on the same VPS, so localhost is appropriate. If the exporter runs on another VPS, replace it with that host’s reachable address and protect the exporter port with firewall rules.

3. Apply the configuration

After saving the file, restart Prometheus so it reads the new job. Where your deployment uses the documented configuration-reload mechanism, you can reload instead; a restart is the unambiguous option for a manually launched process. Watch the Prometheus process output for configuration errors before moving on.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verify every layer of the installation

Check Prometheus’s own metrics endpoint

Visit http://localhost:9090/metrics on the VPS. A response confirms that the Prometheus HTTP endpoint is running, but it does not prove that every configured target is healthy.

Check target health

Open http://localhost:9090/targets, or use the Status → Target health page in the web interface. You should see both the prometheus and node jobs with an UP state. The Targets page is the authoritative first check for scrape connectivity because it shows the last scrape result and any error returned by a target.

Run metric queries

In the expression browser, query these names one at a time:

  • up — confirms whether a scrape target is currently reachable; a value of 1 means the target is up.
  • node_cpu_seconds_total — checks that Node Exporter is exposing CPU time series.
  • node_filesystem_avail_bytes — checks that filesystem-availability metrics are present.

A successful query proves more than an open port: Prometheus has parsed the response and stored samples for that target.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Troubleshoot a target marked DOWN

What you observe What to check Typical correction
Node Exporter’s /metrics endpoint refuses the connection Whether the exporter process is running and listening on port 9100 Start Node Exporter and repeat curl http://localhost:9100/metrics.
The endpoint works locally, but Prometheus reports a scrape error The target address in prometheus.yml, YAML indentation, and whether Prometheus was restarted or reloaded Correct the targets value, fix the YAML, then apply the configuration.
Prometheus cannot reach a remote exporter Firewall rules, the exporter bind address, and routing between the two VPS instances Allow only the required source and destination, and use an address reachable from the Prometheus server.
The UI itself is unreachable Whether Prometheus is running, which address it is bound to, and whether port 9090 is filtered Check the process output locally first; expose the interface only through a trusted path or protected proxy.
The target is UP, but expected series are missing Whether you queried the correct metric name and whether the exporter response contains the series Inspect the exporter’s /metrics output, then query the exact series name in Prometheus.

Start troubleshooting from the target’s own endpoint and move outward: exporter process, local HTTP response, Prometheus target address, firewall, and finally the Prometheus UI. This order distinguishes a dead exporter from a configuration or network problem.

Secure a Prometheus deployment on a public VPS

Keep administrative interfaces private

Port 9090 exposes query and configuration-related operational information. Bind access locally while you are testing, or allow it only from a trusted management network. If remote access is required, place Prometheus behind a reverse proxy that provides authentication and restricts the proxy at the network layer. Do not treat an obscure URL as a security control.

Protect Node Exporter

Node Exporter reveals host-level information. When it runs on the same VPS as Prometheus, a local target of localhost:9100 avoids making port 9100 public. For remote scraping, permit only the Prometheus server to reach the exporter and avoid a firewall rule that opens the port to every internet address.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Restrict file and process control

The official security guidance assumes that only trusted users can change Prometheus command-line arguments, configuration files, and rule files. Apply that principle to the account running the process and to the extracted directories: ordinary users should not be able to replace the binary or edit prometheus.yml. A service definition should run with the minimum permissions needed to read its configuration and write its data path.

Keep releases current

The Prometheus Authors’ security guidance lists a seven-day target for security fixes for Prometheus and listed exporters. Treat that as an operational deadline: monitor upstream security announcements, schedule updates, replace both server and exporter binaries when required, and verify the Targets page after each update. Test the configuration before restarting so a malformed file does not leave monitoring offline.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Monitor more than one VPS

For a small, stable installation, add each host to a separate static job or to one job with several static targets. As the fleet changes, editing the main YAML file for every host becomes error-prone. Prometheus supports file_sd_configs for this case.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

With file-based service discovery, the main configuration points to a targets.json file. Prometheus watches that file and automatically updates the scrape target list when the file changes, so adding or removing a VPS does not require editing the primary configuration for every change. Keep the discovery file writable only by the controlled process that manages inventory, and validate a change by checking the Targets page for the expected UP state.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A centralized Prometheus server can scrape Node Exporter instances on multiple VPSs. Each exporter must be reachable from the central server, and every exporter port should be restricted to that scraper’s network path. A local Prometheus instance remains useful when each VPS must retain its own short-term monitoring view or when network separation makes central scraping inappropriate.

Make the installation reliable after the first test

Use a service manager for automatic startup

The manual command proves that the binaries and configuration work, but it ties availability to a shell session. For a production VPS, run Prometheus and Node Exporter under the operating system’s service manager so they start at boot, restart after a process failure, and write logs where your normal administration tools can inspect them. Keep the exact command-line arguments from your validated manual launch, including --config.file=prometheus.yml for Prometheus and the intended data-path settings.

Separate configuration, binaries, and data

Keep the YAML configuration and downloaded release directories organized so an upgrade can replace binaries without accidentally deleting the time-series database. Record which data path the running process uses, especially if you later move it to larger storage. A full filesystem can stop new samples from being written even though the web interface still answers.

Validate before every reload or upgrade

Check the YAML indentation and target addresses before applying a change. After a restart or reload, verify all three layers again: Prometheus’s /metrics, Node Exporter’s /metrics, and the Targets page. Then run up and one Node Exporter metric query so a syntactically valid but functionally incorrect target does not go unnoticed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Useful configuration patterns

Single VPS, local metrics

Use the two-job configuration shown above when Prometheus and Node Exporter share one machine. It minimizes firewall exposure and gives you immediate visibility into both the monitoring server and the Linux host.

Remote exporter scraped by a central server

Run Node Exporter on each monitored VPS and list each exporter’s reachable address under the central Prometheus server’s scrape configuration. The exporter port must be reachable from the central server, not necessarily from an administrator’s browser. Restrict the firewall to that source and keep Prometheus’s own port protected separately.

Changing fleet

Use file_sd_configs and a managed targets.json inventory when VPS instances are frequently added, removed, or replaced. This keeps target changes out of the primary YAML and lets Prometheus notice updates automatically.

Installation checklist

  • Architecture checked with uname -m.
  • Matching Prometheus release archive downloaded and extracted.
  • prometheus.yml contains a 15-second global scrape interval and a Prometheus job targeting localhost:9090.
  • Prometheus started with ./prometheus --config.file=prometheus.yml.
  • Prometheus responds at http://localhost:9090/metrics.
  • Matching Node Exporter archive extracted and the exporter listening on port 9100.
  • curl http://localhost:9100/metrics returns metric samples.
  • A node job targeting localhost:9100 was added under scrape_configs.
  • The Prometheus process was restarted or reloaded after the edit.
  • The Targets page shows both jobs as UP.
  • Queries for up, node_cpu_seconds_total, and node_filesystem_avail_bytes return data.
  • Ports 9090 and 9100 are restricted, and only trusted users can change binaries, configuration, startup arguments, or rule files.
  • Prometheus and Node Exporter are placed under a persistent service arrangement and kept within the seven-day security-fix target described by the Prometheus Authors.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.