Skip to content

[9.1](backport #45667) Bump prometheus/prometheus to 0.305.0#45955

Merged
khushijain21 merged 2 commits into9.1from
mergify/bp/9.1/pr-45667
Aug 13, 2025
Merged

[9.1](backport #45667) Bump prometheus/prometheus to 0.305.0#45955
khushijain21 merged 2 commits into9.1from
mergify/bp/9.1/pr-45667

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Aug 13, 2025

Proposed commit message

Bump prometheus/prometheus to 0.305.0

This resolves a breaking change to the textparser constructor and some deprecations. Because the internal representation of labels changed, we also needed to update some loops. The changes were caused by the following upstream change: prometheus/prometheus#16228.

This is update blocks the update to Otel 0.130.0 in agent. This is the version of the prometheus library used by the prometheus receiver. When importing both beats and that receiver, we get a conflict. CC @andrzej-stencel

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues


This is an automatic backport of pull request #45667 done by [Mergify](https://mergify.com).

* Bump prometheus/prometheus to 0.305.0

This resolves a breaking change to the textparser constructor and some
deprecations. Because the internal represenation of labels changed, we
also needed to update some loops.

* Update documentation

* make update

(cherry picked from commit d243194)

# Conflicts:
#	go.mod
@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Aug 13, 2025
@mergify mergify bot requested review from a team as code owners August 13, 2025 05:10
@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Aug 13, 2025
@mergify mergify bot requested review from VihasMakwana and andrzej-stencel and removed request for a team August 13, 2025 05:10
@mergify
Copy link
Contributor Author

mergify bot commented Aug 13, 2025

Cherry-pick of d243194 has failed:

On branch mergify/bp/9.1/pr-45667
Your branch is up to date with 'origin/9.1'.

You are currently cherry-picking commit d24319456.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE.txt
	modified:   docs/reference/metricbeat/metricbeat-metricset-openmetrics-collector.md
	modified:   go.sum
	modified:   metricbeat/helper/prometheus/textparse.go
	modified:   metricbeat/module/openmetrics/collector/_meta/data.json
	modified:   metricbeat/module/openmetrics/collector/data.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 13, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions bot added dependency Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Aug 13, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 13, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 13, 2025

🔍 Preview links for changed docs

@khushijain21 khushijain21 enabled auto-merge (squash) August 13, 2025 05:23
@khushijain21
Copy link
Contributor

/test

@khushijain21 khushijain21 merged commit f8d6937 into 9.1 Aug 13, 2025
205 of 207 checks passed
@khushijain21 khushijain21 deleted the mergify/bp/9.1/pr-45667 branch August 13, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request dependency Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants