Agora

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/telescope

Wiring

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:

config/telescope.ts
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:

config/config.ts
defineConfig({ topology: 'control-plane', verifyTenant, telescope: false })

What it shows

Section
Healthentries, secrets, values sealed for an app, and unreadable secrets (warn/bad at 1+)
Activitychanges over time split by set / unset / rollback, changes by action, tenants seen
Auditrecent changes (paged: app, environment, action, key, actor, version) and secret reveals
Tenantsevery 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.

EventWhenPayload (never a value)
entry.setan entry was written (console, CLI, MCP, admin)app, environment, label, key, version, actor, secret, reloadable, sealedTo?, message?
entry.unsetan entry was removedsame
rollbacka past version was copied into a new oneapp, environment, label, version, actor, toVersion, message?
entry.reveala secret value was read through reveal / --secretsapp, environment, label, key, version, actor
sealed.reseala tenant re-sealed values to its active keyapp, environment, label, version, actor, keys
key.registereda tenant published its X25519 public keysapp, active, kids, actor
tenant.reloada running tenant applied a versionapp, environment, label, version, reloadable, restartRequired
tenant.fetchthe control plane served a tenant its document (a 304 poll is not an event)app, environment, label, version, actor, entries, secrets
crypto.resealconfig:crypto:reseal randryRun, 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, … }
})

On this page

Partner

Your product as the official integration for Config, right here.

Become a partner →