mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25:22 +03:00
refactor+lint
This commit is contained in:
parent
bf6c56c882
commit
bf8029269a
@ -13,15 +13,15 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
# Use target devcontainer-trt for TensorRT dev
|
# Use target devcontainer-trt for TensorRT dev
|
||||||
target: devcontainer
|
target: devcontainer
|
||||||
deploy:
|
# deploy:
|
||||||
resources:
|
# resources:
|
||||||
reservations:
|
# reservations:
|
||||||
devices:
|
# devices:
|
||||||
- driver: nvidia
|
# - driver: nvidia
|
||||||
count: 1
|
# count: 1
|
||||||
capabilities: [gpu]
|
# capabilities: [gpu]
|
||||||
devices:
|
# devices:
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
# - /dev/bus/usb:/dev/bus/usb
|
||||||
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
||||||
volumes:
|
volumes:
|
||||||
- .:/workspace/frigate:cached
|
- .:/workspace/frigate:cached
|
||||||
@ -31,7 +31,7 @@ services:
|
|||||||
- ./debug:/media/frigate
|
- ./debug:/media/frigate
|
||||||
# Create the trt-models folder using the documented method of generating TRT models
|
# Create the trt-models folder using the documented method of generating TRT models
|
||||||
# - ./debug/trt-models:/trt-models
|
# - ./debug/trt-models:/trt-models
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
# - /dev/bus/usb:/dev/bus/usb
|
||||||
mqtt:
|
mqtt:
|
||||||
container_name: mqtt
|
container_name: mqtt
|
||||||
image: eclipse-mosquitto:1.6
|
image: eclipse-mosquitto:1.6
|
||||||
|
|||||||
@ -28,7 +28,7 @@ from frigate.object_processing import TrackedObjectProcessor
|
|||||||
from frigate.output import output_frames
|
from frigate.output import output_frames
|
||||||
from frigate.plus import PlusApi
|
from frigate.plus import PlusApi
|
||||||
from frigate.record import RecordingCleanup, RecordingMaintainer
|
from frigate.record import RecordingCleanup, RecordingMaintainer
|
||||||
from frigate.stats import StatsEmitter, stats_init
|
from frigate.monitoring.stats import StatsEmitter, stats_init
|
||||||
from frigate.storage import StorageMaintainer
|
from frigate.storage import StorageMaintainer
|
||||||
from frigate.version import VERSION
|
from frigate.version import VERSION
|
||||||
from frigate.video import capture_camera, track_camera
|
from frigate.video import capture_camera, track_camera
|
||||||
|
|||||||
@ -37,9 +37,9 @@ from frigate.config import FrigateConfig
|
|||||||
from frigate.const import CLIPS_DIR, MAX_SEGMENT_DURATION, RECORD_DIR
|
from frigate.const import CLIPS_DIR, MAX_SEGMENT_DURATION, RECORD_DIR
|
||||||
from frigate.models import Event, Recordings
|
from frigate.models import Event, Recordings
|
||||||
from frigate.object_processing import TrackedObject
|
from frigate.object_processing import TrackedObject
|
||||||
from frigate.prometheus_exporter import setupRegistry
|
from frigate.monitoring.prometheus import setupRegistry
|
||||||
|
|
||||||
from frigate.stats import stats_snapshot
|
from frigate.monitoring.stats import stats_snapshot
|
||||||
from frigate.util import (
|
from frigate.util import (
|
||||||
clean_camera_user_pass,
|
clean_camera_user_pass,
|
||||||
ffprobe_stream,
|
ffprobe_stream,
|
||||||
|
|||||||
@ -29,7 +29,9 @@ class CustomCollector:
|
|||||||
|
|
||||||
# camera stats
|
# camera stats
|
||||||
ffmpeg_up = GaugeMetricFamily(
|
ffmpeg_up = GaugeMetricFamily(
|
||||||
"frigate_ffmpeg_up", "Whether the ffmpeg process for a camera is up", labels=["camera"]
|
"frigate_ffmpeg_up",
|
||||||
|
"Whether the ffmpeg process for a camera is up",
|
||||||
|
labels=["camera"],
|
||||||
)
|
)
|
||||||
capture_pid = GaugeMetricFamily(
|
capture_pid = GaugeMetricFamily(
|
||||||
"frigate_capture_pid",
|
"frigate_capture_pid",
|
||||||
Loading…
Reference in New Issue
Block a user