mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 20:29:31 +00:00
Wire up remotedialer metrics
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
f1c82392d0
commit
d08bf6c9b6
2
go.mod
2
go.mod
@@ -126,7 +126,7 @@ require (
|
|||||||
github.com/rancher/dynamiclistener v0.7.0
|
github.com/rancher/dynamiclistener v0.7.0
|
||||||
github.com/rancher/lasso v0.2.3
|
github.com/rancher/lasso v0.2.3
|
||||||
github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7
|
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/wharfie v0.7.0
|
||||||
github.com/rancher/wrangler/v3 v3.2.3
|
github.com/rancher/wrangler/v3 v3.2.3
|
||||||
github.com/robfig/cron/v3 v3.0.1
|
github.com/robfig/cron/v3 v3.0.1
|
||||||
|
|||||||
4
go.sum
4
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/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 h1:0Kg2SGoMeU1ll4xPi4DE0+qNHLFO/U5MwtK0WrIdK+o=
|
||||||
github.com/rancher/permissions v0.0.0-20240523180510-4001d3d637f7/go.mod h1:fsbs0YOsGn1ofPD5p+BuI4qDhbMbSJtTegKt6Ucna+c=
|
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.1-0.20250827012652-e6b68fd83a6b h1:knmfUAUdaepeDUhreUz9OxBj+ipzYWO28bk+WlGocHA=
|
||||||
github.com/rancher/remotedialer v0.5.0/go.mod h1:hpx8oaoxXyy8yHMWH5Iv8GcdVlYEYYzgVNjeXZrhv8E=
|
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 h1:M+OHMkE+tfafY59E5RuZ/Q4IorKNJGVqhtZRksTpOWo=
|
||||||
github.com/rancher/wharfie v0.7.0/go.mod h1:wSQoRNUM58z0Qb9kmAT1L6ia2ys0LWHRH+7Vix/rkD8=
|
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=
|
github.com/rancher/wrangler/v3 v3.2.3 h1:s35Dpu/oIbXI1GV/FmYQaAex60+NXe67An3Z5zzzyEY=
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
"github.com/k3s-io/k3s/pkg/etcd"
|
"github.com/k3s-io/k3s/pkg/etcd"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
lassometrics "github.com/rancher/lasso/pkg/metrics"
|
lassometrics "github.com/rancher/lasso/pkg/metrics"
|
||||||
|
rdmetrics "github.com/rancher/remotedialer/metrics"
|
||||||
"k8s.io/component-base/metrics/legacyregistry"
|
"k8s.io/component-base/metrics/legacyregistry"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -38,6 +39,8 @@ func init() {
|
|||||||
loadbalancer.MustRegister(DefaultRegisterer)
|
loadbalancer.MustRegister(DefaultRegisterer)
|
||||||
// and etcd snapshot metrics
|
// and etcd snapshot metrics
|
||||||
etcd.MustRegister(DefaultRegisterer)
|
etcd.MustRegister(DefaultRegisterer)
|
||||||
|
// and remotedialer metrics
|
||||||
|
rdmetrics.MustRegister(DefaultRegisterer)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config holds fields for the metrics listener
|
// Config holds fields for the metrics listener
|
||||||
|
|||||||
Reference in New Issue
Block a user