mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 19:06:52 +03:00
Improve System Health pane (#24188)
* build out system health pane * tweaks * fixes * fix notice link so it opens the correct camera * tweak language
This commit is contained in:
committed by
Nicolas Mowen
parent
6d33b31bc6
commit
70ce193e09
@@ -22,6 +22,7 @@ import {
|
||||
type ApiMockOverrides,
|
||||
} from "../helpers/api-mocker";
|
||||
import { WsMocker } from "../helpers/ws-mocker";
|
||||
import { statsFactory } from "./mock-data/stats";
|
||||
import { installErrorCollector, type ErrorCollector } from "./error-collector";
|
||||
import { GLOBAL_ALLOWLIST } from "./error-allowlist";
|
||||
|
||||
@@ -53,7 +54,7 @@ export class FrigateApp {
|
||||
return route.fallback();
|
||||
});
|
||||
|
||||
await this.ws.install(this.page);
|
||||
await this.ws.install(this.page, statsFactory(overrides?.stats));
|
||||
await this.api.install(overrides);
|
||||
// media goes last so its per-event routes win over the broader
|
||||
// `**/api/events**` list route, which otherwise answers thumbnail and
|
||||
|
||||
@@ -41,6 +41,13 @@ export const BASE_STATS = {
|
||||
},
|
||||
gpu_usages: {},
|
||||
npu_usages: {},
|
||||
embeddings: {
|
||||
image_embedding_speed: 0,
|
||||
face_embedding_speed: 0,
|
||||
plate_recognition_speed: 0,
|
||||
text_embedding_speed: 0,
|
||||
devices: {} as Record<string, string>,
|
||||
},
|
||||
processes: {},
|
||||
service: {
|
||||
last_updated: Date.now() / 1000,
|
||||
@@ -57,6 +64,13 @@ export const BASE_STATS = {
|
||||
used: 500000000,
|
||||
mount_type: "tmpfs",
|
||||
},
|
||||
"/dev/shm": {
|
||||
free: 98,
|
||||
total: 128,
|
||||
used: 30,
|
||||
mount_type: "tmpfs",
|
||||
min_shm: 64,
|
||||
},
|
||||
},
|
||||
uptime: 86400,
|
||||
latest_version: "0.15.0",
|
||||
|
||||
Reference in New Issue
Block a user