From 369e84d65f39d2852d472137d1f6a6d81df5d6cb Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sat, 23 Nov 2024 01:07:56 +0300 Subject: metrics: add `go` and `process` collectors 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