SelfHostCost

Prometheus + Grafana · Infrastructure monitoring

Self-hosting Prometheus + Grafana for 5 servers: the cost

At 5 monitored servers, Prometheus + Grafana needs 1.3 GB of memory and 11 GB of disk. That fits the CX23 (cost-optimized) at Hetzner Cloud for $6.70 a month. Add backups and the time it takes to look after and the real figure is $121 a month.

Server
$6.70CX23 (cost-optimized), 2 vCPU
Backups
$1.34provider snapshots
Your time
$1121.5 h a month at $75
All in
$121per month
First-time setup
$450about 6 hours, once

How 1.3 GB was arrived at

1 GB covers the stack at rest, every container the project ships included. 5 monitored servers at 10 MB each adds 0.1 GB, giving 1.1 GB. Adding 25% headroom so the machine is not run at its ceiling gives 1.3 GB, and the smallest plan at or above that is the CX23 (cost-optimized) with 4 GB.

Disk works the same way: 10 GB to begin with, plus 0.2 GB per server, so 11 GB against the 40 GB the plan includes.

Prometheus collects the metrics and Grafana draws the dashboards, with Alertmanager for alerts and node_exporter on each server. Disk follows Prometheus's own capacity formula at its default 15-day retention: about 1,000 series per server scraped every 15 seconds at 2 bytes per sample is roughly 0.2 GB per server. Memory per server is our estimate for the same series count.

Over three years

PeriodServer and backupsYour timeTotal
Setup, once—$450$450
Per month$8.04$112$121
First year$96.48$1,800$1,896
36 months$289$4,500$4,789

If you do not price your own time, the 36-month figure is $289 instead. Both numbers are real; which one applies depends on whether the hours would otherwise have been billable.

What you would be paying instead at this size

Commercial productTierPer monthDifference
Datadog Infrastructure Pro $75.00 -$45.54 breakdown

A positive difference means self-hosting is cheaper at this size, with your time already counted.

Where to put Prometheus + Grafana

1.3 GB of memory and 11 GB of disk is what this needs at 5 servers. The cheapest plan that fits, among the providers whose prices we have read ourselves, is the CX23 (cost-optimized) at Hetzner Cloud for $6.70 a month.

Go to Hetzner Cloud Compare hosts

We are not claiming this is the cheapest server on the internet. It is the cheapest one we can honestly quote. Vultr and PikaPods publish prices we could not read programmatically, and may well undercut it. Price them yourself before you commit.

Get the migration checklist for this tool

A one-page pre-flight list: data export path, sizing, backup plan, and the rollback step most people skip.

Other sizes and related pages