Skip to Content
Prometheus

Prometheus Hosting: Your Metrics, Collected on Your Server

With Prometheus hosting, the open-source monitoring and alerting toolkit Prometheus runs in Docker on a VDS you own, served from its own HTTPS address. Prometheus pulls numeric metrics over HTTP from your servers and applications at a fixed interval and stores them as time series with labels; PromQL then lets you graph them, compare them and write threshold rules. It starts out scraping itself, so the graph has data the moment you sign in.

Prometheus has no user accounts of its own. Before it ever starts, we put a user name and password in front of every path, then confirm that the right password gets in and a wrong one is turned away. Opening your address brings up your browser's own sign-in prompt.

Install

From $15/mo

Comes with

  • Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
  • Docker
  • HTTPS address
  • Admin account set up during installation
  • Full root access
Prometheus3.16.0
Prometheus query page with a PromQL expression and a line graph of the last few minutes

Installation

Done for you at install time

  • Password on UI, API and metrics

    Prometheus's web configuration file puts the user interface, the query API and the metrics page behind a user name and password. The user name is admin; the password appears once you open the single-use link we e-mail at delivery.

  • First target already scraping

    Prometheus reads its own metrics every 15 seconds. That target is the first entry on the target list, and you can graph Prometheus's own metrics on the query page straight away.

  • Data on a persistent volume

    The time series database lives on a Docker volume, so the history survives a recreated container. Retention was left alone, which means Prometheus's default of 15 days.

  • Plain files for configuration

    prometheus.yml and web.yml sit in /opt/altinsoft/app/prometheus/ on the server, mounted read-only into the container. Adding targets or rules means editing those files as root over SSH.

  • Official image, pinned

    We use the project's prom/prometheus image with a fixed tag. This install runs 3.16.0. Restarts keep the version, and promtool, which checks configuration and rule files, ships in the same image.

  • Port 9090 kept inside

    Prometheus's port 9090 is not published; requests come in through Caddy, the reverse proxy in front of it, on HTTPS. The health path /-/healthy answers without a login, but only with a fixed line saying the server is up and no data.

Screens

Prometheus's own interface

Click a screenshot to see it larger.

  • The query page with a PromQL expression and a graph of the last few minutes.
  • Target health: the self-scrape target Prometheus starts with, and its state.
  • Alerting rules: a sample rule that has not fired.

Use cases

Typical things to watch with Prometheus

  • Your Linux servers

    Install node_exporter on every Linux machine you care about; it exposes CPU, memory, disk and network metrics on port 9100 by default. Add those addresses as targets and you query the whole fleet from one place.

  • Numbers from your own code

    Prometheus client libraries let you add counters and gauges to your application and expose them on a /metrics endpoint: requests served, jobs waiting in a queue, failed payments. Prometheus scrapes that endpoint like any other target.

  • Threshold rules

    An alerting rule is a PromQL expression, for example one that becomes active when a target cannot be scraped, and a for clause makes Prometheus wait until the condition has held for a while. To turn firing alerts into e-mails or chat messages you also need Alertmanager, which this install does not include.

  • A data source for dashboards

    The Prometheus docs describe Grafana and other API consumers reading the collected data for visualisation. Grafana is not part of this install, and we have not tried connecting an outside Grafana to this address.

Steps

From order to first query

  1. 01

    Order and size the disk

    Starting from this page, the order form comes up with Prometheus selected, and plans below its minimum resources cannot be selected. Pick the disk with the amount of metrics you plan to keep in mind. Prometheus is orderable in 9 locations at the moment.

  2. 02

    Install and a password test

    After payment the server is built and Prometheus starts with its password in place. A request with the right password must pass and one with a wrong password must fail; then the service normally activates. If a step fails, our team reruns it or delivers the server without Prometheus.

  3. 03

    Address, admin, password

    Your delivery e-mail lists the Prometheus address and the user name admin, and its one-time link reveals the password. Open the address, type both into the browser prompt and you land on the query page.

Packages

Packages for Prometheus

