From 0ea9359e13533bd5a8d93e8582ac5db2953bb107 Mon Sep 17 00:00:00 2001 From: "hazey.dazey" Date: Fri, 21 Jul 2017 13:53:32 +0200 Subject: [PATCH] Remove program prefix from build_info metric --- version/info.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/version/info.go b/version/info.go index 84489a510..55686f4fc 100644 --- a/version/info.go +++ b/version/info.go @@ -34,14 +34,12 @@ var ( ) // NewCollector returns a collector which exports metrics about current version information. -func NewCollector(program string) *prometheus.GaugeVec { +func NewCollector() *prometheus.GaugeVec { buildInfo := prometheus.NewGaugeVec( prometheus.GaugeOpts{ - Namespace: program, Name: "build_info", Help: fmt.Sprintf( - "A metric with a constant '1' value labeled by version, revision, branch, and goversion from which %s was built.", - program, + "A metric with a constant '1' value labeled by version, revision, branch, and goversion from which the binary was built.", ), }, []string{"version", "revision", "branch", "goversion"},