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:
parent
ec63d560f3
commit
22b77ac141
2 changed files with 3 additions and 4 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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}')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue