From 9026b12e0791210b1e804c257d6e586e8b529dc4 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 22 Nov 2024 13:24:58 -0500 Subject: [PATCH] feat(metrics): Collect process and Go runtime metrics Signed-off-by: Dave Henderson --- cmd/relayproxy/metric/metrics.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/relayproxy/metric/metrics.go b/cmd/relayproxy/metric/metrics.go index 483eae30b440..05823718369b 100644 --- a/cmd/relayproxy/metric/metrics.go +++ b/cmd/relayproxy/metric/metrics.go @@ -2,6 +2,7 @@ package metric import ( prom "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" ) // GOFFSubSystem is the name of the prefix we are using for all the metrics @@ -101,6 +102,8 @@ func NewMetrics() (Metrics, error) { flagDeleteCounterVec, flagCreateCounterVec, forceRefreshCounter, + collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), + collectors.NewGoCollector(), } // register all the metric in the custom registry