Skip to content

Commit

Permalink
[release-0.20] ✨ Expose all Go runtime metrics (#3100)
Browse files Browse the repository at this point in the history
* add GoCollector and rocessCollector

Signed-off-by: dongjiang <dongjiang1989@126.com>

* move to internal/controller/metrics

Signed-off-by: dongjiang <dongjiang1989@126.com>

* default add all go runtime metrics

Signed-off-by: dongjiang <dongjiang1989@126.com>

---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: dongjiang <dongjiang1989@126.com>
  • Loading branch information
1 parent 626b2f3 commit fc48583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/internal/controller/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func init() {
ActiveWorkers,
// expose process metrics like CPU, Memory, file descriptor usage etc.
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
// expose Go runtime metrics like GC stats, memory stats etc.
collectors.NewGoCollector(),
// expose all Go runtime metrics like GC stats, memory stats etc.
collectors.NewGoCollector(collectors.WithGoCollectorRuntimeMetrics(collectors.MetricsAll)),
)
}

0 comments on commit fc48583

Please sign in to comment.