Repository navigation
[9.4] (backport #17977) feat: update OTel Collector components from 0.164.x to 0.165.x - #18050
Merged
Merged
Conversation
…ic#17977) * Update elastic/beats to 65bae9ee687e Also updates OTel Collector components from 0.164.x to 0.165.x: Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1), and Elastic OTel components to v0.81.0. Removes settings that are no longer accepted by the updated components: - `keep_alives_enabled` from the healthcheckv2 extension config injected by the OTel manager (removed from confighttp server settings). - `mapping::mode` from the Elasticsearch exporter in samples, Helm chart, docs and test data (removed from the exporter; it was already ignored). Created-by: Claude Opus 5.5 Co-authored-by: Cursor <cursoragent@cursor.com> * Use beats/v7/pkg types in heartbeat browser CA integration test The test was added with elastic-agent-libs imports while elastic#17917 moved the shared test helpers to beats/v7/pkg, so the testing/integration/ess package no longer compiled. Created-by: Claude Opus 5.5 Co-authored-by: Cursor <cursoragent@cursor.com> * Remove unsupported sending_queue from prometheus_remote_write test configs The Prometheus remote write exporter has never supported sending_queue (it uses remote_write_queue). Before confighttp v1.71.0, the custom Unmarshal of the squash-embedded confighttp.ClientConfig used WithIgnoreUnused, which made the exporter silently accept unknown keys. confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now rejected and the collector failed to start in these tests. Created-by: Claude Opus 5.5 Co-authored-by: Cursor <cursoragent@cursor.com> * Apply suggestion from @alexandra5000 Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com> * Apply suggestion from @alexandra5000 Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com> * docs: update removed versions * fix: use extensioncapabilities.ComponentStatusWatcher in status-watching extensions Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls it: the service now notifies only extensions that implement extensioncapabilities.ComponentStatusWatcher (method Changed). The elastic_diagnostics and elastic_meter_lifecycle extensions only implemented the old interface, so they stopped receiving StatusStopped events. Diagnostic hooks of receivers torn down by a partial reload were never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the meters of stopped receivers were never released. Implement the new interface in both extensions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * build: don't list extensioncapabilities as an EDOT component The EDOT README generator treats every direct OTel dependency whose path contains /extension/ as an extension component. The meterlifecycle extension now imports extensioncapabilities directly for the ComponentStatusWatcher interface, so the generator listed that API module as an extension and check-ci failed on the stale README. Skip modules that hold collector APIs rather than a component, starting with extensioncapabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 073f69a)
andrzej-stencel
requested review from
macdewee
and removed request for
a team
November 17, 2026 10:06
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
|
This pull request is merged. |
andrzej-stencel
enabled auto-merge (squash)
November 17, 2026 13:11
vishaangelova
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
9.49.4already has the same OTel update ([9.4](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x beats#54648, backport of chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x beats#54611)Risk
Rationale
Manual backport of #17977, because Mergify could not resolve the conflicts.
This PR updates the OTel Collector components from 0.164.x to 0.165.x (Core v0.165.0 / v1.71.0, Contrib v0.165.1, Elastic components v0.81.0). It also removes the settings that the updated components no longer accept (
mapping::modeof the Elasticsearch exporter andkeep_alives_enabledof the healthcheckv2 extension).It also bumps the
beatssubmodule from7e90872690toa3615484b4, the head of Beats9.4, which already has the OTel 0.165.x update. Beats commits pulled in:The Beats bump moves
github.com/elastic/elastic-agent-client/v7from v7.18.1 to v7.20.0.Conflict resolution
go.mod/go.sum(root andinternal/edot): took the higher version of each module, then rango mod tidy. Modules that the conflict hunks only bumped because ofmaincontext and that nothing requires were reset to their9.4versions: AWS SDK and Google API modules ininternal/edot,go-errors, andk8s.io/apiserver/component-base.NOTICE.txt,NOTICE-fips.txtandinternal/edot/README.mdwere regenerated.9.4content and removed only themapping::modesetting.internal/edot/samples/linux/profiles_metrics.ymlstill uses the Elasticsearch exporter on9.4(onmainit uses the OTLP/HTTP exporter), somapping::modewas removed there as well.internal/pkg/otel/extension/elasticdiagnostics: kept the9.4version. On9.4the extension doesn't watch component status (noComponentStatusChanged), so theextensioncapabilities.ComponentStatusWatcherchange doesn't apply. Theelastic_meter_lifecycleextension and the Prometheus integration tests don't exist on9.4, so their changes were dropped.mapping::modeinelasticsearchexporter.mdconflicted withmain-only wording, so the9.4text was kept. The other docs changes applied cleanly.Rollout and safety
Users who set
mapping::modeon the Elasticsearch exporter orkeep_alives_enabledon an HTTP server must remove these settings, otherwise the Collector fails to start. The changelog fragments from #17977 describe this.Testing
go build ./...andgo vet ./...pass in the root andinternal/edotmodules.internal/pkg/otel/...,internal/pkg/agent/application/...,dev-tools/mage/otel/...and all ofinternal/edot(aftermage build:unitTestBinaries).mage checkpasses.🤖 Generated with Claude Code