mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 10:15:22 +03:00
refactor+lint
This commit is contained in:
parent
bf6c56c882
commit
bf8029269a
@ -13,15 +13,15 @@ services:
|
||||
context: .
|
||||
# Use target devcontainer-trt for TensorRT dev
|
||||
target: devcontainer
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
devices:
|
||||
- /dev/bus/usb:/dev/bus/usb
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
# devices:
|
||||
# - /dev/bus/usb:/dev/bus/usb
|
||||
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
||||
volumes:
|
||||
- .:/workspace/frigate:cached
|
||||
@ -31,7 +31,7 @@ services:
|
||||
- ./debug:/media/frigate
|
||||
# Create the trt-models folder using the documented method of generating TRT models
|
||||
# - ./debug/trt-models:/trt-models
|
||||
- /dev/bus/usb:/dev/bus/usb
|
||||
# - /dev/bus/usb:/dev/bus/usb
|
||||
mqtt:
|
||||
container_name: mqtt
|
||||
image: eclipse-mosquitto:1.6
|
||||
|
||||
@ -28,7 +28,7 @@ from frigate.object_processing import TrackedObjectProcessor
|
||||
from frigate.output import output_frames
|
||||
from frigate.plus import PlusApi
|
||||
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.version import VERSION
|
||||
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.models import Event, Recordings
|
||||
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 (
|
||||
clean_camera_user_pass,
|
||||
ffprobe_stream,
|
||||
|
||||
@ -29,7 +29,9 @@ class CustomCollector:
|
||||
|
||||
# camera stats
|
||||
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(
|
||||
"frigate_capture_pid",
|
||||
Loading…
Reference in New Issue
Block a user