# Read status and metrics

Source: https://usecns.dev/thalamus-topic-read-status-and-metrics/

[Start here](https://usecns.dev/manual-thalamus/)
[CLI commands](https://usecns.dev/commands-thalamus/)
[Configuration & integration](https://usecns.dev/thalamus-topics/)

Health, status and metrics handlers normally return 200, including when no members are healthy; this does not apply to inference/model listing. Health is liveness, not a readiness status code. `/health` and `/lb/health` expose `status`, `service`, `version`, `policy`, `policy_canonical`, `healthy_members`, `total_members`, `members`, `name_conflicts`, `telemetry` and `telemetry_detail`.

Status has three `planes` arrays with node identity, primary/fallback/active endpoints, source, model IDs, capabilities, healthy/draining state, inflight/request/error counts, pins, latencies, probe times, lease expiration and upstream `metrics`. Its legacy `nodes` object contains **intelligence only**; use `planes` to inventory the whole registry. Top-level settings/counters, `active_node_names`, `single_node_name`, `session_pins`, `session_turn_counts`, `session_pins_detail`, `fleet_aggregates`, `cognitive_requests_total` and `cognitive_latency_ms_sum` support diagnostics. `recent_requests` contains at most the latest 50 in-memory completion entries, not durable history; `recent_requests_count` counts the retained log (up to 5000), not just those displayed. Status inspection also evicts expired pins and registration leases.

`/lb/metrics` returns `{"timestamp":<Unix seconds>,"nodes":{<name>:{...}}}` after probing; each node includes identity/endpoint, legacy role, plane, first `model` and `models`, timestamp, healthy state, scrape latency and metrics. Sampler start returns `status: "started"` and `before_snapshot`; stop returns `status: "stopped"`, `before_snapshot`, `after_snapshot`, `lb_status`. Starting again overwrites the one shared in-memory baseline; stop is not a timed background collection or a per-client session.

`/metrics` is Prometheus text (`text/plain; version=0.0.4; charset=utf-8`), not the JSON probe snapshot. Exported families are `thalamus_session_pins_active`, `thalamus_work_steals_total`, `thalamus_admission_waits_total`, `thalamus_admission_wait_ms_sum`, and `thalamus_node_` plus `healthy`, `in_flight`, `requests_total`, `errors_total`, `gpu_cache_usage_perc`, `prefix_cache_hit_rate_pct`, `decode_tok_per_s` (11 total). Node series carry `node`/`plane`; health also carries `endpoint`. GPU cache usage is a fraction, prefix-hit rate a percentage, decode throughput tokens/second, and queue-time sum milliseconds. Missing upstream measurements can appear as default zero values, not evidence of measured zero load. Router counters are process-local and reset by policy mutations; admission wait counters describe requests that got through the queue, not a complete timeout count.