From 24dc4edf516b4f3595968a3b58b53e9e7bfa521d Mon Sep 17 00:00:00 2001 From: patrykorwat Date: Wed, 19 Aug 2026 13:11:46 +0000 Subject: [PATCH] feat(axelera): include Metis board temperature in npu_usages Exposes the Metis temperature read (axcmd --board-temp) under npu_usages so the /api/stats endpoint lists the NPU instead of returning null. There is no utilization readout without the axsystemserver broker, which cannot run alongside a live detector. --- frigate/stats/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frigate/stats/util.py b/frigate/stats/util.py index 278d800603..af3a0b7892 100644 --- a/frigate/stats/util.py +++ b/frigate/stats/util.py @@ -340,6 +340,14 @@ async def set_npu_usages(config: FrigateConfig, all_stats: dict[str, Any]) -> No # AXERA NPU usage axcl_usage = get_axcl_npu_stats() stats["axengine"] = axcl_usage + elif detector.type == "axelera": + # Axelera Metis: temperature from the board controller. + # There is no utilization readout without the axsystemserver + # broker, which cannot run alongside a live detector. + metis_temp = get_axelera_board_temp() + + if metis_temp is not None: + stats["axelera"] = {"mem": "-%", "temp": metis_temp} if stats: all_stats["npu_usages"] = stats