Only packages that meet the minimum Prometheus needs are listed; prices are monthly.

  • USA 1

    Lowest-priced package that runs this app

    $15/mo

    4 vCPU4 GB RAM30 GB NVMe

    Install
  • USA 2

    $18/mo

    4 vCPU6 GB RAM40 GB NVMe

    Install
  • USA 3

    $22/mo

    4 vCPU8 GB RAM50 GB NVMe

    Install
  • USA 4

    $27/mo

    4 vCPU10 GB RAM60 GB NVMe

    Install
  • USA 5

    $33/mo

    4 vCPU12 GB RAM70 GB NVMe

    Install
  • USA 6

    $37/mo

    6 vCPU14 GB RAM80 GB NVMe

    Install
  • USA 7

    $40/mo

    6 vCPU16 GB RAM90 GB NVMe

    Install
  • USA 8

    $46/mo

    8 vCPU18 GB RAM100 GB NVMe

    Install

Technical

Technical details

App version
3.16.0
Operating system
Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
Minimum CPU
1 vCPU
Minimum memory
1 GB
Minimum disk
10 GB

Prometheus on this server: what is included, what is not

Prometheus is an open-source systems monitoring and alerting toolkit that collects and stores numeric metrics as time series. It joined the Cloud Native Computing Foundation in 2016. According to its docs, collection works by pulling over HTTP: each target exposes its metrics at an address, and Prometheus fetches them on a schedule. Every series is identified by a metric name plus key/value labels, and PromQL lets you filter, aggregate and divide across those labels.

The Prometheus ecosystem has several components, and the docs call many of them optional. This service installs only the Prometheus server, which scrapes, stores, answers queries and evaluates rules. Alertmanager, which sends alerts to e-mail or chat, the Pushgateway for short-lived jobs and Grafana for dashboards are not installed; add them yourself if you need them.

The docs are also clear about where Prometheus is the wrong tool. If you need 100 percent accuracy, such as for per-request billing, the collected data will likely not be detailed and complete enough. Prometheus is built to be the system you turn to during an outage to work out what is going on.

Ecosystem components and their status here
ComponentWhat it doesOn this server
Prometheus serverScrapes, stores, queries, evaluates rulesInstalled, password-protected
Exporters (e.g. node_exporter)Expose a machine's or service's metricsYou install them on the monitored hosts
Client librariesInstrument your own codeUsed inside your applications
AlertmanagerGroups alerts and sends notificationsNot installed
PushgatewayHolds metrics from short-lived jobsNot installed
GrafanaDashboards and visual reportsNot installed
  • Retention and disk

    With no retention time or size set, Prometheus keeps 15 days, and this install does not change that. The storage docs put the average at 1 to 2 bytes per sample and give a rough formula: retention in seconds × ingested samples per second × bytes per sample.

  • A single node

    Local storage is neither clustered nor replicated, the docs say, so it is not durable against a failed drive or server on its own. They ask you to treat it like any other single-node database.

  • Backups and snapshots

    For backups, the docs recommend the snapshot API. It belongs to the admin APIs, which stay disabled unless the --web.enable-admin-api flag is set; that flag is not set on this install.

Adding targets: the file, the reload and keeping it safe

What Prometheus scrapes is defined in the scrape_configs section of prometheus.yml. On this server that file is /opt/altinsoft/app/prometheus/prometheus.yml, and at delivery it holds one job: Prometheus itself, with its login. To monitor another host you add a job with that host's address and port; alerting and recording rules go into separate files referenced under rule_files. promtool, shipped in the image, can check those files before Prometheus loads them.

Prometheus reads its configuration at start-up. The docs explain that sending SIGHUP to a running Prometheus reloads the configuration and rule files, and that rule changes are applied only if every rule file is well formed. The HTTP reload endpoint, /-/reload, needs the --web.enable-lifecycle flag, which this install leaves off. We walked through this once on our own test install: we added a rule file to the prometheus folder and a rule_files line to prometheus.yml, checked the files with promtool inside the running container (docker compose -p altinsoft-app exec prometheus promtool check config /etc/prometheus/prometheus.yml), and made Prometheus re-read them with docker compose -p altinsoft-app kill -s HUP prometheus in /opt/altinsoft/app. The rule appeared on the Alerts page and the target stayed up. Check the target list after every change.

  • Targets must be reachable from here

    Prometheus does the fetching. The exporter port on a monitored machine has to be reachable from this VDS over the internet, so machines at home or on a closed network cannot be scraped unless a path to them exists.

  • Do not leave exporters open

    node_exporter answers on port 9100 over plain HTTP with no password by default. Its README shows TLS and basic auth through the same kind of web configuration file. On top of that, a firewall rule on the monitored host that allows 9100 only from your Prometheus server's IP keeps others from reading your metrics.

  • Short-lived jobs

    A script that runs for a few seconds is gone before Prometheus comes round to scrape it. The docs describe pushing such metrics to an intermediary Pushgateway instead, and there is no Pushgateway on this install.

  • The for clause in rules

    A rule without for becomes active on its first evaluation. With for: 5m, Prometheus waits until the condition has held for five minutes before the alert fires, showing it as pending meanwhile; keep_firing_for keeps an alert firing for a while after the condition clears.

