DevOps13 min read•Updated November 2026

VPS Hosting for Grafana and Prometheus

Quick answer

To run Grafana and Prometheus on a VPS, install Prometheus (port 9090) to scrape metrics from exporters such as node_exporter (9100) and your applications, Alertmanager (9093) to route alerts, and Grafana (3000) for dashboards, ideally on a dedicated monitoring server rather than the servers being monitored. Keep metrics endpoints on private networks, set retention by time and size, control label cardinality, write alerting rules for symptoms users feel, put Grafana behind HTTPS with strong authentication, and add remote storage such as Thanos, Mimir or VictoriaMetrics only when you need long retention or high availability.

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

ExporterMonitors
node_exporterCPU, memory, disk, network, filesystems of Linux hosts
cAdvisorDocker container resource use
postgres_exporter, mysqld_exporterDatabase health and performance
redis_exporterRedis memory, clients, commands
blackbox_exporterHTTP, TCP, DNS and ICMP probes from outside
Application client librariesYour 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 for durations 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

EnvironmentSuggested plan
Up to a few dozen servers with standard exporters2 vCores / 8 GB
Many services, containers or a Kubernetes cluster4 vCores / 16 GB
Hundreds of targets or long retention8 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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck 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.

Frequently Asked Questions

What do Prometheus and Grafana do?
Prometheus collects and stores metrics and evaluates alerts; Grafana visualises them in dashboards.
Which ports do they use?
Prometheus 9090, Alertmanager 9093, Grafana 3000 and node_exporter 9100 by default.
Should monitoring run on a separate server?
Yes, so it keeps working and alerting when production servers fail.
How long does Prometheus keep data?
15 days by default; set retention by time and size to suit your disk.
What is cardinality?
The number of unique label combinations per metric; unbounded labels can exhaust memory and disk.
How do I send alerts?
Prometheus evaluates alert rules and Alertmanager routes notifications to email, chat or paging tools.
Are exporters secure by default?
They expose metrics without authentication; restrict them to private networks or add TLS and auth.
How do I keep metrics for a year?
Use remote write to long-term storage such as Thanos, Mimir or VictoriaMetrics.
How do I secure Grafana?
HTTPS, a changed admin password, SSO or strong authentication, and no anonymous access.
Which plan suits a monitoring server?
2 vCores / 8 GB for dozens of servers; 4 vCores / 16 GB for many services or Kubernetes.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning