diff --git a/prometheus/go_collector.go b/prometheus/go_collector.go index ba3b933..fcb5ccb 100644 --- a/prometheus/go_collector.go +++ b/prometheus/go_collector.go @@ -14,7 +14,6 @@ package prometheus import ( - "fmt" "runtime" "runtime/debug" "time" @@ -253,7 +252,7 @@ func NewGoCollector() Collector { } func memstatNamespace(s string) string { - return fmt.Sprintf("go_memstats_%s", s) + return "go_memstats_" + s } // Describe returns all descriptions of the collector.