Fix Frigate preview config and services-check NoData detection

preview.quality was at the top level (invalid); moved under record
with a valid preset (very_low). Also fix services-check to catch
Grafana "Alerting (NoData)" state which was silently passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-04-08 11:12:42 -07:00
commit 22b77ac141
2 changed files with 3 additions and 4 deletions

View file

@ -67,11 +67,10 @@ model:
path: /media/frigate/models/yolov9-c-640.onnx path: /media/frigate/models/yolov9-c-640.onnx
labelmap_path: /labelmap/coco-80.txt labelmap_path: /labelmap/coco-80.txt
preview:
quality: 8
record: record:
enabled: true enabled: true
preview:
quality: very_low
continuous: continuous:
days: 30 days: 30
motion: motion:

View file

@ -91,7 +91,7 @@ for a in alerts:
continue continue
if '$filter_key' and a['labels'].get('$filter_key') != '$filter_value': if '$filter_key' and a['labels'].get('$filter_key') != '$filter_value':
continue continue
if a['state'] in ('Alerting', 'Pending'): if a['state'] in ('Alerting', 'Pending') or a['state'].startswith('Alerting'):
url = a.get('annotations', {}).get('runbook_url', '') url = a.get('annotations', {}).get('runbook_url', '')
summary = a.get('annotations', {}).get('summary', '') summary = a.get('annotations', {}).get('summary', '')
print(f'{summary}|{url}') print(f'{summary}|{url}')