ampbase

OPAMP CONTROL PLANE

Documentation

View as Markdown

Configurations

A configuration is the YAML or TOML files your agent normally reads from disk — Ampbase just becomes the canonical place to author, version, and roll it out. Every channel holds a list of configurations, each tied to an agent type.

Files

A configuration holds one or more files, and every agent a rule sends to it receives all of them. Most configurations are a single file. An agent that reads several, such as Refinery with its config and its rules, gets them as one configuration, and each version changes them together.

The configuration page lists the files in name order, which is the order they apply: where two files set the same thing, the later one wins. Choose a file to edit it, + File to add one, and Remove to delete one. When you add a second file to a configuration whose only file has no name, the page asks you to name the first.

A file has no history of its own. Editing three files and saving makes one version of the configuration, reviewed as one diff, and every version holds the complete set of files.

What a configuration's files can be called depends on its agent:

Agent Files
OpenTelemetry Collector, Vector, Telegraf, Fluent Bit Any number, under any names. A configuration of one file can leave it unnamed.
Refinery Exactly two: refinery_config and refinery_rules.
Tetragon One file per policy, and daemon.conf for daemon options.
Falco One file per rules file, ending .yaml or .yml, and falco.yaml for daemon options.
AI coding agents One unnamed policy file.

Tetragon and Falco write each file to the host under its name, so a name there starts with a letter or digit and holds only letters, digits, ., _ and -. No name may contain a colon, and ampbase-intelligence is reserved for the intelligence export. A file can't be empty.

A configuration holds at most 100 files, each up to 1 MiB and together up to 8 MiB. A channel can hold up to 500 configurations; deleted ones don't count.

What agents run

For an OpenTelemetry Collector configuration of several files, the page shows What agents run: the files merged the way the collector merges them, read-only. Maps merge, and a later file's list replaces an earlier one's. Values your hosts supply, such as ${env:REGION}, appear as written. If the files don't merge, the panel says why, because the collector would refuse them the same way.

Vector, Telegraf and Fluent Bit combine a configuration's files on the host, and Refinery, Tetragon and Falco read each file on its own, so for those the page shows the files as they are.

Versioning is automatic

Every save creates a new immutable version with a ULID. Versions are append-only — nothing is ever overwritten. That means:

  • You can compare any two versions side-by-side from the UI.
  • Rollback is a deploy of an earlier version.
  • The full edit history (who, when, why) is in the audit log.

A configuration has two version pointers, and its page tags both in the versions table:

  • Broadcasting — the version a deploy last shipped: what the channel default and every rule set to Follow the broadcast serve.
  • Your track — your newest save. Every save goes into your own track for the configuration, opened on your first save: the page then says Saved to your track · not serving, and nothing an agent runs has changed. Each person's track is their own, and a strip above the versions table lists the open ones, each with its newest version.

Saving moves your track and nothing else. Only deploying changes what is broadcasting. They diverge intentionally while you stage a change.

To deploy an older version again, choose Open a track at this version on its row: it saves a copy of that version into your track, naming the version it came from, and you deploy it from there like any other save.

If you don't want to deploy now, choose Ready for the next rollout beside your track in the strip, or on the track's own page. The strip then says Your track · ready · will ship with the next rollout. Marking a track ready deploys nothing: the next rollout takes it. While a rollout is running, a track you mark ready waits for the one after. Take it out of the queue undoes it.

The Tracks page in the channel's sidebar lists every track on the channel. Tracks someone named come first, with each configuration they changed and its newest version. Personal tracks, the ones a save opens for its saver, are grouped under a count. Shipped and closed tracks follow, greyed out. A track's own page shows its owner, its note, its state and its newest version of each configuration, with Ready for the next rollout and Close track. Closing a track ships nothing, and its versions stay in the history. A track whose owner has left the organization names them as a former member. Tracks covers marking a track ready, shipping it, and what to do when one is handed back.

