You're viewing the docs for Config 0.x. The latest is 1.x (rc). Go to the 1.x (rc) docs
Telescope
The Configuration dashboard, and every config event in the telescope timeline.
@adonis-agora/config ships a first-class @adonis-agora/telescope extension: a Configuration
dashboard (store health, write activity, recent changes, secret reveals, the tenants this control
plane saw) plus one diagnostic entry per config event in the timeline. Nothing about a value is
ever recorded — only who changed which key, when, and which version it produced.
Both telescope and the diagnostics bus are optional: without them the package works exactly the same and simply emits nothing.
npm i @adonis-agora/diagnostics @adonis-agora/telescopeWiring
With both installed, the provider pushes the extension into 'agora.telescope.extensions', which
telescope reads in addition to config/telescope.ts. Nothing else to do.
To pass options, or if you prefer the explicit list:
import { defineConfig } from '@adonis-agora/telescope'
import { configTelescopeExtension } from '@adonis-agora/config/telescope'
export default defineConfig({
extensions: [
configTelescopeExtension({ windowMs: 24 * 60 * 60 * 1000 }),
],
})A configured extension wins over the auto-registered one (same name, config), so there is no
double dashboard. Turn the auto-registration off with:
defineConfig({ topology: 'control-plane', verifyTenant, telescope: false })What it shows
| Section | |
|---|---|
| Health | entries, secrets, values sealed for an app, and unreadable secrets (warn/bad at 1+) |
| Activity | changes over time split by set / unset / rollback, changes by action, tenants seen |
| Audit | recent changes (paged: app, environment, action, key, actor, version) and secret reveals |
| Tenants | every tenant that reached this control plane since boot, with capabilities and last version |
Live counts read the running agora.config store; history is read from the telescope storage
(type: 'diagnostic', tag: 'lib:config'), so it is cluster-wide when telescope's store is shared.
The tenants table is process-local (in-memory presence), same as the console's overview.
Events
Every event is published on agora:config:<event> through @adonis-agora/diagnostics and recorded
as a generic diagnostic entry tagged lib:config. An event about an app also carries it as the
envelope app (@adonis-agora/diagnostics 1.0.0-rc.6+), so Telescope tags it app:<name>. The
process that coordinates an action emits it: the control plane emits key.registered,
sealed.reseal and tenant.fetch for its tenants, and the tenants do not repeat them.
| Event | When | Payload (never a value) |
|---|---|---|
entry.set | an entry was written (console, CLI, MCP, admin) | app, environment, label, key, version, actor, secret, reloadable, sealedTo?, message? |
entry.unset | an entry was removed | same |
rollback | a past version was copied into a new one | app, environment, label, version, actor, toVersion, message? |
entry.reveal | a secret value was read through reveal / --secrets | app, environment, label, key, version, actor |
sealed.reseal | a tenant re-sealed values to its active key | app, environment, label, version, actor, keys |
key.registered | a tenant published its X25519 public keys | app, active, kids, actor |
tenant.reload | a running tenant applied a version | app, environment, label, version, reloadable, restartRequired |
tenant.fetch | the control plane served a tenant its document (a 304 poll is not an event) | app, environment, label, version, actor, entries, secrets |
crypto.reseal | config:crypto:reseal ran | dryRun, all, scanned, resealed, failed |
Consume them directly when telescope is not the only observer:
import { onDiagnostic } from '@adonis-agora/diagnostics'
onDiagnostic('config', 'entry.set', (event) => {
// event.app: the app the entry belongs to
// event.payload: { app, environment, label, key, version, actor, secret, … }
})