From d08bf6c9b6717f2c521c95cd8798e53665f8022f Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Wed, 27 Aug 2025 17:06:42 +0000 Subject: [PATCH] Wire up remotedialer metrics Signed-off-by: Brad Davidson --- go.mod | 2 +- go.sum | 4 ++-- pkg/metrics/metrics.go | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fdeae2d43a..9930c52e1a 100644 --- a/go.mod +++ b/go.mod @@ -126,7 +126,7 @@ require ( github.com/rancher/dynamiclistener v0.7.0 github.com/rancher/lasso v0.2.3 github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7 - github.com/rancher/remotedialer v0.5.0 + github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b github.com/rancher/wharfie v0.7.0 github.com/rancher/wrangler/v3 v3.2.3 github.com/robfig/cron/v3 v3.0.1 diff --git a/go.sum b/go.sum index be10857e39..b7d8b6c185 100644 --- a/go.sum +++ b/go.sum @@ -1212,8 +1212,8 @@ github.com/rancher/lasso v0.2.3 h1:74/z/C/O3ykhyMrRuEgc9kVyYiSoS7kp5BAijlcyXDg= github.com/rancher/lasso v0.2.3/go.mod h1:G+KeeOaKRjp+qGp0bV6VbLhYrq1vHbJPbDh40ejg5yE= github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7 h1:0Kg2SGoMeU1ll4xPi4DE0+qNHLFO/U5MwtK0WrIdK+o= github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7/go.mod h1:fsbs0YOsGn1ofPD5p+BuI4qDhbMbSJtTegKt6Ucna+c= -github.com/rancher/remotedialer v0.5.0 h1:4H1o9ZBdA1nboaMPBvy03EQlFWXXzwcdMAXLmafop54= -github.com/rancher/remotedialer v0.5.0/go.mod h1:hpx8oaoxXyy8yHMWH5Iv8GcdVlYEYYzgVNjeXZrhv8E= +github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b h1:knmfUAUdaepeDUhreUz9OxBj+ipzYWO28bk+WlGocHA= +github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b/go.mod h1:hpx8oaoxXyy8yHMWH5Iv8GcdVlYEYYzgVNjeXZrhv8E= github.com/rancher/wharfie v0.7.0 h1:M+OHMkE+tfafY59E5RuZ/Q4IorKNJGVqhtZRksTpOWo= github.com/rancher/wharfie v0.7.0/go.mod h1:wSQoRNUM58z0Qb9kmAT1L6ia2ys0LWHRH+7Vix/rkD8= github.com/rancher/wrangler/v3 v3.2.3 h1:s35Dpu/oIbXI1GV/FmYQaAex60+NXe67An3Z5zzzyEY= diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go index 07b41ac46a..22fd068144 100644 --- a/pkg/metrics/metrics.go +++ b/pkg/metrics/metrics.go @@ -11,6 +11,7 @@ import ( "github.com/k3s-io/k3s/pkg/etcd" "github.com/prometheus/client_golang/prometheus/promhttp" lassometrics "github.com/rancher/lasso/pkg/metrics" + rdmetrics "github.com/rancher/remotedialer/metrics" "k8s.io/component-base/metrics/legacyregistry" ) @@ -38,6 +39,8 @@ func init() { loadbalancer.MustRegister(DefaultRegisterer) // and etcd snapshot metrics etcd.MustRegister(DefaultRegisterer) + // and remotedialer metrics + rdmetrics.MustRegister(DefaultRegisterer) } // Config holds fields for the metrics listener