To try a track on a few hosts before it ships, choose Soundcheck on the track's page. It lists the channel's agents with their build and environment, and a search box. Tick up to the number of hosts it shows and choose Save soundcheck: those hosts are then served the track's newest versions ahead of the channel's rules, and the page says Soundchecking on 2 hosts with each host linked to its agent page. Saving into the track moves its hosts to the new version. When a new version needs a confirmation a deploy would ask for, such as one that arms enforcement, the hosts stay on the version they had and the track's page and the configuration page say so; soundcheck again with the confirmation, under Confirm a gate, to move them on. Untick every host and save to end the soundcheck. Shipping or closing the track ends it too.

Deploy is the verb

Every version is shipped the same way: click Deploy this version — at the top of the configuration page for your track's newest version (or what is broadcasting, when you have saved nothing since), or on any row of the versions table for that one. The deploy sheet opens with two choices:

  • Staged rollout (the default) — Stage by stage, each judged before the next. The version reaches a first stage of the fleet, and each later stage starts only when the agents already on it report it applied and healthy. A rejection rolls it back, or pauses it for you. When the last stage is green, the rollout promotes: every rule it moved, the channel default among them, serves the new version. You choose the plan — by percentage, or through the values of a label such as env — and whether Ampbase advances and rolls back on its own. When a version needs build components, stages are judged only on agents whose supervisor reports theirs. See Rollouts, under What automatic judgement needs from your fleet.
  • Broadcast now — Every agent at once, with no stages. It ships in one step: fast, but every agent flips at once. Opened on a track's newest version, the button is Broadcast now and ships the tracks too (see Tracks). On any other version the button is Broadcast now when the channel default already follows this configuration. Otherwise it is Broadcast and set default, since it makes this configuration the channel default too.

Either way, once a version is the channel default:

  1. Each connected agent receives the new payload on its next OpAMP message (sub-second on WebSocket).
  2. The supervisor writes it to the agent's config path and sends SIGHUP (or restarts, depending on the agent adapter).
  3. The supervisor runs a post-apply health check, then reports the new config hash back to Ampbase.

If health-check fails, the supervisor keeps the previous config running and reports back as degraded. You see this in the agent's UI row — and during a staged rollout, it is what a stage is judged on.

Through the API, a read or a deploy that names no version takes your track's newest version, or what is broadcasting when you have saved nothing since, as the button at the top of the page does. When that is already broadcasting and the channel default already serves it, the deploy changes nothing and records no deploy.

A channel runs one rollout at a time. While one is live, Broadcast now is refused, with a link to the rollout and to roll it back there: a default set underneath a rollout would change what it restores if it rolls back.

The same versions serve both choices, so nothing is re-authored to switch between them. A routing rule you author yourself still routes the agents it matches, whichever way the default was set — that is how you keep a region or a team on its own version for good.

Duplicate and compare

Duplicate, at the top of a configuration's page, makes a new configuration with the files of the version the page leads with: your track's newest, or what is broadcasting when you have saved nothing since. Its history says Copied from with a link back, and from then on the two change separately. Duplicate when an environment needs different files from the rest: give it its own configuration and a routing rule that sends its agents there.

Compare, on any row of the versions table, shows that version file by file against the version it was saved on. From there, Compare with another configuration's broadcast sets it beside what another configuration of the same agent is broadcasting, which shows how far two configurations have drifted apart.

When a channel serves nothing, the first configuration you create there becomes its default straight away, so agents that connect have something to run. No build-coverage check runs, because there is no working default to protect. A first version that arms enforcement is the exception: it waits for you to deploy it, so the deploy can ask for the confirmation enforcement needs.

Validation

The supervisor pre-validates configurations before applying them on the agent host:

  • otelcol — runs otelcol validate --config <file> and refuses to apply if it errors.
  • vector — runs vector validate with a kill timeout.
  • telegraf — runs telegraf --test --quiet.
  • fluent-bit — YAML pass-through; Fluent Bit catches schema errors on reload.
  • refinery — YAML syntax validation only.

A configuration that fails pre-validation is rejected and the previous config stays in place. The agent row reflects the failure with the validator's stderr so you can see exactly why.

Collector configs are also checked structurally when you save them, so the obvious breakage surfaces in the editor instead of on your hosts. Saving a collector config whose service section wires a component no section defines is refused outright — the collector would not start on it. Deploying one is refused for the same reason, which is what catches a config saved before this check existed: if the version page shows a structural error, setting that version as the channel default is refused too, with the same explanation. A component you define but no pipeline uses is saved and noted on the version page: the collector runs fine that way, but the component still has to exist in the agent's build for the config to load, so an unused definition is worth removing rather than leaving. For a configuration of several files these checks read the merged result, the same document What agents run shows, and a finding names the file it came from.

Build requirements and fleet coverage

Validation asks "is this config well-formed?". There's a second question it can't answer: "can the builds in this channel actually run it?" — a config that wires the Kafka exporter is perfectly valid and still won't start on a collector build that doesn't have one.

So every save records what the version requires of a build: every component the config names, in the agent's own vocabulary. For a collector that means everything a section defines as well as everything the service section wires — the collector checks every defined component against the build when it starts, so a component you define but never wire into a pipeline still has to exist in the build for the config to load, and it is counted here. (It also shows up as an unused-definition note when you save; removing it is what shrinks the requirement.) For Fluent Bit, Vector and Telegraf, declaring a plugin is using it, so every declared plugin is required.

The version page shows the set at the top, under Build requirements, together with how much of the channel can run it:

Build requirements                     500 agents in this channel

  exporter/kafka   processor/transform

  480/500 supported   12 missing a component   8 unknown

  exporter/kafka — missing on 12 builds

Unknown is its own number and stays that way. An agent that has never reported its build, or whose enumeration couldn't be read, is neither supported nor missing — it's an agent Ampbase can't describe. It is never folded into either of the other two counts, because failing to prove a component absent isn't evidence that it is. A fleet mid-supervisor-upgrade reads as mostly unknown, and that's the honest answer, not a problem with the version.

