Upgrade OpenTelemetry Collectors in Fleet Management
Upgrade your OpenTelemetry Collectors by setting a target version in a custom configuration group. When you activate the group, Fleet Management offers the upgrade to matching agents as they check in.
To upgrade the template and Collector version of a preset-mode configuration with the one-click workflow, see Upgrade configurations.
What you need
-
The
REMOTE-CONFIGURATION:MANAGEpermission. The FleetManagement permission preset includes it. See Fleet Management permissions. -
Collectors running with a Supervisor that accepts remote configuration and package upgrades. See the remote configuration setup.
-
On Kubernetes, the
otel-integrationHelm chart v0.0.382 or later. It turns on package upgrades by default with thecollectorUpgradessetting. When your Helm values set it tofalse, merge the following into your existingvalues.yamlto set it totruefor each Collector type you want to upgrade:opentelemetry-agent:presets:fleetManagement:supervisor:collectorUpgrades: trueopentelemetry-cluster-collector:presets:fleetManagement:supervisor:collectorUpgrades: true -
Network access from the Supervisor to the OpenTelemetry Collector release distributions on GitHub, where it downloads the new binary.
Test the upgrade on one agent
Before you select a version, review the OpenTelemetry Collector release notes and Contrib release notes for breaking changes.
On Kubernetes, a configuration group configures two Collector types separately: agent, which runs on every node, and cluster-collector, which runs as one instance per cluster. Test each type you plan to upgrade.
-
In Coralogix, go to Integrations, then Fleet Management. Open the Configurations tab.
-
Open the configuration group's actions menu (⋮) and select Clone.
-
In Agent selector, add a filter for one agent. For example, use
k8s.node.nameto select a Kubernetes node. Remove anyservice.versionfilter from the clone so that the agent still matches after its version changes. -
In Preview, check that only the intended agent appears in the Agent list.
-
In the custom configuration editor, open the Collector version section and select the target version. The version list shows which version is the newest and marks the version your Collectors run as Running now. Keep the Collector configuration the same so that you can test the binary change on its own.
-
Activate the clone. Check that it has higher priority than the original group so that the selected agent receives the upgrade. See Priority across configuration groups.
How the upgrade works
On each matching agent, the Supervisor does the following:
- Downloads the package from the official OpenTelemetry Collector release distributions.
- Checks that the package matches the hash that Fleet Management sent. Verifies that the OpenTelemetry Collector release automation signed it.
- Stops the Collector and replaces its binary. The Collector doesn't collect data until the new binary starts.
- Starts the new Collector with the current configuration and waits up to 30 seconds for it to become healthy.
When the new Collector is healthy, the Supervisor deletes the previous binary. A later crash doesn't bring the previous binary back. The Supervisor handles it like any other configuration failure. See Handling failure scenarios and rollback.
Automatic rollback covers only a Collector that fails to start. A Collector can start and still change the telemetry it sends. For example, a new version can rename an attribute that a dashboard or alert uses.
Failure scenarios
When an upgrade fails, the agent keeps or returns to its previous Collector and reports the error to Fleet Management. The agent appears in the configuration's failed count. Select the count to list the failed agents. See View agents by configuration status.
| Failure | What the Supervisor does | What you do |
|---|---|---|
| The download fails, for example because the Supervisor can't reach GitHub. | Keeps the current Collector running. It doesn't reject the version, so a later attempt can succeed. | Check that the Supervisor has network access to GitHub. |
| The package doesn't match its hash, fails the signature check, or doesn't contain a Collector binary that can run on the host. | Keeps the current Collector running. Rejects the package and doesn't try it again on this agent. | Contact Coralogix Support. Trying the same version again on this agent has no effect. |
| The new Collector exits, or isn't healthy within 30 seconds. | Stops the new Collector, restores the previous binary and configuration, and starts it. | Check the error and the Collector logs. Read the release notes for breaking changes. |
| The Supervisor stops during the upgrade, for example because the pod restarts. | Restores the previous binary and configuration the next time it starts. | Check that the agent reconnects, and check its Agent version. |
Verify the upgrade
-
In Configurations, open the clone. In Preview, check the agent's status in the Agent list. The clone shows one applied agent, with no pending agents and no failures. The agent stays pending while the Supervisor downloads and installs the package, so how long it stays pending depends on your network and the size of the package. When the agent reports an error, or stays pending after the download should have finished, check its health metrics in the Agents tab before you continue. See Failure scenarios.
-
In Fleet Management, open the Agents tab and select the test agent. In Details, check that Agent version shows the target version.
-
In the agent's Configuration tab, use Compare to compare the configuration before the upgrade with the current one. Expect only changes that come with the new version. For example,
os.build.idbecomesos.build_id. Automatic rollback doesn't catch changes like this one. When a changed attribute is used by your alerts or dashboards, verify that they still work. -
Check that the expected logs, metrics, and traces still arrive in Coralogix. In the Coralogix toolbar, go to Explore, then Logs, Metrics, or Traces, filter by the upgraded agent's host or pod, and compare the volume and attributes with the period before the upgrade.
Roll out or roll back
To roll out the upgrade, set the tested Collector version on the original group. Check that its selector still matches the intended agents after the version change. In the Collector version section, use Upgrade N % of the collectors at a time to choose how many agents upgrade in each batch. The default is 10%. Activate the new version, deactivate the clone, and monitor the agent list for failures. Don't leave the clone active: it keeps the test agent apart from later changes to the original group.
Fleet Management upgrades the agents in batches. A batch finishes only when all of its agents report healthy. Then the next batch starts. When an agent fails, it automatically rolls back to its previous Collector binary and configuration.
To roll back, deactivate the clone. Check Agent version and telemetry after the rollback.
Limitations
- Automatic rollback covers only a Collector that fails to start. See How the upgrade works.
- The Supervisor waits up to 30 seconds for the new Collector to become healthy. A Collector that takes longer is rolled back.
- When a package fails its hash or signature check, the Supervisor rejects it and doesn't try that version again on the agent.
- The Collector doesn't collect data while the Supervisor replaces its binary.
Next steps
Upgrade template and Collector versions across your fleet with the one-click workflow in Upgrade configuration versions in Fleet Management.

