mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 10:56:52 +03:00
Add a notice registry and System Health tab (#24178)
* add a notice registry and System Health tab Problems Frigate detects on its own (ffmpeg crash loops, stuck detectors, failed model downloads, recordings deleted before their retention period) only ever existed as log lines. This adds a `NoticeRegistry` in the main process backed by two tables, an `update_notice` IPC topic so producers in other processes can reach it through the dispatcher, an admin-only API and websocket topic, and a Health tab that lists them. Kinds declare their own mode, severity, and category in one place: state notices are resolved by their producer, event notices are dismissed by the user. * treat a prerelease as behind its final release * fix notices clearing early * rename menu items and update docs * don't resolve the update notice on a failed version lookup
This commit is contained in:
committed by
Nicolas Mowen
parent
af60d2db48
commit
f3a31e2fb4
@@ -168,9 +168,9 @@
|
||||
},
|
||||
"menu": {
|
||||
"system": "System",
|
||||
"systemMetrics": "System metrics",
|
||||
"systemMetrics": "Health and Metrics",
|
||||
"configuration": "Configuration",
|
||||
"systemLogs": "System logs",
|
||||
"systemLogs": "Logs",
|
||||
"profiles": "Profiles",
|
||||
"settings": "Settings",
|
||||
"configurationEditor": "Configuration Editor",
|
||||
|
||||
@@ -9,10 +9,31 @@
|
||||
"go2rtc": "Go2RTC Logs - Frigate",
|
||||
"nginx": "Nginx Logs - Frigate",
|
||||
"websocket": "Messages Logs - Frigate"
|
||||
}
|
||||
},
|
||||
"health": "Health - Frigate"
|
||||
},
|
||||
"title": "System",
|
||||
"metrics": "System metrics",
|
||||
"health": {
|
||||
"title": "Health",
|
||||
"notices": {
|
||||
"title": "Notices",
|
||||
"empty": "No notices",
|
||||
"dismiss": "Dismiss",
|
||||
"openSettings": "Open settings",
|
||||
"openLink": "Open link",
|
||||
"since": "Since {{time}}",
|
||||
"sinceWithCount": "Since {{time}} · {{times}} times since {{firstSeen}}",
|
||||
"firstSeen": "First seen {{time}} · {{times}} times",
|
||||
"kinds": {
|
||||
"ffmpeg_crash_loop": "ffmpeg has crashed {{restarts}} times in the last hour",
|
||||
"detector_stuck": "Detector {{detector}} was restarted after it stopped responding",
|
||||
"model_download_failed": "Downloading {{file}} failed: {{error}}",
|
||||
"retention_unmet": "Recordings were deleted before their retention period to free space ({{cleared_mb}} of {{needed_mb}} MB needed)",
|
||||
"update_available": "Frigate {{version}} is available"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logs": {
|
||||
"websocket": {
|
||||
"label": "Messages",
|
||||
|
||||
Reference in New Issue
Block a user