SelfHostCost

Infrastructure monitoring

What it costs to self-host Prometheus + Grafana

The Prometheus monitoring system and time series database. Below is the server it needs at each fleet size, what that costs, and how long the 1 commercial product it replaces would take to cost more.

Sizing and monthly cost for Prometheus + Grafana by number of servers monitored. Memory includes 25% headroom.
Servers monitoredMemoryDiskCheapest plan that fitsServerWith backups and your time
5 servers 1.3 GB 11 GB CX23 (cost-optimized) · Hetzner Cloud $6.70 $121
10 servers 1.4 GB 12 GB CX23 (cost-optimized) · Hetzner Cloud $6.70 $121
25 servers 1.6 GB 15 GB CX23 (cost-optimized) · Hetzner Cloud $6.70 $121
50 servers 1.9 GB 20 GB CX23 (cost-optimized) · Hetzner Cloud $6.70 $121
100 servers 2.5 GB 30 GB CX23 (cost-optimized) · Hetzner Cloud $6.70 $121
250 servers 4.3 GB 60 GB CX33 (cost-optimized) · Hetzner Cloud $10.06 $125
500 servers 7.3 GB 110 GB CX43 (cost-optimized) · Hetzner Cloud $18.46 $135

The sizing model for Prometheus + Grafana

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.

The base figures are our estimate, derived from the services in the project's reference Docker Compose file, because it does not publish a minimum specification we could cite. The per-server increments are ours in every case. They are deliberately generous rather than optimistic: a comparison that undersizes the server flatters self-hosting.

Time, not just money

Prometheus + Grafana is rated medium to operate, which in this model means about 6 hours to get it running properly the first time and 1.5 hours a month after that. At $75 an hour that is $450 once and $112 a month, which is usually the largest line in the whole calculation.

What it replaces

Commercial productIts cost at 25 serversPrometheus + Grafana at 25 serversBreak-even
Datadog Infrastructure Pro $375 $121 about a month full breakdown

Where to put Prometheus + Grafana

1.6 GB of memory and 15 GB of disk is what this needs at 25 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.

Project facts

LicenceApache License 2.0
Licence caveatPrometheus is Apache-2.0, but Grafana, used here for the dashboards, is AGPL-3.0. That only matters if you modify Grafana and offer it to others over a network.
Written inGo
GitHub stars66,156
Open issues916
Latest releasev3.14.0
Last commit2026-09-21
Repository checked2026-09-21
Projectprometheus.io · prometheus/prometheus

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.

Related