One open-source monitoring platform instead of a paid product, 250+ nodes deep
Replaced a commercial monitoring product with Prometheus, Grafana, Alertmanager and Blackbox, across cloud regions and on-premise sites. 250+ Windows and Linux nodes from the host up to application services, plus SSL, endpoint and SLA checks on 50+ websites.
- Nodes
- 250+ Windows and Linux
- Websites
- 50+ with SSL and SLA checks
- Footprint
- Multiple cloud regions and on-premise sites
- Previous product
- Previous product: withheld under NDA
- Licence cost removed
- Licence cost removed: withheld under NDA
- Hostnames and site names
- Hostnames and site names: withheld under NDA
Employer work under NDA. Architecture and reasoning are described; client names, volumes and internals are withheld.
Context
Monitoring was a commercial product with a licence cost, and the estate was spread across cloud regions and on-premise data centres.
The problem
The goal was one view of everything, from the host up to application services and the public websites, without paying a vendor for it and without each site needing its own monitoring.
What made it hard
- Sites are separate networks. The design could not ask every site to open an inbound port to a central server.
- A mixed Windows and Linux estate, so one collection approach had to cover both.
- Dashboards had to sign in against the existing directory, not a new set of accounts.
Options considered
Keep the product and add licences
Rejected. A recurring cost for something open-source tools do well.
One central Prometheus scraping every site
Rejected. It needs inbound access into every site, and one network problem blinds the whole view.
ChosenA Prometheus agent per site, writing out over TLS to a central store
Sites only make outbound connections, each site is its own failure domain, and adding a site does not change the core.
The decision
Agents at each site push to one central Prometheus behind nginx with TLS. Grafana for dashboards with LDAP sign-in, Alertmanager routing to Teams and email by who can act, and Blackbox probing every public website for SSL expiry, availability and response time against an SLA.
My part
I led it end to end: the design, the build, the exporters across the fleet, the dashboards and the alert routing.
Stack
- Prometheus (agent mode)
- Grafana
- Alertmanager
- Blackbox Exporter
- Windows Exporter
- node_exporter
- nginx
- LDAP
- Postgres
Result
- The commercial monitoring licence was retired.
- 250+ nodes and 50+ websites in one place, from host metrics up to application services and certificate expiry.
- Not measured: detection time before and after. There was no clean baseline to compare against, so no improvement figure is claimed.
What I would change
Agree what each SLA means with the owner of each website before writing the probe. A probe can only measure the definition it is given.