Picture a collector accepting a harmless test event. The operator's search returns the matching alert ten seconds after the deadline. The check fails. An acknowledgement tells us that the collector accepted the input. The canary asks whether the expected result became visible where an operator looks for it and within the time the check allows.

Choose where the check ends

The test starts with a harmless event and ends when a completed search returns its expected alert. The boundary runs from the producer that submits the event to the reader that can see the alert. A collector acknowledgement can precede a parsing failure or a delay in making a result searchable. Each of those failures can leave the producer with a successful response.

If a privileged test account can see the expected record while the operator's role cannot, the check has exercised a different access path from the one the team relies on during an incident and its result gives no evidence that an operator can find the alert.

Match the current event and its expected result

The independent fixture uses imagined alert records and a simulated clock. A run starts at second 100 and allows 30 seconds for a search to return the expected alert. An observation at second 130 passes and one at second 140 misses the deadline. These times are inputs to the example.

expected alert at second 112: pass
expected alert at second 130: pass
previous run's alert: fail
ingestion receipt: fail
expected alert at second 140: fail
empty result: fail
6 assertions passed

The run identifier ties a result to this submission so yesterday's alert cannot stand in for today's delivery. The result type tells us whether the search found the expected alert or merely a record of receipt. The observation time belongs to the completed search because an event timestamp can precede the moment that event becomes visible.

An alert found after the deadline still helps explain a failure. It gives the operator evidence of late visibility and preserves the original result for the deadline the check was meant to enforce. A search error deserves a distinct diagnostic because it leaves the check without an observation.

Read the pass at the scope of the test

Google's SRE chapter on monitoring distributed systems describes black box monitoring in terms of behavior seen by a user. Here that behavior is an operator retrieving one expected alert from a search. A pass covers the exercised input and search path for that run. Pager delivery and other event types each need their own observed outcome.

Try adding the previous run's alert to the late result in the fixture. The search now returns two plausible records and the canary still fails. Move the current alert inside the window and the same search results now contain evidence of timely delivery.

Sources and examples