Skip to content

build(deps): Upgrade otelcollector to v0.142.0#1388

Merged
rashmichandrashekar merged 10 commits into
mainfrom
bot/otelcollector-upgrade-v0.142.0
Jan 16, 2026
Merged

build(deps): Upgrade otelcollector to v0.142.0#1388
rashmichandrashekar merged 10 commits into
mainfrom
bot/otelcollector-upgrade-v0.142.0

Conversation

@azure-monitor-assistant

Copy link
Copy Markdown
Contributor

This PR upgrades the otelcollector to the latest version available for the opentelemetry-collector and opentelemetry-operator.

It was automatically generated by the GitHub Actions workflow.

The summary of the OSS changelog is below:

Prometheusreceiver Changes

v0.136.0 to v0.142.0

Generated on: 2026-01-11 07:06:49


v0.142.0

  • [BREAKING] receiver/prometheus: Promote the receiver.prometheusreceiver.RemoveStartTimeAdjustment feature gate to stable and remove in-receiver metric start time adjustment in favor of the metricstarttime processor, including disabling the created-metric feature gate. (#44180) Previously, users could disable the RemoveStartTimeAdjustment feature gate to temporarily keep the legacy start time adjustment behavior in the Prometheus receiver. With this promotion to stable and bounded registration, that gate can no longer be disabled; the receiver will no longer set StartTime on metrics based on process_start_time_seconds, and users should migrate to the metricstarttime processor for equivalent functionality. This change also disables the receiver.prometheusreceiver.UseCreatedMetric feature gate, which previously used the <metric>_created series to derive start timestamps for counters, summaries, and histograms when scraping non OpenMetrics protocols. However, this does not mean that the _created series is always ignored: when using the OpenMetrics 1.0 protocol, Prometheus itself continues to interpret the _created series as the start timestamp, so only the receiver-side handling for other scrape protocols has been removed.
  • [BREAKING] receiver/prometheus: Native histogram scraping and ingestion is now controlled by the scrape configuration option scrape_native_histograms. (#44861) The feature gate receiver.prometheusreceiver.EnableNativeHistograms is now stable and enabled by default. Native histograms scraped from Prometheus will automatically be converted to OpenTelemetry exponential histograms. To enable scraping of native histograms, you must configure scrape_native_histograms: true in your Prometheus scrape configuration (either globally or per-job). Additionally, the protobuf scrape protocol must be enabled by setting scrape_protocols to include PrometheusProto.
  • [BREAKING] receiver/prometheusremotewrite: Updated to Remote Write 2.0 spec rc.4, requiring Prometheus 3.8.0 or later (#44861) The upstream Prometheus library updated the Remote Write 2.0 protocol from rc.3 to rc.4 in prometheus/prometheus#17411. This renamed CreatedTimestamp to StartTimestamp and moved it from the TimeSeries message to individual Sample and Histogram messages. This is a wire-protocol incompatibility, so Prometheus versions 3.7.x and earlier will no longer work correctly with this receiver. Please upgrade to Prometheus 3.8.0 or later.
  • [OTHER] receiver/prometheus: Deprecate use_start_time_metric and start_time_metric_regex config in favor of the processor metricstarttime (#44180)
  • [FEATURE] receiver/prometheusremotewrite: Map.PutStr causes excessive memory allocations due to repeated slice expansions (#44612)
  • [BUG FIX] receiver/prometheus: Fix HTTP response body leak in target allocator when fetching scrape configs fails (#44921) The getScrapeConfigsResponse function did not close resp.Body on error paths. If io.ReadAll or yaml.Unmarshal failed, the response body would leak, potentially causing HTTP connection exhaustion.
  • [BUG FIX] receiver/prometheus: Fixes yaml marshaling of prometheus/common/config.Secret types (#44445)

v0.141.0

  • [FEATURE] receiver/prometheus: Add feature gate for extra scrape metrics in Prometheus receiver (#44181) deprecation of extra scrape metrics in Prometheus receiver will be removed eventually.
  • [FEATURE] receiver/prometheus: Support JWT Profile for Authorization Grant (RFC 7523 3.1) (#44381)

v0.140.0

  • [BREAKING] receiver/prometheus: The prometheus receiver no longer adjusts the start time of metrics by default. (#43656) Disable the receiver.prometheusreceiver.RemoveStartTimeAdjustment | feature gate to temporarily re-enable this functionality. Users that need | this functionality should migrate to the metricstarttime processor, | and use the true_reset strategy for equivalent behavior.
  • [FEATURE] receiver/prometheusremotewrite: Skip emitting empty metrics. (#44149)
  • [FEATURE] receiver/prometheusremotewrite: prometheusremotewrite receiver now accepts metric type unspcified histograms. (#41840)

v0.139.0

  • [BUG FIX] receiver/prometheus: Fix missing staleness tracking leading to missing no recorded value data points. (#43893)
  • [BUG FIX] receiver/prometheusremotewrite: Fixed a concurrency bug in the Prometheus remote write receiver where concurrent requests with identical job/instance labels would return empty responses after the first successful request. (#42159)

v0.138.0

  • [FEATURE] receiver/prometheus: added NHCB(native histogram wit custom buckets) to explicit histogram conversion (#41131)

Summary

Category Count
Breaking Changes 4
Features 6
Bug Fixes 4
Other Changes 1
Total 15

Target-allocator Changes

v0.136.0 to v0.142.0

Generated on: 2026-01-11 07:07:05


0.142.0

  • [FEATURE] target allocator: Add support for prometheus scrape classes (#3600) Added support for configuring scrapeClasses when using the PrometheusCR-feature of the target allocator. The format of the scrapeClasses array is exactly as same as spec.scrapeClasses of the Prometheus CRD.
  • [BUG FIX] target allocator: Fix CA certificate race condition with client cert renewals by extending its duration and and renewal attempt. (#4441) The CA certificate now has a 2-year duration (instead of the default 90 days) to prevent race conditions where client and server certificates could be signed by different CA versions during simultaneous renewal. This ensures the CA remains stable while dependent certificates renew regularly.

0.141.0

  • [FEATURE] target allocator: make evaluation_interval configurable for Prometheus CR watcher (#4520)

0.140.0

  • [BUG FIX] github action: Remove unused VERSION and VERSION_DATE environment variables from publish workflows (#4470) Removed the unused "Read version" step that set VERSION and VERSION_DATE environment variables in both publish-target-allocator.yaml and publish-operator-opamp-bridge.yaml workflows. These variables were never referenced anywhere in the workflows.

0.138.0

  • [BREAKING] target allocator: Remove the operator.collector.targetallocatorcr feature flag (#2422) This behavior has been enabled by default since version 0.127.0.
  • [BUG FIX] target allocator: Add missing TA ownership watches to cert-manager Certificate and Issuer (#4368)

0.137.0

  • [BREAKING] target allocator: Promote the operator.collector.targetallocatorcr feature flag to Stable (#2422) The flag can no longer be disabled. It will be completely removed in 0.138.0.
  • [BUG FIX] target allocator, opamp: Fix version not being updated after version upgrade. (#4378)
  • [BUG FIX] target-allocator: Fixed potential duplicate scrape targets caused by Prometheus relabeling. (#3617)

Summary

Category Count
Breaking Changes 2
Features 2
Bug Fixes 5
Other Changes 0
Total 9

@azure-monitor-assistant azure-monitor-assistant Bot requested a review from a team as a code owner January 11, 2026 07:07
@azure-monitor-assistant

Copy link
Copy Markdown
Contributor Author

⚠️ Building the otelcollector failed. Manual review for breaking changes is required. View build errors below.

View build errors
rm -rf otelcollector
go get
go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o otelcollector .
make -C ../fluent-bit/src
make[1]: Entering directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/fluent-bit/src'
========================= Building  out_appinsights plugin go code  =========================
#export BUILDVERSION=..-
#export BUILDDATE=
#@echo 
#@echo 
========================= cleanup existing .so and .h file  =========================
rm -rf *.so *.h *~
========================= go get  =========================
go get
go: downloading github.com/fluent/fluent-bit-go v0.0.0-20220311094233-780004bf5562
go: downloading github.com/microsoft/ApplicationInsights-Go v0.4.4
go: downloading github.com/shirou/gopsutil/v4 v4.25.9
go: downloading github.com/ugorji/go/codec v1.3.0
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
go: downloading code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c
go: downloading github.com/gofrs/uuid v3.3.0+incompatible
go: downloading github.com/tklauser/go-sysconf v0.3.15
go: downloading golang.org/x/time v0.9.0
go: downloading github.com/ebitengine/purego v0.9.0
go: downloading github.com/tklauser/numcpus v0.10.0
========================= go build  =========================
go build -race -buildmode=c-shared -ldflags '-extldflags=-Wl,-z,now' -o out_appinsights.so .
make[1]: Leaving directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/fluent-bit/src'
make -C ../prom-config-validator-builder
make[1]: Entering directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/prom-config-validator-builder'
========================= Building prom config validator =========================
========================= cleanup existing promconfigvalidator =========================
rm -rf promconfigvalidator
========================= go get  =========================
go get
========================= go build  =========================
go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o promconfigvalidator .
make[1]: Leaving directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/prom-config-validator-builder'
make -C ../otel-allocator
make[1]: Entering directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/otel-allocator'
========================= Building targetallocator =========================
========================= cleanup existing targetallocator =========================
rm -rf targetallocator
========================= go get  =========================
go get
========================= go build  =========================
go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o targetallocator .
# github.com/prometheus-operator/prometheus-operator/pkg/operator
/home/runner/go/pkg/mod/github.com/rashmichandrashekar/prometheus-operator@v0.0.0-20250715221118-b55ea6d3c138/pkg/operator/rules.go:188:27: not enough arguments in call to rulefmt.Parse
	have ([]byte)
	want ([]byte, bool, model.ValidationScheme)
make[1]: *** [Makefile:9: targetallocator] Error 1
make[1]: Leaving directory '/home/runner/work/prometheus-collector/prometheus-collector/otelcollector/otel-allocator'
make: *** [Makefile:20: targetallocator] Error 2

@rashmichandrashekar

Copy link
Copy Markdown
Contributor

@gracewehner - I have made all the changes for upgrades along with the web handler. Please review the PR when you get a chance. Thanks!

gracewehner
gracewehner previously approved these changes Jan 15, 2026

@gracewehner gracewehner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Rashmi, looks good to me

gracewehner
gracewehner previously approved these changes Jan 15, 2026
@rashmichandrashekar rashmichandrashekar merged commit c03fbba into main Jan 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants