Skip to content

fix(version): Copy build info to Prometheus common library#22343

Open
bboreham wants to merge 1 commit into
grafana:mainfrom
bboreham:fix-build-version
Open

fix(version): Copy build info to Prometheus common library#22343
bboreham wants to merge 1 commit into
grafana:mainfrom
bboreham:fix-build-version

Conversation

@bboreham

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The values there are read by Prometheus client_golang to populate the loki_build_info metric.
This got broken by #22281.

Special notes for your reviewer:

I couldn't see how to test this since the important bit happens in an init function.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • NA Documentation added
  • NA Tests updated
  • NA Title matches the required conventional commits format, see here
  • NA Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • NA If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

The values there are read by Prometheus client_golang to populate the
`loki_build_info` metric. This got broken by grafana#22281.
@bboreham bboreham requested a review from a team as a code owner June 10, 2026 11:57
@ivkalita ivkalita changed the title bugfix: Copy build info to Prometheus common library fix(version): Copy build info to Prometheus common library Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants