Skip to content

Commit 1d106fa

Browse files
authored
metrics: add go and process collectors (#6704)
Signed-off-by: Mohammed Al Sahaf <[email protected]>
1 parent 8c3dd3d commit 1d106fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

context.go

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ func (ctx *Context) GetMetricsRegistry() *prometheus.Registry {
110110
func (ctx *Context) initMetrics() {
111111
ctx.metricsRegistry.MustRegister(
112112
collectors.NewBuildInfoCollector(),
113+
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
114+
collectors.NewGoCollector(),
113115
adminMetrics.requestCount,
114116
adminMetrics.requestErrors,
115117
globalMetrics.configSuccess,

0 commit comments

Comments
 (0)