Repository navigation
[9.6] (backport #17977) feat: update OTel Collector components from 0.164.x to 0.165.x - #18049
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
blakerouse
and removed request for
a team
November 17, 2026 09:59
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
|
This pull request is merged. |
macdewee
approved these changes
Nov 17, 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.69.6already has the same OTel update ([9.6](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x beats#54646, 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 OTel components v0.81.0), as #17977 did on
main. It also removes settings that the updated components no longer accept (mapping::modeon the Elasticsearch exporter,keep_alives_enabledon the injected healthcheckv2 config), and moves the status-watching extensions toextensioncapabilities.ComponentStatusWatcher.It bumps the
beatssubmodule from156184c290toe7cba3c87c, the current head of Beats9.6, which brings in these Beats9.6commits:manager.Enabled()usages in OTel mode ([beatreceiver] Fixmanager.Enabled()usages in OTel mode beats#53348) ([9.6](backport #53348) [beatreceiver] Fixmanager.Enabled()usages in OTel mode beats#54084)How the conflicts were resolved:
beats: set to the head of Beats9.6(see above), not themaincommit from feat: update OTel Collector components from 0.164.x to 0.165.x #17977.go.modin the root and ininternal/edot: kept the9.6side and applied only the version changes from feat: update OTel Collector components from 0.164.x to 0.165.x #17977, plus the Beats bump. Then rango mod tidyin both modules. Dependencies thatmainbumped in other PRs keep their9.6versions.go.sum,NOTICE.txt,NOTICE-fips.txtandinternal/edot/README.mdwere regenerated (go mod tidy,mage notice,mage otel:readme).All other files applied cleanly.
Rollout and safety
Same as #17977: configurations that still set the removed settings will fail to validate after this update. The changelog fragments from #17977 are included.
Testing
go build ./...andgo vetpass for both Go modules.internal/pkg/otel/...(the OTel manager ones with theinternal/edot/testingcollector binary built),dev-tools/mage/otel,internal/pkg/agent/application/...and allinternal/edotpackages pass. The exception is thecoordinatortests thatchowna fake component binary, which can't run in my local sandbox.mage checkpasses with no changes.🤖 Generated with Claude Code