# Self-Hosted Observability for Production VPSs

> One Grafana pane of glass — metrics, logs, and phone-call alerting — for every production server I run.

URL: https://www.matthewswong.com/en/case-studies/monitoring-stack/

- DevOps / Observability

- **1** dashboard for all servers
- **24/7** alerting with escalation

## Problem

Multiple production servers (German and Indonesian sites) had no unified view of CPU, memory, or logs. Incidents were diagnosed by SSH-ing from box to box, and there was no alerting at all.

## Approach

1. Deployed Grafana + Prometheus (node and container exporters) + Loki for logs across all production VPSs.
2. Built dashboards for per-server health and top resource consumers.
3. Made log levels searchable per server and monitored the health of every scrape target.
4. Set up on-call alerting with escalation chains that ring developers' phones.

## Outcome

A single pane of glass for every production server. Incidents are now surfaced by alerts instead of user reports, protecting uptime for client-facing sites.

## Stack

Grafana, Prometheus, Loki, Docker, Ansible

---

- HTML version: https://www.matthewswong.com/en/case-studies/monitoring-stack/
- Bahasa Indonesia: https://www.matthewswong.com/id/case-studies/monitoring-stack/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
