Skip to content

Never a false zero

A dashboard that shows 0 stale chunks when it never received the data to check staleness is lying. ctxflow never does that. Every figure has a status:

Status Meaning What you see
available Measured on all of its input. The value.
partial Measured on part of its input: some items could not be judged. The value with a “partial” mark, and a reason.
unavailable Not measured: a signal it needs never arrived in the environment, or no input could be judged. “n/a”, “not available” or “not measured here”, the missing signal and what unlocks it. Never 0.

The API uses the same shape: { status, value, reason, unlockedBy, docsPath }, with value: null when unavailable.

Rates are given as a numerator over a denominator (“3 of 5”). A ratio with a denominator of 0 is null, not 0 % or 100 %.

When a figure covers only part of its input, its coverage says how much. For example the C6 stale-context rate counts only items with a known source state; next to it the app shows how many items are known, how many are ambiguous and how many are unknown, split by reason (“C6 known in 3 of 5 sources”).

Some facts cannot be seen without changing how you work. ctxflow never polls your index or your sources, so a change made outside your instrumented processes is not seen, and the views say “not measured” there. Add the instrumentation the reason names (see Signals) and the figure appears; there is nothing else to configure.

A signal that arrived before and stopped while turns keep arriving is marked stopped (S2–S6, after 7 days). The figures that need it say until when they are valid. Usually an instrumentation change dropped it.

Signals lists what unlocks each figure. Where it shows: Health, Data received.