Update frigate/prometheus_exporter.py

Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
This commit is contained in:
Mitch Ross 2023-02-28 17:56:56 -05:00 committed by GitHub
parent a5e9935dab
commit bf6c56c882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",