mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25:22 +03:00
Update frigate/prometheus_exporter.py
Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
This commit is contained in:
parent
a5e9935dab
commit
bf6c56c882
@ -28,8 +28,8 @@ class CustomCollector:
|
|||||||
data = json.loads(urlopen(self.stats_url).read())
|
data = json.loads(urlopen(self.stats_url).read())
|
||||||
|
|
||||||
# camera stats
|
# camera stats
|
||||||
ffmpeg_pid = GaugeMetricFamily(
|
ffmpeg_up = GaugeMetricFamily(
|
||||||
"frigate_ffmpeg_pid", "PID for ffmpeg process", 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