Prometheus and Grafana are the de facto open-source monitoring stack. Prometheus collects and stores time-series metrics and evaluates alert rules; Grafana turns them into dashboards. Together they show how servers, databases and applications behave over time and wake the right person when something breaks. A single VPS can run the whole stack for a surprisingly large environment.
Architecture
servers / apps ─▶ exporters (/metrics) ◀── Prometheus scrapes ──▶ TSDB on disk
│
alert rules ─▶ Alertmanager ─▶ email, Slack, Telegram, PagerDuty
│
Grafana ◀─┘ dashboards and queries
Prometheus pulls metrics on a schedule. Short-lived jobs can push to a Pushgateway, but most targets should be scraped directly.
Exporters
| Exporter | Monitors |
|---|---|
| node_exporter | CPU, memory, disk, network, filesystems of Linux hosts |
| cAdvisor | Docker container resource use |
| postgres_exporter, mysqld_exporter | Database health and performance |
| redis_exporter | Redis memory, clients, commands |
| blackbox_exporter | HTTP, TCP, DNS and ICMP probes from outside |
| Application client libraries | Your own request rates, errors and latencies |
Installation
Install from official binaries or packages, or run the official Docker images with persistent volumes. Run each component as a service with automatic restart. Configure scrape jobs in prometheus.yml with sensible intervals (15–60 seconds is common), use file-based or DNS service discovery as your fleet grows, and label targets with environment and role.
Network and Security
- Exporters expose metrics without authentication by default; bind them to private interfaces or firewall them so only Prometheus can scrape.
- Keep Prometheus and Alertmanager UIs private; they have no built-in user management.
- Put Grafana behind HTTPS, change the default admin password, enable SSO or strong passwords with two-factor where possible, and disable anonymous access and sign-ups.
- Use TLS and basic auth options for exporters crossing untrusted networks.
Retention and Storage
Prometheus keeps 15 days of data by default. Set retention with time and size limits so the disk never fills. Disk use depends on the number of active series, scrape interval and retention; Prometheus compresses samples efficiently, but thousands of series scraped every 15 seconds still add up. Use fast NVMe and monitor Prometheus's own disk and memory.
Cardinality
Every unique combination of metric name and labels is a separate series. Labels with unbounded values (user IDs, full URLs, request IDs) explode the series count, memory and disk. Use bounded labels such as route templates and status classes, and review the highest-cardinality metrics regularly using Prometheus's TSDB status page.
Alerting Rules and Alertmanager
- Alert on symptoms users feel: errors, latency, unavailable services, full disks soon.
- Use
fordurations to avoid alerting on short spikes. - Predict problems, for example disk filling within 24 hours with
predict_linear. - Route alerts in Alertmanager by severity and team, group related alerts, and silence during maintenance.
- Monitor the monitoring: alert if Prometheus cannot scrape targets, and have an external check that Prometheus itself is alive.
Recording Rules
Recording rules precompute expensive queries (such as per-service request rates) on a schedule, making dashboards fast and alert rules simpler. Use them for anything shown on frequently loaded dashboards.
Grafana Dashboards
Add Prometheus as a data source, import well-known community dashboards for node_exporter and databases as a starting point, then build service dashboards around requests, errors and latency. Store dashboards as JSON in Git or provision them from files so they are versioned. Grafana can also query Loki for logs and other sources, giving one place for investigation.
Long-Term Storage and High Availability
A single Prometheus is simple and reliable for most teams. If you need months or years of data, global views across several Prometheus servers, or high availability, add remote write to a long-term store such as Thanos, Grafana Mimir or VictoriaMetrics. Run two identical Prometheus servers for redundancy if alerting must survive one failing.
Monitoring Kubernetes
For K3s or Kubernetes, the kube-prometheus-stack Helm chart installs Prometheus, Alertmanager, Grafana, exporters and default rules together (see our K3s guide).
Sizing
| Environment | Suggested plan |
|---|---|
| Up to a few dozen servers with standard exporters | 2 vCores / 8 GB |
| Many services, containers or a Kubernetes cluster | 4 vCores / 16 GB |
| Hundreds of targets or long retention | 8 vCores / 32 GB, or remote storage |
Run monitoring on a separate VPS from production so it keeps working, and alerting, when production servers fail. External uptime checks complement this (see our Uptime Kuma guide).
Example: An Agency Fleet
An agency monitors 25 client VPS servers from a 4 vCore / 16 GB monitoring server. node_exporter and database exporters are firewalled to accept only the monitoring server's private IP, Prometheus keeps 30 days with a size cap, Alertmanager sends critical alerts to a phone app and warnings to chat, and Grafana uses SSO with read-only access for clients.
Common Mistakes
- Exporters open to the internet.
- High-cardinality labels such as user IDs.
- No retention size limit, filling the disk.
- Alerting on every CPU spike, causing alert fatigue.
- Monitoring running on the same server it monitors.
In Short
Run Prometheus, Alertmanager and Grafana on a dedicated VPS, scrape exporters over private networks, control retention and cardinality, alert on user-facing symptoms, secure Grafana and add long-term storage only when needed.
Instrumenting Your Applications
Infrastructure metrics show the server; application metrics show the user experience. Use the Prometheus client library for your language to expose request counts, error counts and latency histograms per route, plus business metrics such as orders or sign-ups. Keep route labels templated (/orders/:id, not real IDs).
SkyRainCloud Plans for This Workload
Prometheus memory grows with active series. 2 vCores / 8 GB monitors dozens of servers with standard exporters; 4 vCores / 16 GB or more suits many services, Kubernetes clusters or long retention.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.