Add function to get physical interfaces for bandwidth calculation (#6618)

* Add function to get physical interfaces for bandwidth calculation in get_bandwidth_stats() function

* Add telemetry configuration option for enabled network interfaces, with default values for monitoring bandwidth stats for camera ffmpeg processes, go2rtc, and object detectors. Also add support for FrigateConfig in set_bandwidth_stats function to get bandwidth stats for specified network interfaces
This commit is contained in:
Sergey Krashevich
2023-06-11 15:34:03 +03:00
committed by GitHub
parent 8bc76d19db
commit 8d941e5e26
4 changed files with 34 additions and 5 deletions

View File

@@ -90,6 +90,10 @@ class UIConfig(FrigateBaseModel):
class TelemetryConfig(FrigateBaseModel):
network_interfaces: List[str] = Field(
default=["eth", "enp", "eno", "ens", "wl", "lo"],
title="Enabled network interfaces for bandwidth calculation.",
)
version_check: bool = Field(default=True, title="Enable latest version check.")