diff --git a/docs/changelog.d/+frigate-health-checks.infra.md b/docs/changelog.d/+frigate-health-checks.infra.md new file mode 100644 index 0000000..a249765 --- /dev/null +++ b/docs/changelog.d/+frigate-health-checks.infra.md @@ -0,0 +1 @@ +Improve Frigate health checks in services-check: per-camera FPS validation and NFS storage accessibility check. diff --git a/mise-tasks/services-check b/mise-tasks/services-check index 44d5722..94ced03 100755 --- a/mise-tasks/services-check +++ b/mise-tasks/services-check @@ -83,7 +83,8 @@ check_http "CV" "https://cv.ops.eblu.me/" check_http "Ntfy" "https://ntfy.ops.eblu.me/v1/health" check_http "Authentik" "https://authentik.ops.eblu.me/-/health/live/" check_http "Frigate" "https://nvr.ops.eblu.me/api/version" -check_service "frigate-recording" "curl -sf --max-time 5 https://nvr.ops.eblu.me/api/stats | jq -e '.camera_fps > 0'" +check_service "frigate-camera-fps" "curl -sf --max-time 5 https://nvr.ops.eblu.me/api/stats | jq -e '.cameras | to_entries | all(.value.camera_fps > 0)'" +check_service "frigate-storage" "curl -sf --max-time 5 https://nvr.ops.eblu.me/api/stats | jq -e '.service.storage | to_entries | map(select(.key | startswith(\"/media\"))) | length > 0 and all(.[]; .value.free > 0)'" check_http "JobSync" "https://jobsync.ops.eblu.me/" echo ""