Skip to main content

Module graph

Module graph 

Source
Expand description

Grafana node graph formatting for diagnostics snapshots.

This module is the last formatting step before the /internal/diagnostics/node-graph/... routes return JSON to the o-sfu-telemetry Grafana dashboard. The input is an already assembled diagnostics room detail, so these formatters do not query live runtime state, hold locks, or decide whether a route is valid.

Graph formatting is a cold diagnostics path. Allocating strings and JSON values is acceptable here because the endpoint runs on demand after the room snapshot has already been collected.

Modulesยง

common ๐Ÿ”’
room ๐Ÿ”’
user ๐Ÿ”’
User-centered Grafana node graph formatting.

Functionsยง

build_graph
Build the Grafana node graph payload for a single room detail response.
build_user_graph
Build the Grafana node graph payload for one userโ€™s media paths in a room.