Silent-source (stale) event trigger #29

Closed
opened 2026-10-28 15:12:49 +00:00 by Gilles · 0 comments
Owner

Part of the monitoring plan (phase 2.1): get alerted when a source stops reporting (dead man's switch).

Scope

  • New event trigger stale ("Source muette").
  • The expected period comes from the report's expect_every (see the JSON/source issue); a rule can override it with its own after parameter. Streams with neither are never considered silent.
  • A periodic Celery task (every 5 minutes) compares each stream's last reception (max(uploaded_at, last_seen_at) of its latest report) with the expected period plus a tolerance (max(10 min, 10 %)), fires the event on the false → true edge, and raises an info "back" event when the stream reports again.
Part of the monitoring plan (phase 2.1): get alerted when a source stops reporting (dead man's switch). ## Scope - New event trigger `stale` ("Source muette"). - The expected period comes from the report's `expect_every` (see the JSON/source issue); a rule can override it with its own `after` parameter. Streams with neither are never considered silent. - A periodic Celery task (every 5 minutes) compares each stream's last reception (`max(uploaded_at, last_seen_at)` of its latest report) with the expected period plus a tolerance (max(10 min, 10 %)), fires the event on the false → true edge, and raises an info "back" event when the stream reports again.
Sign in to join this conversation.
No description provided.