mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-27 18:48:22 +03:00
always assign new config to stats emitter to make telemetry fields dynamic
This commit is contained in:
parent
79242d49ca
commit
9cbd007b77
@ -589,6 +589,9 @@ def config_set(request: Request, body: AppConfigSetBody):
|
|||||||
request.app.frigate_config = config
|
request.app.frigate_config = config
|
||||||
request.app.genai_manager.update_config(config)
|
request.app.genai_manager.update_config(config)
|
||||||
|
|
||||||
|
if request.app.stats_emitter is not None:
|
||||||
|
request.app.stats_emitter.config = config
|
||||||
|
|
||||||
if body.update_topic:
|
if body.update_topic:
|
||||||
if body.update_topic.startswith("config/cameras/"):
|
if body.update_topic.startswith("config/cameras/"):
|
||||||
_, _, camera, field = body.update_topic.split("/")
|
_, _, camera, field = body.update_topic.split("/")
|
||||||
|
|||||||
@ -3,14 +3,7 @@ import type { SectionConfigOverrides } from "./types";
|
|||||||
const telemetry: SectionConfigOverrides = {
|
const telemetry: SectionConfigOverrides = {
|
||||||
base: {
|
base: {
|
||||||
sectionDocs: "/configuration/reference",
|
sectionDocs: "/configuration/reference",
|
||||||
restartRequired: [
|
restartRequired: ["version_check"],
|
||||||
"network_interfaces",
|
|
||||||
"stats.amd_gpu_stats",
|
|
||||||
"stats.intel_gpu_stats",
|
|
||||||
"stats.intel_gpu_device",
|
|
||||||
"stats.network_bandwidth",
|
|
||||||
"version_check",
|
|
||||||
],
|
|
||||||
fieldOrder: ["network_interfaces", "stats", "version_check"],
|
fieldOrder: ["network_interfaces", "stats", "version_check"],
|
||||||
advancedFields: [],
|
advancedFields: [],
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user