How should the server side of a production Prometheus setup for a few hundred nodes be laid out, and which piece of hardware matters most?
On at least two servers: one runs Prometheus (plus the Push-Gateway if needed), the other the front-end components Grafana, Alertmanager and optionally Alerta. Mid-range hardware is enough; fast storage (SSD) is what counts.
* Back end scrapes and stores; the front end serves people and stays the same when more Prometheus servers join. *
A single VM is fine for a first test, but it is not realistic: the same machine would produce metrics, store them and serve the dashboards. The two-server split separates the part that grows from the part people look at:
| Server | Runs | Why it sits there |
|---|---|---|
| Back end | Prometheus, Push-Gateway | Scrapes and stores the metrics; this is the disk-heavy part |
| Front end | Grafana, Alertmanager, Alerta | What people use; each of these can connect to almost any number of Prometheus instances |
That second column is the point. When one Prometheus is no longer enough, you add more Prometheus servers and leave the front end alone, so the setup keeps a single point of administration. Redundancy is a separate decision: making every component fail-safe means roughly doubling the hardware.
Hardware: top-end servers are not needed, but fast block storage is. An SSD noticeably shortens the time Prometheus needs to answer queries. Because Prometheus is not meant for long-term trending anyway, an ordinary SSD of a few gigabytes (depending on how many systems are monitored) is enough; old servers fitted with SSDs make a fine base.
Alerta is an open-source alert console. The Alertmanager's own web interface is rudimentary, so Alerta collects the alerts into a dashboard view of the kind admins know from Nagios or Icinga.
Go deeper:
Alerta — Integrations and plug-ins — how Alerta receives alerts from the Prometheus Alertmanager.
alerta/prometheus-config on GitHub — a ready-made Prometheus, Alertmanager and Alerta setup to try the layout.