Skip to content

Commit d08bf6c

Browse files
committed
Wire up remotedialer metrics
Signed-off-by: Brad Davidson <[email protected]>
1 parent f1c8239 commit d08bf6c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ require (
126126
github.com/rancher/dynamiclistener v0.7.0
127127
github.com/rancher/lasso v0.2.3
128128
github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7
129-
github.com/rancher/remotedialer v0.5.0
129+
github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b
130130
github.com/rancher/wharfie v0.7.0
131131
github.com/rancher/wrangler/v3 v3.2.3
132132
github.com/robfig/cron/v3 v3.0.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,8 @@ github.com/rancher/lasso v0.2.3 h1:74/z/C/O3ykhyMrRuEgc9kVyYiSoS7kp5BAijlcyXDg=
12121212
github.com/rancher/lasso v0.2.3/go.mod h1:G+KeeOaKRjp+qGp0bV6VbLhYrq1vHbJPbDh40ejg5yE=
12131213
github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7 h1:0Kg2SGoMeU1ll4xPi4DE0+qNHLFO/U5MwtK0WrIdK+o=
12141214
github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7/go.mod h1:fsbs0YOsGn1ofPD5p+BuI4qDhbMbSJtTegKt6Ucna+c=
1215-
github.com/rancher/remotedialer v0.5.0 h1:4H1o9ZBdA1nboaMPBvy03EQlFWXXzwcdMAXLmafop54=
1216-
github.com/rancher/remotedialer v0.5.0/go.mod h1:hpx8oaoxXyy8yHMWH5Iv8GcdVlYEYYzgVNjeXZrhv8E=
1215+
github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b h1:knmfUAUdaepeDUhreUz9OxBj+ipzYWO28bk+WlGocHA=
1216+
github.com/rancher/remotedialer v0.5.1-0.20250827012652-e6b68fd83a6b/go.mod h1:hpx8oaoxXyy8yHMWH5Iv8GcdVlYEYYzgVNjeXZrhv8E=
12171217
github.com/rancher/wharfie v0.7.0 h1:M+OHMkE+tfafY59E5RuZ/Q4IorKNJGVqhtZRksTpOWo=
12181218
github.com/rancher/wharfie v0.7.0/go.mod h1:wSQoRNUM58z0Qb9kmAT1L6ia2ys0LWHRH+7Vix/rkD8=
12191219
github.com/rancher/wrangler/v3 v3.2.3 h1:s35Dpu/oIbXI1GV/FmYQaAex60+NXe67An3Z5zzzyEY=

pkg/metrics/metrics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/k3s-io/k3s/pkg/etcd"
1212
"github.com/prometheus/client_golang/prometheus/promhttp"
1313
lassometrics "github.com/rancher/lasso/pkg/metrics"
14+
rdmetrics "github.com/rancher/remotedialer/metrics"
1415
"k8s.io/component-base/metrics/legacyregistry"
1516
)
1617

@@ -38,6 +39,8 @@ func init() {
3839
loadbalancer.MustRegister(DefaultRegisterer)
3940
// and etcd snapshot metrics
4041
etcd.MustRegister(DefaultRegisterer)
42+
// and remotedialer metrics
43+
rdmetrics.MustRegister(DefaultRegisterer)
4144
}
4245

4346
// Config holds fields for the metrics listener

0 commit comments

Comments
 (0)