Skip to content

chore(deps): hold prometheus/common below v0.73.0 - #105

Merged
gjed merged 2 commits into
mainfrom
hold-prometheus-common
Nov 10, 2026
Merged

gjed merged 2 commits into
mainfrom
hold-prometheus-common

Conversation

@gjed

@gjed gjed commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Holds github.com/prometheus/common below v0.73.0 so #82 can ship the otlp and yaml bumps.

Root cause

v0.73.0 includes prometheus/common#1008: NegotiateAccept now takes the escaping parameter only from the Accept clause that matched. expfmt negotiates only text format 0.0.4, so the Prometheus 3.x default scrape clause text/plain;version=1.0.0;escaping=allow-utf-8 never matches and the scrape falls back to escaping=underscores:

v0.72.0 -> text/plain; version=0.0.4; charset=utf-8; escaping=allow-utf-8
v0.73.1 -> text/plain; version=0.0.4; charset=utf-8; escaping=underscores

/metrics would serve github_pr_count instead of github.pr.count. That is what fails the Integration Test live-check on #82.

Upstream fix: prometheus/common#1035 (text format 1.0.0 negotiation). Remove the hold once it is released.

Verification

  • renovate-config-validator renovate.json: OK
  • On origin/main with otlp v1.11.1, yaml v3.0.6 and common v0.72.1: go test -tags integration ./tests/integration/... passes

v0.73.0 (prometheus/common#1008) takes the escaping
scheme only from the matching Accept clause. expfmt negotiates only text
0.0.4, so the Prometheus 3.x default scrape gets escaping=underscores and
/metrics serves underscored names instead of pure OTel names. Hold until
prometheus/common#1035 lands.
@gjed gjed self-assigned this Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Test Coverage

Total coverage: 83.1%

@gjed gjed left a comment •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Copilot review overview

Reviewer is the PR author — review event submitted as COMMENT.

Review effort: Lite
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Adds a Renovate package rule holding github.com/prometheus/common below v0.73.0, whose Accept-header negotiation change makes /metrics serve underscore-escaped names (github_pr_count) to Prometheus 3.x scrapers, failing the Integration Test live-check on #82.

Changes:

  • New packageRules entry: matchPackageNames: ["github.com/prometheus/common"], allowedVersions: "<0.73.0", with a description citing prometheus/common#1008 as the cause and prometheus/common#1035 as the removal condition.
File Description
renovate.json Adds the prometheus/common version hold rule

Comment thread renovate.json Resolved
Comment thread renovate.json Resolved
@gjed
gjed merged commit 4a59657 into main Nov 10, 2026
14 checks passed
@gjed
gjed deleted the hold-prometheus-common branch November 10, 2026 18:02
@gjed-release

gjed-release Bot commented Nov 10, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

gjed added a commit that referenced this pull request Nov 15, 2026
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
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.

1 participant