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
|
|
@ -91,7 +91,7 @@ for a in alerts:
|
|||
continue
|
||||
if '$filter_key' and a['labels'].get('$filter_key') != '$filter_value':
|
||||
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', '')
|
||||
summary = a.get('annotations', {}).get('summary', '')
|
||||
print(f'{summary}|{url}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue