From ea0fa4233ea5a890055965f857f11b7f91fd1e00 Mon Sep 17 00:00:00 2001 From: Victor Fernandes Date: Fri, 16 Sep 2022 12:00:44 +0200 Subject: [PATCH] fix: re-enabling some metrics lost during a package update Signed-off-by: Victor Fernandes --- cmd/thanos/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/thanos/main.go b/cmd/thanos/main.go index 4a83107d76..d6eafde695 100644 --- a/cmd/thanos/main.go +++ b/cmd/thanos/main.go @@ -10,6 +10,7 @@ import ( "os" "os/signal" "path/filepath" + "regexp" "runtime" "runtime/debug" "syscall" @@ -73,7 +74,9 @@ func main() { metrics := prometheus.NewRegistry() metrics.MustRegister( version.NewCollector("thanos"), - collectors.NewGoCollector(), + collectors.NewGoCollector( + collectors.WithGoCollectorRuntimeMetrics(collectors.GoRuntimeMetricsRule{Matcher: regexp.MustCompile("/.*")}), + ), collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), )