Перейти до основного вмісту

Get the board's current telemetry

GET 

/api/sentinel/metrics

Joins Sentinel's metric definitions with its latest sample so every value carries its label, unit, group and thresholds, and ranks each value as ok, warn, critical or unavailable. A metric the board cannot measure has value: null and status unavailable; it is never reported as zero. Definitions are cached per board for a minute, while the sample is read on every call. Samples are also appended to a bounded per-board history: pass history=<n> to get the last n samples as aligned per-metric series for sparklines. The history holds one run of polling: a sample more than a minute after the last one starts it again, since the series are drawn with their points evenly spaced and nothing polls this endpoint while the Stats page is closed, and so does a restart of the daemon, which every call checks. Cached samples, definitions and history are keyed by the board's generation and fingerprint, so selecting another board starts empty.

Request​

Responses​

Current metric values for the selected board.