The browser login, changing the password, upgrades

Prometheus has no sign-in page. The password is requested through HTTP basic authentication, so the prompt you see is drawn by your browser rather than by the site, and the interface has no log-out button. Browsers usually remember basic-auth credentials until they are closed, so on a shared computer close the browser when you are done. The Prometheus docs label this basic auth and TLS support as experimental.

On this install the password lives in two places. web.yml holds its bcrypt hash, and Prometheus re-reads that file on every request. secrets/admin_password holds the password itself, used by Prometheus's own scrape and by the container health check. Changing the password therefore means updating both files together: change only the hash and Prometheus can no longer scrape itself, and the container reports as unhealthy. The docs mention htpasswd as one way to produce a bcrypt hash. Our team has not carried out this change on this layout yet.

The Prometheus version stays as installed. When to move to a newer release, and doing the move, are yours as the server owner; read the release notes first, and copy the data volume and the configuration folder before you upgrade.

  • Who knows the password

    There is one user name and one password, and anyone holding them can read every metric and call the API. If you connect a tool such as Grafana, it will sign in with those same details.

  • Metrics give things away

    Metric names and labels can reveal host names, internal addresses and how your services fit together. That is why every path except the health check sits behind the login here; keep it that way.

FAQ

Frequently asked questions

10 questions

What do I sign in to Prometheus with?

The user name is admin, and the password is the one the delivery e-mail's single-use link displays. Your browser opens its own small sign-in prompt when you visit the address; enter both there.

Why is there no login page or log-out button?

Prometheus has no user account system. The password comes from Prometheus's web configuration file and is asked for through the browser's basic authentication, where the browser draws the prompt and there is nothing to log out of. Closing the browser usually makes it forget the login.

How do I change the password?

Not from the interface: it is a file edit on the server, done as root through SSH. The bcrypt hash is in web.yml and the password itself in secrets/admin_password, and both have to change together, otherwise Prometheus cannot scrape itself. We have not yet run through these steps on our setup.

Will alerts reach me by e-mail or Telegram?

Not with this install alone. Prometheus evaluates alerting rules and lists active alerts in its own interface, but grouping them and sending notifications to e-mail, chat or anywhere else is Alertmanager's job, and Alertmanager is not installed.

Is Grafana included?

No, this service installs Prometheus only. Prometheus can draw graphs on its own query page; for richer dashboards you would install Grafana separately and add Prometheus as a data source. We have not tried that connection ourselves.

How do I monitor my other servers?

Install an exporter on each one; for Linux the common choice is node_exporter, which serves metrics on port 9100. Then add that address as a new job in prometheus.yml on this server and have Prometheus reload its configuration. Open the exporter port only to your Prometheus server's IP.

How long are metrics kept?

15 days by default, and this install keeps the default. A longer retention time or a size limit can be set with Prometheus's retention flags and needs more disk. The docs' rough sizing: retention in seconds × samples ingested per second × 1 to 2 bytes per sample.

How much memory and disk will Prometheus use?

That depends on how many targets and time series it scrapes, and we have not measured it for this install. For Prometheus, the order form starts at plans with 1 GB of memory. If you plan to watch many hosts or keep data for a long time, leave generous room in memory and disk.

How do I back up the metrics?

The docs recommend the snapshot API, which needs the --web.enable-admin-api flag and is switched off here. With the automatic backup add-on, the whole virtual server is backed up; we have not tested restoring Prometheus from such a backup.

Does Prometheus upgrade itself?

No. The image is pinned to a version tag and stays there until you change it. Upgrading is the server owner's decision and job; read the release notes and copy the data volume before you do it.

Catalogue

Prometheus

Get Prometheus installed on your server

Pick your package and pay; the app's installation starts with your order.