Repository navigation
[9.5] (backport #17977) feat: update OTel Collector components from 0.164.x to 0.165.x - #18052
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
samuelvl
and removed request for
a team
November 17, 2026 10:12
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
|
This pull request is merged. |
Contributor
|
This pull request is now in conflicts. Could you fix it? 🙏 |
Bump sigv4authextension, added on 9.5 by elastic#18031, to v0.165.1 to match the other Contrib components. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Elasticsearch exporter no longer accepts mapping::mode, so TestSamples failed on Linux. This sample only exists on 9.5, so the cherry-pick of elastic#17977 did not touch it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
💚 Build Succeeded
History
|
andrzej-stencel
enabled auto-merge (squash)
November 17, 2026 13:10
9.5 gained elastic#18033 (drop diagnostic hooks for stopped otel components), so apply the part of elastic#17977 that ports elasticdiagnostics to extensioncapabilities.ComponentStatusWatcher: collector 0.165 no longer calls componentstatus.Watcher, and TestDiagnosticHooksDroppedOnPartialReload failed without it. go.mod keeps the 0.165 versions with 9.5's consumer/service/receiver moves to direct dependencies; NOTICE regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.59.5)Risk
Rationale
Manual backport of #17977, because Mergify could not resolve the conflicts.
This PR:
beatssubmodule fromba0a03a5a2to451540fad4, the current head of Beats9.5, which already includes the OTel Collector 0.165.x update ([9.5](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x beats#54647). This brings in these Beats9.5commits:keep_alives_enabledfrom the healthcheckv2 extension config injected by the OTel manager, andmapping::modefrom the Elasticsearch exporter in samples, the Helm chart and test data.Conflict resolution
go.mod/go.sum(root andinternal/edot): took the higher version of each conflicting module, then reset to the9.5version any module that feat: update OTel Collector components from 0.164.x to 0.165.x #17977 did not change, and rango mod tidy. The versions that stay higher than on9.5are required by Beats9.5or the OTel 0.165.x modules (for exampleelastic-agent-client/v7v7.20.0 comes from [9.5](backport #54323) build(deps): bump github.com/elastic/elastic-agent-client/v7 from 7.19.0 to 7.20.0 beats#54677).github.life-white.uk/elastic/mitostays at v1.27.1, as in Beats9.5, because v1.28.x frommainusescel.dev/cel-goand does not build with Beats9.5.NOTICE.txt,NOTICE-fips.txtandinternal/edot/README.mdwere regenerated withmage noticeandmage otel:readme.mapping::modesetting and did not add the OTLP/HTTPingest_metricsexporter, which only exists onmain.elasticdiagnosticsextension and its tests: kept the9.5version. The status-watching code that feat: update OTel Collector components from 0.164.x to 0.165.x #17977 moved toextensioncapabilities.ComponentStatusWatchercomes from Drop diagnostic hooks for stopped otel components #18033, which is not on9.5, so there is nothing to port. Thedev-tools/mage/otelchange that keepsextensioncapabilitiesout of the EDOT component list is included. It's harmless here.internal/edot/extensions/meterlifecycle/extension.goand theotel_prometheusremotewrite/otel_prometheusscrapeintegration tests do not exist on9.5, so they were left out.docs/reference/edot-collector/components/elasticsearchexporter.md: kept the9.5side of the conflictingmapping::modenote. Docs are published frommain. The non-conflicting doc changes from feat: update OTel Collector components from 0.164.x to 0.165.x #17977 are included.Rollout and safety
Users who set
mapping::modeon the Elasticsearch exporter, orkeep_alives_enabledon an HTTP server, must remove these settings, because the Collector now fails to start with them. The changelog fragments describe this.Testing
go build ./...andgo vetpass for both Go modules.internal/pkg/otel/...(including the OTel manager tests with the EDOT testing binary),dev-tools/mage/oteland allinternal/edotpackages.mage checkpasses.🤖 Generated with Claude Code