mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 06:50:58 +00:00
Compare commits
No commits in common. "c7231648eb4893f864234905e523395555eae6f1" and "a2ba4e4e390b1a3a93e7a5b56afee74ebbd80f26" have entirely different histories.
c7231648eb
...
a2ba4e4e39
@ -42,7 +42,6 @@
|
|||||||
"inferenceSpeed": "Detector Inference Speed",
|
"inferenceSpeed": "Detector Inference Speed",
|
||||||
"temperature": "Detector Temperature",
|
"temperature": "Detector Temperature",
|
||||||
"cpuUsage": "Detector CPU Usage",
|
"cpuUsage": "Detector CPU Usage",
|
||||||
"cpuUsageInformation": "CPU used in preparing input and output data to/from detection models. This value does not measure inference usage, even if using a GPU or accelerator.",
|
|
||||||
"memoryUsage": "Detector Memory Usage"
|
"memoryUsage": "Detector Memory Usage"
|
||||||
},
|
},
|
||||||
"hardwareInfo": {
|
"hardwareInfo": {
|
||||||
@ -163,8 +162,7 @@
|
|||||||
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
||||||
"cameraIsOffline": "{{camera}} is offline",
|
"cameraIsOffline": "{{camera}} is offline",
|
||||||
"detectIsSlow": "{{detect}} is slow ({{speed}} ms)",
|
"detectIsSlow": "{{detect}} is slow ({{speed}} ms)",
|
||||||
"detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)",
|
"detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)"
|
||||||
"shmTooLow": "/dev/shm allocation ({{total}} MB) should be increased to at least {{min}} MB."
|
|
||||||
},
|
},
|
||||||
"enrichments": {
|
"enrichments": {
|
||||||
"title": "Enrichments",
|
"title": "Enrichments",
|
||||||
|
|||||||
@ -32,19 +32,6 @@ export default function useStats(stats: FrigateStats | undefined) {
|
|||||||
return problems;
|
return problems;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check shm level
|
|
||||||
const shm = memoizedStats.service.storage["/dev/shm"];
|
|
||||||
if (shm?.total && shm?.min_shm && shm.total < shm.min_shm) {
|
|
||||||
problems.push({
|
|
||||||
text: t("stats.shmTooLow", {
|
|
||||||
total: shm.total,
|
|
||||||
min: shm.min_shm,
|
|
||||||
}),
|
|
||||||
color: "text-danger",
|
|
||||||
relevantLink: "/system#storage",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// check detectors for high inference speeds
|
// check detectors for high inference speeds
|
||||||
Object.entries(memoizedStats["detectors"]).forEach(([key, det]) => {
|
Object.entries(memoizedStats["detectors"]).forEach(([key, det]) => {
|
||||||
if (det["inference_speed"] > InferenceThreshold.error) {
|
if (det["inference_speed"] > InferenceThreshold.error) {
|
||||||
|
|||||||
@ -11,17 +11,11 @@ import {
|
|||||||
InferenceThreshold,
|
InferenceThreshold,
|
||||||
} from "@/types/graph";
|
} from "@/types/graph";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
|
||||||
Popover,
|
|
||||||
PopoverContent,
|
|
||||||
PopoverTrigger,
|
|
||||||
} from "@/components/ui/popover";
|
|
||||||
import GPUInfoDialog from "@/components/overlay/GPUInfoDialog";
|
import GPUInfoDialog from "@/components/overlay/GPUInfoDialog";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { CiCircleAlert } from "react-icons/ci";
|
|
||||||
|
|
||||||
type GeneralMetricsProps = {
|
type GeneralMetricsProps = {
|
||||||
lastUpdated: number;
|
lastUpdated: number;
|
||||||
@ -554,27 +548,7 @@ export default function GeneralMetrics({
|
|||||||
)}
|
)}
|
||||||
{statsHistory.length != 0 ? (
|
{statsHistory.length != 0 ? (
|
||||||
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
|
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
|
||||||
<div className="mb-5 flex flex-row items-center justify-between">
|
<div className="mb-5">{t("general.detector.cpuUsage")}</div>
|
||||||
{t("general.detector.cpuUsage")}
|
|
||||||
<Popover>
|
|
||||||
<PopoverTrigger asChild>
|
|
||||||
<button
|
|
||||||
className="focus:outline-none"
|
|
||||||
aria-label={t("general.detector.cpuUsage")}
|
|
||||||
>
|
|
||||||
<CiCircleAlert
|
|
||||||
className="size-5"
|
|
||||||
aria-label={t("general.detector.cpuUsage")}
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</PopoverTrigger>
|
|
||||||
<PopoverContent className="w-80">
|
|
||||||
<div className="space-y-2">
|
|
||||||
{t("general.detector.cpuUsageInformation")}
|
|
||||||
</div>
|
|
||||||
</PopoverContent>
|
|
||||||
</Popover>
|
|
||||||
</div>
|
|
||||||
{detCpuSeries.map((series) => (
|
{detCpuSeries.map((series) => (
|
||||||
<ThresholdBarGraph
|
<ThresholdBarGraph
|
||||||
key={series.name}
|
key={series.name}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user