From f3e55cba1d6919a69071dca440249a6d0df64343 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Wed, 6 Apr 2016 16:22:21 +0200 Subject: [PATCH] Include goversion in build_info metric --- version/info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version/info.go b/version/info.go index 8e43b5726..3f7bf155f 100644 --- a/version/info.go +++ b/version/info.go @@ -43,11 +43,11 @@ func init() { buildInfo := prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "prometheus_build_info", - Help: "A metric with a constant '1' value labeled by version, revision, and branch from which Prometheus was built.", + Help: "A metric with a constant '1' value labeled by version, revision, branch, and goversion from which Prometheus was built.", }, - []string{"version", "revision", "branch"}, + []string{"version", "revision", "branch", "goversion"}, ) - buildInfo.WithLabelValues(Version, Revision, Branch).Set(1) + buildInfo.WithLabelValues(Version, Revision, Branch, GoVersion).Set(1) prometheus.MustRegister(buildInfo) }