Skip to main content

Overview

Configuration overlays let you apply a change to multiple Fleet Management configuration groups without editing each group's base configuration. Use an overlay to:

  • Make a controlled change across groups: Apply a shared configuration fragment to selected targets and deactivate it when the change is no longer needed.
  • Investigate an issue: Manually activate extra logging across affected groups, then deactivate it when the investigation is complete.
  • Support a planned event: Schedule a one-time change for a migration or maintenance window, and let it stop applying when the window ends.
  • Repeat a temporary change: Schedule extra logging during a nightly job or another recurring event.

The Fleet Manager Configuration Overlays API manages OpenTelemetry Collector configuration fragments for selected remote configurations in active configuration groups. When several active overlays target the same remote configuration, their priority determines the merge order. Use the API to create, list, retrieve, update, and archive overlays. The API is in preview.

For a product overview, examples, and instructions for using Fleet Management, see Configuration overlays.

Authentication and permissions​

To use the Fleet Manager Configuration Overlays API, create a personal or team API key with the remote-configuration:Manage permission. The Fleet Manager permission preset includes this permission.

Common error response codes​

Status CodeDescription
400 Bad RequestInvalid request, update mask, target, or schedule.
401 UnauthorizedMissing or invalid API key.
404 Not FoundOverlay not found or archived.
409 ConflictAn overlay with the same name already exists.
500 Internal Server ErrorInternal server error.

Core concepts​

Overlays and versions​

An overlay has a stable id and a current version and versionId. Changes to its configuration or targets create a new version. Schedule changes update the current version without creating a new one. The active field indicates that the overlay is eligible to apply; it does not confirm that an agent has applied the resulting configuration.

Targets and remoteConfigurationId​

Each target identifies a remote configuration in a configuration group. When creating or replacing targets, set remoteConfigurationId to the ID at family.raw.remoteConfigurations[].id in the configuration group response. This is the remote configuration ID, not the configuration group ID. The remote configuration's family must be active. See Get configuration group to find it.

After saving, the overlay response records the target snapshot, including the source configuration family and remote configuration IDs and the generated overlay family and remote configuration IDs.

Merge precedence​

When several active overlays target the same remote configuration, the service merges them in ascending priorityOrder. Higher values win when overlays change the same key. If priorities tie, the newer overlay wins. priorityOrder defaults to 0.

Activation and schedules​

New overlays are inactive by default. Set active to true to activate an overlay; activation requires at least one target. With no schedules, an active overlay applies continuously. With schedules, it applies only during the scheduled windows. Schedule windows on the same overlay cannot overlap, and an active overlay cannot have an empty target list.

For a one-time window, set a start time and duration without a recurrence. To repeat a window, add a recurrence and optionally a termination date. The overlay must be active for its scheduled windows to apply; deactivating it stops them from applying until you reactivate it.

The create and update responses report whether an overlay is eligible to apply. Check Fleet Management for the per-agent status that confirms whether agents applied the merged configuration.

Updates and field masks​

An update applies only the fields listed in update_mask. A listed field omitted from the request body is cleared or reset to its default. Changing custom.configuration or custom.targets creates a new overlay version; the schedules carry over to that version. Updating only schedules does not create a version. The API rejects a version-creating update while one of the overlay's scheduled windows is applying.

Archive semantics​

Archiving an overlay archives the overlay and all its versions. Deactivate an active overlay before archiving it. An archived overlay cannot be updated; list and get operations exclude archived overlays unless include_archived=true.