From 1d106fa14d7bc150acb1107ea7d034d669f9f80d Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sat, 23 Nov 2024 02:38:59 +0300 Subject: metrics: add `go` and `process` collectors (#6704) Signed-off-by: Mohammed Al Sahaf --- context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/context.go b/context.go index 5965d0c94..d4d7afacf 100644 --- a/context.go +++ b/context.go @@ -110,6 +110,8 @@ func (ctx *Context) GetMetricsRegistry() *prometheus.Registry { func (ctx *Context) initMetrics() { ctx.metricsRegistry.MustRegister( collectors.NewBuildInfoCollector(), + collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), + collectors.NewGoCollector(), adminMetrics.requestCount, adminMetrics.requestErrors, globalMetrics.configSuccess, -- cgit v1.2.3