Two more states the panel can show instead of a set, both meaning the requirement itself is unknown — never "requires nothing":

  • Requirements could not be derived — the version's content couldn't be read for components (unparseable, or a construct Ampbase can't see through). The stated cause travels with it.
  • Requirements not derived — the version was saved before Ampbase recorded build requirements. Saving a new version records them.

Under either, a gated rollout treats the version as needing confirmation and withholds it rather than assuming it's safe.

One more note you may see on a derived set: that it was recorded under older rules — before Ampbase counted components a config defines but never wires. The set is real, but it can show less than the version requires. Ampbase re-derives those records automatically; the note disappears once it has.

Two known limits, so you're not surprised by them: a Vector configuration written in TOML has no derivable requirements — requirement extraction reads Vector configs as YAML, so a TOML one lands in Requirements could not be derived. And Telegraf's data_format parsers and serializers aren't part of the requirement, because the format name in a plugin table isn't reliably the plugin name in the build; a config using a parser the build lacks fails the way it always has, without a warning here.

For a configuration of several files, a collector's requirement is derived from the merged result. For Fluent Bit, Vector and Telegraf it is every file's requirements together; if one file's can't be derived, the panel names that file.

If the channel has telemetry intelligence export enabled, coverage also counts the exporter Ampbase adds to the config at delivery time. That component doesn't appear in your config, but the agent has to have it, so it's part of the requirement.

Coverage is a readout, except in one place

Saving a version is never gated on coverage, at any number. Authoring a config ahead of the fleet is a normal workflow, and a saved version reaches nobody. Pointing a rule's variant at it isn't gated either: the component gate makes an all-ineligible variant inert, so there's nothing to acknowledge.

The exception is setting a version as the channel default, and it's the exception for a specific reason: the default is deliberately not gated. Every agent receives it whatever its build can run — that's what makes it a safe fallback — which also makes it the one path nothing protects. So Broadcast now attaches friction to that action:

  • Partial coverage warns. It states the numbers and proceeds. Agents whose builds can't run it keep their last-applied config.
  • A fleet where nothing has reported warns and never blocks. It states the unknown counts. Unknowns alone never escalate.
  • Zero coverage among agents that have reported requires you to type a phrase — something like deploy without exporter/kafka — and the dialog quotes the measurement it's asking you to acknowledge: "of 500 agents seen: 480 report manifests, none can run this version; 20 unknown". That's a specific claim about your fleet, not a generic are-you-sure. Proceeding means delivering a config the reported builds can't be shown to run. A renamed component doesn't normally trip this — a build reporting a required component under a newer name counts as having it (see Routing, under Renamed components are recognized) — so if zero coverage appears right after an agent upgrade anyway, the build may report a rename Ampbase can't match by module; check the agent's release notes before you decide.

The same confirmation applies to a staged rollout: its last step makes the version the channel default, so the deploy sheet asks for the confirmation before the rollout starts — a tick box stating that no agent that reported its build can run the version — rather than letting the rollout stall at the end. A rollout's stages are a different matter: they only reach agents whose builds can run the version, so when the version needs any components, an agent whose build has never reported is withheld from every stage and never judged.

What a build for this channel has to contain

A version page answers "what does this version need". If you build your own agent image — a trimmed collector, say — you need the other question: what does a build for this whole channel have to contain? One version's requirements are not that answer. A channel serves its default to every agent, and each enabled rule's variant serves something else to the agents it routes to, so the build has to satisfy all of them at once. Build an image from the default's list alone and every rule's variant that needs anything extra is correctly withheld from those agents the moment you deploy it.

The configurations index answers the whole question, under Build requirements for this channel. It is the union of every active rollout target — the channel default plus every variant of every enabled rule — grouped by agent type, because one image serves one agent type:

Build requirements for this channel     union of every active rollout target

  otelcol   OpenTelemetry Collector — 4 components from 3 targets

  exporter/kafka · base, canary      exporter/loki · loki-trial
  exporter/otlphttp · base, canary, loki-trial, intelligence export
  processor/transform · base

  Plain list
  ┌───────────────────────────────┐
  │ exporter/kafka                │
  │ exporter/loki                 │
  │ exporter/otlphttp             │
  │ processor/transform           │
  └───────────────────────────────┘

Each component names the targets that require it, so you can see what a component is there for before deciding to keep shipping it — and the plain list is the same set with nothing else in it, ready to paste into a build manifest.

Three things worth knowing about what is and isn't in there:

  • Disabled rules are not counted. A disabled rule routes nothing, so building for its variant only makes the image bigger. Re-enable it and the union grows again.
  • The export tap is counted. If the channel has telemetry intelligence export enabled, Ampbase adds an exporter to every config at delivery. It appears in the union attributed to intelligence export, because no config of yours names it and the build still needs it.
  • Agent types whose builds can't be missing a component get no section. There is no build content to derive for them.

A union that couldn't be completed says so. If any active rollout target can't be counted — its requirements couldn't be derived, the version was saved before Ampbase recorded them, or a read failed — the affected build is marked This union is incomplete above the list, and every uncounted target is named under Targets that could not be counted with the reason. An incomplete union can name fewer components than the channel actually demands, so treat the list as a floor rather than the answer until the gap is closed. The one case that isn't a gap: a target whose requirements were derived and are empty — that version genuinely needs nothing of the build.

If a target's requirements were recorded under older derivation rules, the union says that too, in the same words the version page uses — the list is real but can show less than the channel requires until the record is re-derived.

Audit

Every create, save, and deploy emits an event recorded in the channel's audit log — dual-written to both the channel log and the org log so org admins see everything that touched their fleet without crossing channel boundaries.


Spotted a problem with these docs? Email support@ampbase.io.