Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/util/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package build

import (
"runtime"

"github.com/prometheus/common/version"
)

// These variables are set from the Makefile.
Expand All @@ -15,6 +17,12 @@ var (
)

func init() {
// Copy settings for this build into Prometheus common package, where they are fetched by Prometheus client_golang.
version.Version = Version
version.Revision = Revision
version.Branch = Branch
version.BuildUser = BuildUser
version.BuildDate = BuildDate
GoVersion = runtime.Version()
}

Expand Down
Loading