Skip to content

Commit

Permalink
fix: re-enabling some metrics lost during a package update (#5696)
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Fernandes <victorhbfernandes@gmail.com>

Signed-off-by: Victor Fernandes <victorhbfernandes@gmail.com>
  • Loading branch information
vhbfernandes committed Sep 16, 2022
1 parent 9237dd9 commit 4be755d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/thanos/main.go
Expand Up @@ -10,6 +10,7 @@ import (
"os"
"os/signal"
"path/filepath"
"regexp"
"runtime"
"runtime/debug"
"syscall"
Expand Down Expand Up @@ -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{}),
)

Expand Down

0 comments on commit 4be755d

Please sign in to comment.