API

Public monitoring API

Read the same aggregate network observations used by the live dashboard as JSON.

GET /api/monitoring

GET without credentials; optional hours=24, 72 or 168 (default: 24). Poll no more often than every 30 seconds. No arbitrary Prometheus queries.

Availability is not network health

HTTP 200 with status "ok" means that monitoring queries completed. It does not mean that every service is healthy or the radio site is connected. HTTP 503 with status "unavailable" means that the monitoring source could not be queried or is not configured. Null means missing data; it must not be converted to zero or false.

Time and freshness

checkedAt and sampleTime are Unix timestamps in milliseconds. Each current.time and history[].time is a Unix timestamp in seconds. checkedAt records when current metrics were collected; it does not establish freshness of every metric. History contains 288, 864 or 2016 points spaced five minutes apart. current is the final history point; top-level backhaulMode and backhaulState use a separate 30-second sample window. Current metrics are cached for 30 seconds across all ranges; each history range is cached until the next five-minute boundary. Failed fetches are cached for 10 seconds. Caches are held in memory per server process.

Traffic and service states

uplinkBps and downlinkBps describe aggregate ogstun traffic in bits per second, averaged over five minutes. They are not per-device throughput measurements. uplinkBytesTotal and downlinkBytesTotal are cumulative byte counters which can reset; they are not daily totals. vmUptimeSeconds is VM uptime in seconds. Service active flags report systemd state. core reports AMF/SMF scrape availability, while gnb reports successful gNB setup when the InfoAPI source is available. serviceHistory[].values contains nullable active states aligned by index with history[].time. historyHours reports the requested window.

Backhaul codes

backhaulMode: 0 = unknown, 1 = direct campus Ethernet, 2 = OpenWrt/WireGuard. backhaulState: 0 = unknown, 1 = direct with N2 up, 2 = WireGuard with N2 up, 3 = direct with N2 down, 4 = WireGuard with N2 down. Null means no sample. These observations do not prove that an end-device application is reachable.

Public data boundary

The payload contains aggregate subscriber and session counts, network history, Open5GS service names and states, and VM uptime. It contains no subscriber identities, SIM secrets, UE addresses, traffic destinations or raw logs. The OpenAPI document describes every response field.

Read the dashboard interpretation guide