4.0 KiB
Grafana dashboard
rustproxy-overview.json is a provisioning/import dashboard for the dedicated
RustProxy Prometheus exporter. It covers global traffic, status classes, vhost
latency, backend health/latency, upstream-client generation/retry/rotation diagnostics,
a dedicated Docker-vhost section, hot/cold/transient cache memory, Linux process and cgroup diagnostics, HTTP/2/HTTP/3/TLS/WebSocket
counters, Layer-4 streams, structured-log sink health, configuration inventory and bounded Traffic analytics.
The Docker vhosts row uses only the dedicated rust_proxy_docker_* metric
families and includes configured/enabled counts, request/error rates, p95 exchange
latency, backend health/EWMA latency/active work, traffic, probe age and upstream-client lifecycle/retry panels. Dashboard
variables Docker agent and Docker service filter only this section, which keeps
multi-agent installations readable without changing the ordinary vhost panels.
Several RustProxy servers. Every query filters by the Job and
RustProxy server (instance) variables, both multi-select with All. Totals
sum the selected servers; the RustProxy servers row at the top shows a table
with one row per server (version, uptime, request and error rate, active
exchanges, RSS, CPU), scrape targets that are down and per-server request,
error, active, CPU and RSS time series. Scrape each server as its own target
(same job, different instance), for example:
scrape_configs:
- job_name: rustproxy
static_configs:
- targets: ["proxy-a.example.net:9191", "proxy-b.example.net:9191"]
The Docker hosts and alerts row (RustProxy 0.37.0+, Docker agent 1.1.0+)
uses rust_proxy_docker_agent_up, rust_proxy_docker_host_*,
rust_proxy_docker_container_* and rust_proxy_docker_alert: agents up,
active alerts with a table (agent offline, disk/memory/load thresholds, missing
published service, unhealthy container, invalid labels), host CPU, memory, load
per CPU, disk, network and containers per agent, and the top containers by CPU
and memory.
The Web Server row adds header-ready request rates, status-class and static/PHP/other donut breakdowns, error percentage, response-header latency, payload byte rates, and downstream compression by codec. PHP-FPM / FastCGI adds request activity, RustProxy PHP permit capacity, and errors grouped by finite reason. Per Web Service shows top service rates, HTTP methods and selected status codes, while WWW / PHP correlation compares PHP load and Web Server errors with cache activity. Use the Web service variable to filter the new panels by configured Web Service ID. All new panels are added to the existing dashboard without changing the legacy rows.
The Traffic analytics and Web Server row uses the rust_proxy_traffic_* families.
The Traffic vhost variable filters that row and exposes Web Server request rate,
serving-source rate, top countries, fixed User-Agent families, HTTP methods, status
classes, cache outcomes, capture-state gauges and configured-route traffic. Raw IP addresses, request paths and full User-Agent strings
are intentionally absent from Prometheus labels.
Import the JSON in Grafana and select a Prometheus datasource when prompted. The dashboard expects a RustProxy version that exports the Web Server metric names (and also retains the older panels); a scrape interval around 15s is suitable. Collectors can be disabled in RustProxy settings; panels for disabled collectors will simply show no series.
Recommended scrape job:
scrape_configs:
- job_name: rustproxy
scrape_interval: 15s
metrics_path: /metrics
static_configs:
- targets: ['rustproxy-host:9191']
When the exporter is protected with a bearer token, configure Prometheus
authorization.credentials_file. For a private monitoring VLAN, RustProxy can
instead explicitly allow actual peers from configured trusted CIDRs to scrape
without a token. Forwarded client-IP headers never satisfy that trust check.