Repository navigation
chore(deps): lift the prometheus/common hold and bump to v0.74.0 - #130
Merged
Merged
Conversation
prometheus/common v0.74.0 ships text format 1.0.0 negotiation (prometheus/common#1035), so Prometheus 3.x's default scrape matches text/plain;version=1.0.0;escaping=allow-utf-8 and /metrics serves github.pr.count again instead of github_pr_count. Remove the allowedVersions <0.73.0 rule added in #105. Escaping is taken only from the matching Accept clause since v0.73.0 (prometheus/common#1008). /metrics does not serve OpenMetrics, so an OpenMetrics-only Accept matches no format and gets underscore names. The openmetrics live-check case now scrapes with the Prometheus v3.16.0 default header, which also offers text 1.0.0. go mod tidy adds github.com/pandatix/go-abnf v0.5.5 and raises go.yaml.in/yaml/v2 to v2.4.5, both required by common v0.74.0, and drops stale go.sum lines. Closes #109
prometheus/common v0.74.0 takes the escaping only from the Accept clause that matches a served format. /metrics serves no OpenMetrics, so an OpenMetrics-only Accept, no Accept, or text 0.0.4 gets underscore-escaped names. Reword the metric-export and weaver-schema scenarios to the Prometheus 3.x default Accept header, add the OpenMetrics-only and legacy scenarios, and document the case in docs/metrics.md. Refs #109
Test CoverageTotal coverage: 85.4% |
gjed
commented
Nov 15, 2026
gjed
left a comment
Owner
Author
There was a problem hiding this comment.
Copilot review overview
reviewer is the PR author — review event submitted as COMMENT.
Review effort: Standard
Findings: 1
Open (2)
What changed in this PR
Removes the Renovate hold on github.com/prometheus/common and bumps it from v0.72.1 to v0.74.0, which adds Prometheus text format 1.0.0 negotiation, so /metrics keeps serving UTF-8 names to the Prometheus 3.x default scrape while OpenMetrics-only scrapers now get underscore-escaped names.
Changes:
- Drops the
github.com/prometheus/commonallowedVersions: <0.73.0packageRule. - Bumps
prometheus/commonto v0.74.0; MVS addspandatix/go-abnfv0.5.5 (indirect) and raisesgo.yaml.in/yaml/v2to v2.4.5;go mod tidyprunes stalego.sumlines. - The
openmetricslive-check case now scrapes with the full Prometheus v3.16.0 defaultAcceptheader. metric-exportandweaver-schemaspecs anddocs/metrics.mddescribe escaping per matchedAcceptclause, with new OpenMetrics-only and legacy scenarios; OpenSpec change archived.
| File | Description |
|---|---|
renovate.json |
Removes the prometheus/common hold rule |
go.mod |
prometheus/common v0.74.0, adds indirect pandatix/go-abnf |
go.sum |
New checksums, stale entries pruned |
tests/integration/prometheus_live_check_test.go |
openmetrics case uses the Prometheus v3.16.0 default Accept header |
docs/metrics.md |
Documents escaping by matched Accept clause and the scrape_protocols fix |
openspec/specs/metric-export/spec.md |
Escaping requirement plus OpenMetrics-only and legacy scenarios |
openspec/specs/weaver-schema/spec.md |
Live-check scrape headers updated |
openspec/changes/archive/2026-11-15-lift-prometheus-common-hold/* |
Archived proposal, tasks and delta specs |
Scrape /metrics with the text 1.0.0, Prometheus default, OpenMetrics-only, text 0.0.4 and empty Accept headers and assert the Content-Type and github.pr.count vs github_pr_count, so a prometheus/common bump that changes negotiation fails CI.
expfmt sorts Accept clauses by q before matching, so the escaping comes from the highest-ranked matching clause, not the first listed.
|
🎉 This PR is included in version 0.17.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.


Closes #109
Lifts the
github.com/prometheus/commonhold added in #105 and bumps it to v0.74.0, which ships Prometheus text format 1.0.0 negotiation (prometheus/common#1035, listed in the v0.74.0 release notes).Changes
renovate.json: remove thegithub.com/prometheus/commonpackageRule.go.mod/go.sum:prometheus/commonv0.72.1 → v0.74.0. MVS also addsgithub.com/pandatix/go-abnfv0.5.5 (indirect, required byexpfmtin v0.74.0) and raisesgo.yaml.in/yaml/v2v2.4.4 → v2.4.5 (required by v0.74.0).go mod tidydrops stale go.sum lines it already reports on main.tests/integration/prometheus_live_check_test.go: theopenmetricscase scrapes with the Prometheus v3.16.0 defaultAcceptheader instead of a lone OpenMetrics clause.metric-exportandweaver-schemaspecs anddocs/metrics.md:/metricsname escaping follows the matchingAcceptclause (change archived as2026-11-15-lift-prometheus-common-hold)./metricsbehaviour, main vs this PRAccepttext/plain;version=1.0.0;escaping=allow-utf-8github.pr.countgithub.pr.count*/*)github.pr.countgithub.pr.countapplication/openmetrics-text;version=1.0.0;escaping=allow-utf-8onlygithub.pr.countgithub_pr_countgithub_pr_counttext/plain;version=0.0.4github_pr_countThe OpenMetrics-only row changes: since prometheus/common#1008 (v0.73.0) the escaping comes only from the
Acceptclause that matches a served format./metricsserves no OpenMetrics, so that clause matches nothing and the fallback uses the default underscore escaping. A scraper sending only OpenMetrics needsPrometheusText1.0.0inscrape_protocols. Enabling OpenMetrics is not an option: underNoTranslationit types every counterunknown, and Prometheus 3.x would pick it by default.OTLP export is unaffected:
expfmtis used only by the/metricshandler.Validation
go build ./...,go test ./...,make check-schema,make generate(no diff)go test -tags integration ./tests/integration/...with weaver 0.28.0: 23/23 pass, includingTestPrometheusLiveCheck_NamesAndTypes(openmetrics, text) andTestPrometheusLiveCheck_SuffixedNameDetectedmake test-e2e:TestDashboardQueries(self-telemetry on/off),TestDashboardContinuity, logs tests passrenovate-config-validator renovate.json: validcurlagainst a locally running binary with the bridge enabled, for every row above