forked from Github/frigate
Implement general page of system graphs (#10815)
* Reorganize stats and show graphs in system metrics * Break apart all cpu / mem graphs * Auto update stats * Show camera graphs * Get system graphs working for inference time * Update stats every 10 seconds, keeping the last 10 minutes * Use types for thresholds * Use keys api * Break system metrics into different pages * Add dialog for viewing and copying vainfo * remove unused for now * Formatting * Make tooltip match theme * Make betters color in light mode * Include gpu * Make scaling consistent * Fix name * address feedback
This commit is contained in:
@@ -7,3 +7,43 @@ export type GraphData = {
|
||||
name?: string;
|
||||
data: GraphDataPoint[];
|
||||
};
|
||||
|
||||
export type Threshold = {
|
||||
warning: number;
|
||||
error: number;
|
||||
};
|
||||
|
||||
export const InferenceThreshold = {
|
||||
warning: 50,
|
||||
error: 100,
|
||||
} as Threshold;
|
||||
|
||||
export const DetectorCpuThreshold = {
|
||||
warning: 25,
|
||||
error: 50,
|
||||
} as Threshold;
|
||||
|
||||
export const DetectorMemThreshold = {
|
||||
warning: 20,
|
||||
error: 50,
|
||||
} as Threshold;
|
||||
|
||||
export const GPUUsageThreshold = {
|
||||
warning: 75,
|
||||
error: 95,
|
||||
} as Threshold;
|
||||
|
||||
export const GPUMemThreshold = {
|
||||
warning: 75,
|
||||
error: 95,
|
||||
} as Threshold;
|
||||
|
||||
export const CameraFfmpegThreshold = {
|
||||
warning: 20,
|
||||
error: 20,
|
||||
} as Threshold;
|
||||
|
||||
export const CameraDetectThreshold = {
|
||||
warning: 20,
|
||||
error: 40,
|
||||
} as Threshold;
|
||||
|
||||
@@ -63,3 +63,9 @@ export type PotentialProblem = {
|
||||
text: string;
|
||||
color: string;
|
||||
};
|
||||
|
||||
export type Vainfo = {
|
||||
return_code: number;
|
||||
stdout: string;
|
||||
stderr: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user