Skip to content

Operate provider usage readers

A usage reader is one backend capability: it calls a provider endpoint with a credential the instance already holds and stores what it learns. Readers are on by default (an owner decision); this page is how you see them, switch one off, and read why one is failing.

  1. Open the operator console (/operator) with an operator credential.
  2. Open the Switches tab. Its usage readers panel lists every declared reader: its class, where it reads (server or harness), its ladder position in the provider table, its ToS note, whether this build implements it, its switch, and its instance-wide health. GET /api/operator/v1/usage-readers returns the same list.
  3. Health is one of ok, failing, never, disabled. A failing reader names the typed failure class of its worst credential pair — unauthorized, forbidden, not_found, rate_limited, server, malformed, transport, unsupported.
The operator console's Switches tab, usage readers panel — every declared reader with its class, ladder position, health and switch, and the notification thresholds.The operator console's Switches tab, usage readers panel — every declared reader with its class, ladder position, health and switch, and the notification thresholds.

The same rows appear per workspace on Reports → Usage (the reader health line), so a workspace admin sees which of their credentials a reader cannot read.

  1. PUT /api/operator/v1/usage-readers/{reader} with {"enabled": false, "reason": "…"}.
  2. The reason is required and is stored with the decision.
  3. The switch is instance-wide and takes effect on the next read. It is audited as usage_reader_disabled (and usage_reader_enabled when turned back on).
  1. GET /api/operator/v1/usage-alert-thresholds reads the pair in force (default 80,95).
  2. PUT /api/operator/v1/usage-alert-thresholds with {"value": "80,95", "reason": "…"}.
  3. A malformed or out-of-range value falls back to the built-in pair instead of silencing the notices; the stored value is exactly what the announcer uses.
  4. The boot log line names the pair and the reader switches in force.
Action Written when Payload
usage_refresh_requested A surface asks for a read credential id, kind, provider, surface
usage_reader_enabled / usage_reader_disabled An operator flips a switch the new state, the class and the ladder position
usage_reader_broken / usage_reader_recovered A credential’s read fails a third time in a row for a reason that is not the credential’s (anything but unauthorized / forbidden) / that broken streak ends the reader, provider, credential kind, typed class and streak length
usage_alert_thresholds_set The threshold pair changes the pair
dispatch_blocked_by_quota A dispatch gate refuses on a reading the reading id the decision used

No audit row carries a token, a response body or a reading value. The rows are on the workspace audit board (/reports/audit) and the operator audit board (GET /api/operator/v1/audit).

  1. Read the typed class: unauthorized means the credential must be reconnected (the instance does not retry it); rate_limited means the provider stated a wait and the reader honours it; malformed means the provider’s shape moved and the reader is broken until it is pinned again — that is a finding, not a zero.
  2. A failing reader never writes a zero reading. The last good reading stays visible with its age until its freshness band passes.
  3. While any enabled reader is broken on some credential, the SupaCloudUsageReaderBroken operator alert fires (supacloud_dispatch_alert{kind="usage_reader_broken"}). A reader you switch off stops counting, and a credential that only needs reconnecting never pages.