Loading…
Loading documentation...
Run low-overhead time-series metrics with VictoriaMetrics, Grafana dashboards, Docker stats exporters, and Uptime Kuma external probing without filling disk.
Commands checked on 2026-11-23 with VictoriaMetrics v1.106+, Grafana 11+, Uptime Kuma 1.23+, Node Exporter 1.8.
A lightweight, high-retention observability stack using VictoriaMetrics (Prometheus-compatible remote write and PromQL/MetricsQL queries at a fraction of Prometheus RAM usage), Grafana dashboards, node-exporter / cadvisor, and Uptime Kuma synthetic checks—all isolated behind reverse-proxy HTTPS.
proxy_net and isolated monitoring_net as configured in Configure Caddy and Traefik reverse proxies reliably.VictoriaMetrics can ingest directly via --promscrape.config=/etc/victoria/scrape.yml so you do not need to run a separate heavy Prometheus server on a single host:
# ./scrape.yml
global:
scrape_interval: 30s
scrape_configs:
- job_name: node
static_configs:
- targets: ['node-exporter:9100']
- job_name: cadvisor
static_configs:
- targets: ['cadvisor:8080']
Using a 30s scrape interval cuts disk write amplification and storage consumption by 2–3× compared to aggressive 5s loops while still catching CPU, memory, and disk alerts quickly.
services:
victoriametrics:
image: victoriametrics/victoria-metrics:v1.106.1
container_name: victoriametrics
restart: unless-stopped
command:
- "--storageDataPath=/victoria-metrics-data"
- "--retentionPeriod=30d"
- "--promscrape.config=/etc/victoria/scrape.yml"
- "--memory.allowedPercent=40"
volumes:
- vm_data:/victoria-metrics-data
- ./scrape.yml:/etc/victoria/scrape.yml:ro
networks:
- internal_net
deploy:
resources:
limits:
memory: 768M
node-exporter:
image: prom/node-exporter:v1.8.2
restart: unless-stopped
pid: host
command:
- "--path.rootfs=/host"
volumes:
- "/:/host:ro,rslave"
networks:
- internal_net
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.51.0
restart: unless-stopped
command:
- "--docker_only=true"
- "--housekeeping_interval=30s"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- internal_net
grafana:
image: grafana/grafana:11.3.0
container_name: grafana
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
- GF_USERS_ALLOW_SIGN_UP=false
- GF_SERVER_ROOT_URL=https://metrics.YOUR_DOMAIN
volumes:
- grafana_data:/var/lib/grafana
networks:
- internal_net
- proxy_net
deploy:
resources:
limits:
memory: 512M
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
volumes:
- uptime_kuma_data:/app/data
networks:
- internal_net
- proxy_net
Notice only grafana and uptime-kuma join proxy_net; neither victoriametrics, node-exporter, nor cadvisor is published on host ports or public reverse proxies.
Sign in to https://metrics.YOUR_DOMAIN, open Connections -> Data sources -> Add data source -> Prometheus, and point the Prometheus server URL to http://victoriametrics:8428. Click Save & test, then import Grafana dashboard ID 1860 (Node Exporter Full) and ID 14282 (cAdvisor Exporter).
Inspect VictoriaMetrics targets and verify time-series ingestion from inside your private network:
docker exec victoriametrics wget -qO- 'http://127.0.0.1:8428/api/v1/targets' | head -c 400
docker exec victoriametrics wget -qO- 'http://127.0.0.1:8428/api/v1/query?query=up'
curl -fsS https://metrics.YOUR_DOMAIN/api/health
Confirm "health":"up" on targets and "database":"ok" on Grafana /api/health.
/var/lib/docker. Lower --retentionPeriod=14d and add metric_relabel_configs to drop high-cardinality per-cgroup or ephemeral Kubernetes labels.cadvisor consumes noticeable CPU polling idle containers. Passing --docker_only=true --housekeeping_interval=30s cuts cAdvisor background CPU overhead dramatically; alternatively consider lightweight beszel for simple multi-node host metrics.proxy_net or monitor from an external region.GF_USERS_ALLOW_SIGN_UP=false and enforce strong passwords or Authentik OAuth on Grafana.< 15% free, OOM kills (node_vmstat_oom_kill), systemd failed units, and TLS certificate expiry < 14 days.:8428 or Node Exporter :9100 directly to the internet; internal metrics reveal running processes, mount paths, and package versions.Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.