Skip to main content

Dashboard and metrics

The dashboard keeps three questions apart: what is served (the overview and the ingress inventory), what the node itself is doing (CPU, memory, storage, network) and how much traffic moved (the traffic views). The sources are different and the values are never added together.

Overview​

The Overview tab is read-only. Loading it never saves, applies, issues or probes a service route.

The operations overview: verified revision, node measurements with their source, pending work and the last 24 hours of security counts

Operations strip​

The dark strip at the top names:

  • the selected node (name, id, and this controller for the local node), with a node selector when the deployment has more than one node;
  • the verified live revision with its state and age;
  • the last Apply — state, kind, revision, time and result, with a link to the job;
  • the metric range: 1 hour or 24 hours.

Node measurement cards​

Four cards report the selected node: CPU, Memory, Storage and Network. Each card shows the current value with units, a state chip, a server-rendered history chart, the source, the scope and the freshness of the newest sample, and a data table inside a disclosure.

MetricSourceScope stated in the UIValue
CPU/proc/stat (first cpu line)Node kernel counters in the controller's namespace; all CPUs, not the container cgroupUtilisation across the VM's vCPUs, %
Memory/proc/meminfoNode RAM as the kernel reports itUsed = MemTotal − MemAvailable, with total
Storagestatfs on METRICS_FS_PATH (default /data), mount named from /proc/self/mountinfoThat filesystem only; other mounts are not measuredUsed/total bytes and history
NetworkNODE_NET_PATH/<interface>/statistics/{rx,tx}_bytes, 15-second samplesThe selected node interface, kept separate from proxy HTTP totalsRX and TX in Mbit/s

On a virtual machine these kernel counters describe the VM, and the container's own cgroup is not used. A node that does not select an interface shows the Network card without a series.

Telemetry prerequisites in the shipped Compose file are already met: /sys is mounted read-only at /host/sys, and the defaults read /proc/stat, /proc/meminfo and the filesystem at METRICS_FS_PATH. Set NODE_INTERFACE to the host interface you want on the Network card (for example eth0); leaving it empty is supported and shows no series.

The state chip is one of:

StateMeaning
measuredA value from a recent sample. A measured zero is measured with value 0, never "no data".
first sampleThe first sample exists but a rate cannot be derived yet (CPU needs two readings; the first sample after a boot is one of these).
staleThe newest sample is older than three intervals; the card shows its age.
unavailableThe source cannot be read or the value is absent; the card carries the source's own reason.
disabledTelemetry is switched off for this node.

Charts are produced by the controller; there is no chart library and no hover-only information. A gap in the series is drawn as a gap and counted in the caption — never filled with zero. Each chart has a text legend and an accessible data table.

Rate and history guards:

  • CPU is derived from two readings of the same boot. A reboot, a counter reset, a backwards counter or a gap longer than five intervals yields no value.
  • Network rates are per interface, reject gaps longer than 90 seconds and counter decreases, and a changed interface starts a new series.
  • Storage history is filtered to the currently monitored mount, so two filesystems are never plotted against one total.

Operational panels​

  • Pending work — a running job, a saved revision that has not been applied, or a changed draft, with a link to review it.
  • Certificates — how many managed names have no verified certificate and how many expire within 30 days, with a link to the certificate inventory.
  • Security · 24 hours — counts for ACL denials, WAF blocks, WAF monitor matches, CrowdSec blocks and upstream errors, the five most recent events and a link to the event view. "No event in the last 24 hours" is a healthy idle period, not proof that none occurred.
  • Ingress inventory — a short count of host names by serving state and a link to the full tab.

Ingress inventory​

The Ingress inventory tab answers one question per host name: which route serves it, where the request goes, and whether the saved configuration has moved ahead of the live one.

The header names the live revision, when serving state was last verified, and — when the database holds a newer revision — the latest saved revision marked pending. The observation chip is one of:

ChipMeaning
VERIFIEDThe verified document is present and the running configuration matches it.
STALEThe admin endpoint is unreachable or the running configuration differs; rows show the last verified document and say so.
UNAVAILABLEThe verified document is missing; no row claims a serving state.
NOT_APPLIEDNothing has been applied on this node yet.

recorded only beside a revision means the value comes from the database because the node's own live-state record is missing — a record, not an observation.

Each row is one host name:

  • Serving — LIVE, PENDING, DISABLED or UNKNOWN.
  • Effective destination — for a proxy host, the upstream name and the address the data plane actually dials; for a redirection host, the status code and target; for a dead host, its terminal code.
  • Pending — a live row keeps the live destination; saved: … beside it is what the next Apply would change.
  • HTTPS — SERVED only when the verified document loads the route and a ready certificate covers the exact name. READY, NOT DEPLOYED means the certificate exists but the next Apply must load it; the other outcomes are NO CERTIFICATE, CERTIFICATE PENDING and CERTIFICATE FAILED.
  • Access — the policy name from the live revision for a live row, from the saved state for a pending row.

The inventory shows the gap between saved and live; it does not close it.

Traffic views​

The Traffic · Upstreams, Traffic · Hosts and Traffic · Nodes tabs are built from the data plane's access log, aggregated per minute per node, upstream and host name. Each view offers a one-hour and a twenty-four-hour window.

The views report requests, 5xx, transport errors, latency and byte counts, and they report coverage: how many nodes reported and which buckets are missing. A bucket with no node heartbeat is shown as missing coverage, not as zero requests.

Node measurement is separate: host interface counters are whole-VM traffic and are never added to the HTTP totals.

Collection is off by default in a new installation and is enabled per upstream or per deployment; see Upstreams.

Per-upstream statistics​

Open an upstream's Traffic action (or Upstreams → ▤ Last hour / Last 7 days) for the detail view:

  • requests, 5xx, transport errors, bytes, p50/p95 latency and p50/p95 time to first byte, per bucket;
  • an aggregate across nodes, with the selected node shown separately;
  • per-node reporting state, dropped buckets and parse errors;
  • missing-coverage ranges.

Percentiles are computed from merged histogram buckets and are suppressed below 20 observations.

A read API exposes the same data for one upstream and window:

GET /api/v1/upstreams/<upstream-id>/stats?range=1h&node=<node-id>

It requires an administrator session, like the rest of the management API.

Telemetry settings​

Settings in config/controller.env. All are optional; the defaults are shown.

VariableDefaultEffect
METRICS_ENABLEDon0 disables node telemetry; every card is labelled disabled
METRICS_INTERVAL_SECONDS60Sampling interval; 15 seconds is the floor
METRICS_PROC_ROOT/procWhere CPU, memory and the boot id are read
METRICS_FS_PATH/dataThe filesystem measured by the Storage card
METRICS_RETENTION_HOURS48Resource-sample retention; network samples are kept for 7 days
NODE_INTERFACEemptyThe host interface the Network card reports; empty shows no series
NODE_NET_PATH/host/sys/class/netRead-only host network counters (the Compose file mounts /sys here)

Sampling is off the request path: one goroutine writes one row per interval and prunes old samples. Queries are bound to the requested window and one node id; the node selector changes only the filter.

Node status endpoint​

For external monitoring, the node exposes a read-only machine contract:

GET https://<management-host>:8081/api/v1/node/status
Authorization: Bearer <monitoring-credential>
CodeMeaning
200Reported ok: database reachable, data-plane admin reachable, running configuration matches the verified one, no certificate renewal failure
503Reported degraded; the body is complete and lists status.degraded_reasons
401Missing, invalid, revoked or expired monitoring credential
405Any method other than GET/HEAD

A 503 is a component or evidence problem, not necessarily an outage: the data plane may still serve traffic while the reporter cannot prove which revision is live. That case is labelled revision.live_source = "admin_unreachable" and revision.stale = true.

The payload carries node identity and versions, reported status and degraded reasons, the live and desired revisions, listener health per family, dependency state, certificate inventory counts and the nearest expiry. It contains no secret, key material or full configuration.

Mint and revoke monitoring credentials on the node (the value is printed once; only its hash is stored):

cd /opt/portavium
docker compose exec -T controller /usr/local/bin/revproxy-controller \
-mode monitoring-token -token-name monitoring
docker compose exec -T controller /usr/local/bin/revproxy-controller \
-mode monitoring-token -token-list
docker compose exec -T controller /usr/local/bin/revproxy-controller \
-mode monitoring-token -token-name monitoring -token-revoke

Use one credential per consumer so a single credential can be withdrawn. Revocation is immediate and audited. A monitoring credential cannot reach any other endpoint and has no write path.