Metrics and dashboards
Scrape Nova's Prometheus metrics, load its Grafana dashboards, and know which numbers to watch.
Every novad process serves Prometheus metrics, health checks, and profiling on one HTTP listener, and the Gateway serves its metrics on one of its own. Scrape them, load the ten shipped Grafana dashboards, and watch a handful of ages that tell you whether the system keeps up. This page shows how; the metrics catalogue lists every metric.
curl -s localhost:9191/metrics | grep -E '^nova_(wal_backlog_age_seconds|append_bytes_total)'nova_append_bytes_total{otel_scope_name="nova/node",otel_scope_schema_url="",otel_scope_version=""} 1.67788544e+08
nova_wal_backlog_age_seconds{class="standard",otel_scope_name="nova/direct",otel_scope_schema_url="",otel_scope_version=""} 0Turn on the listener
--metrics-listen (NOVAD_METRICS_LISTEN) opens the listener. It is off unless you set it. novagateway has the same flag, on :9090 by default, but serves only /metrics there; its /healthz is on its main listener, and it has no profiling.
| Path | What it serves |
|---|---|
/metrics | Prometheus metrics |
/healthz | Liveness: ok while the process runs. It checks no dependency, so a restart never deepens an outage. |
/readyz | Readiness: ok once the node is registered and not draining. An auditor-only process is ready once its ring announcement is live. |
/debug/pprof/ | Go profiling |
/admin/ | The admin UI, unless --admin-ui=false |
Bind the listener to a private network: profiling and the admin UI are on it.
Where each deployment serves it
| Deployment | Port | Scraped by |
|---|---|---|
| Docker Compose | localhost:9191 to 9193 for the three nodes, 9194 for the auditor | The stack's Prometheus, already configured |
| Kubernetes | 9090 on every pod | Monitors the controller renders with spec.observability.monitors |
| Your own machines | Whatever --metrics-listen names | Your Prometheus |
On Kubernetes, spec.observability has three switches: monitors renders the ServiceMonitor and PodMonitors, rules the alert rules, and dashboards the Grafana dashboards. The monitors add the nova_constellation, nova_component, and nova_location labels the dashboards select on. The Kubernetes panels need two more settings. kube-state-metrics must export the pod labels nova.dev/constellation, nova.dev/component, nova.dev/location, and nova.dev/zone (its metricLabelsAllowlist). node-exporter's monitor must copy __meta_kubernetes_pod_node_name into a node label. deploy/pulumi/observability.ts sets both for kube-prometheus-stack.
Names
The code names metrics with dots, such as nova.wal.backlog.age. Prometheus replaces the dots with underscores and adds a unit suffix: _seconds for durations, _bytes for bytes, and _total for counters. That metric is nova_wal_backlog_age_seconds. A histogram adds _bucket, _sum, and _count. The instance label names the process. gRPC calls are measured under rpc_server_call_duration_seconds, with OpenTelemetry's gRPC names; a unary call is timed from its handler's entry, after its message is read.
Load the dashboards
The dashboards are JSON files in dashboards/, generated by dashboards/generate_all.py. Docker Compose loads them. On Kubernetes, spec.observability.dashboards ships them as ConfigMaps for Grafana's sidecar, in the folder /tmp/dashboards/nova. Elsewhere, import the files into your Grafana. All ten share the folder UID nova.
Start with System health to find the affected service, then Operations for load and trends. Both link to the component dashboards with the same data source, namespace, cluster, and time range.
| Dashboard (UID) | Questions it answers |
|---|---|
System health (nova-overview) | Are the services healthy? Which process is busiest, waiting, refusing work, or falling behind? |
Operations (nova-operations) | How much work flows, how is it spread, and does background work keep up? |
Writes and the WAL (nova-writes) | Is append time spent in admission, committing slots, reaching durability, or sending acknowledgements? |
Reads and gateway (nova-reads) | Are recent reads, stored-history reads, or Gateway fetches slow? |
S3 (nova-s3) | Which operation, bucket, or zone is slow? How many attempts fail? |
Caches (nova-objectcache) | Do the caches serve the working set? Are misses, evictions, or direct fallbacks rising? |
Auditor (nova-auditor) | Do jobs progress within their worker and traffic budgets? Is the backlog reading fresh? |
Metadata performance (nova-oxia) | Is time growing at Nova's metadata calls, in client batching, or in oxia? |
Oxia storage and coordination (nova-oxia-storage) | Is oxia's WAL sync, replication, storage engine, or coordinator the cause? |
Runtime and infrastructure (nova-runtime) | Are CPU, memory, garbage collection, limits, restarts, disk, or network the constraint? |
Every panel has a description. Unknown on a panel means the measurement is absent; Idle means no work happened, so a ratio has no value.
What to watch
Watch ages, not rates. A rate says how busy a part is. An age says whether it keeps up, and a healthy system holds its ages near zero at any load.
| Metric | Healthy | When it grows | Read more |
|---|---|---|---|
nova_wal_backlog_age_seconds | Near 0 | The indexer is behind; at its budget, appends wait | Failure modes |
nova_auditor_due_age_seconds{queue} | 0 for every queue | Cleanup is behind; storage grows | Auditor delays |
nova_denorm_stalled_seconds | 0 | A ledger's denorm stopped moving | Auditor delays |
nova_writer_limbo_age_seconds | 0 | A departing leader cannot certify its records | Failure modes |
nova_queue_backlog_age_seconds{address} | Near 0 | Workers fall behind a queue | Queues |
nova_node_saturated | 0 | A node is at a resource ceiling and takes no new streams | Sizing |
nova_write_latency_seconds p99 by class | Under 1 s Standard, 0.25 s Express | Writes are slow | Failure modes |
An empty due queue reports 0. A stopped auditor reports nothing, so its series go missing and no age alert can fire. Alert on the series going missing too; the shipped NovaAuditorsAbsent rule does.
Profile a stuck process
When a process stops making progress without logging an error, its goroutine dump shows where it waits. Take two a few seconds apart: goroutines in the same place in both are the ones that are stuck. The CPU profile shows where a busy process spends its time, and the heap profile what holds its memory.
curl -s localhost:9191/debug/pprof/goroutine?debug=1 | less
go tool pprof "localhost:9191/debug/pprof/profile?seconds=10"
go tool pprof localhost:9191/debug/pprof/heap