-
Notifications
You must be signed in to change notification settings - Fork 5k
chore: update github.com/prometheus/prometheus
to match OTel Collector v0.130.0
#45454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: update github.com/prometheus/prometheus
to match OTel Collector v0.130.0
#45454
Conversation
…tor `v0.130.0` ```console go get github.com/prometheus/prometheus@419d436a447a go mod tidy make notice ```console
Fixes this error: ```console $ (cd metricbeat && mage build) >> build: Building metricbeat # github.com/elastic/beats/v7/metricbeat/helper/prometheus helper/prometheus/textparse.go:479:84: not enough arguments in call to textparse.New have ([]byte, string, string, bool, bool, *labels.SymbolTable) want ([]byte, string, string, bool, bool, bool, *labels.SymbolTable) Error: running "go build -o metricbeat -buildmode pie -trimpath -ldflags -s -X github.com/elastic/beats/v7/libbeat/version.buildTime=2025-07-18T07:28:58Z -X github.com/elastic/beats/v7/libbeat/version.commit=21d9eb6a31eaf6cd0f1232a1a4de131a52c62643" failed with exit code 1 ```
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@andrzej-stencel Looks like the error is now gone. I can build the metricbeat locally. Could you pelase run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request is now in conflicts. Could you fix it? 🙏
|
Proposed commit message
Update
github.com/prometheus/prometheus
to match OTel Collectorv0.130.0
This is needed to update OTel Collector components to
v0.130.0
in Elastic Agent repository (elastic/elastic-agent#9054), as the Prometheus receiver depends ongithub.aichem.org/prometheus/prometheus v0.304.3-0.20250703114031-419d436a447a
.The code changes are needed to accommodate breaking changes in Prometheus API.
Checklist
[ ] 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 inCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
(cd metricbeat && mage build)