File tree Expand file tree Collapse file tree 5 files changed +0
-28
lines changed Expand file tree Collapse file tree 5 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -793,7 +793,6 @@ func (proxier *Proxier) syncProxyRules() {
793
793
start := time .Now ()
794
794
defer func () {
795
795
metrics .SyncProxyRulesLatency .Observe (metrics .SinceInSeconds (start ))
796
- metrics .DeprecatedSyncProxyRulesLatency .Observe (metrics .SinceInMicroseconds (start ))
797
796
klog .V (4 ).Infof ("syncProxyRules took %v" , time .Since (start ))
798
797
}()
799
798
Original file line number Diff line number Diff line change @@ -1020,7 +1020,6 @@ func (proxier *Proxier) syncProxyRules() {
1020
1020
start := time .Now ()
1021
1021
defer func () {
1022
1022
metrics .SyncProxyRulesLatency .Observe (metrics .SinceInSeconds (start ))
1023
- metrics .DeprecatedSyncProxyRulesLatency .Observe (metrics .SinceInMicroseconds (start ))
1024
1023
klog .V (4 ).Infof ("syncProxyRules took %v" , time .Since (start ))
1025
1024
}()
1026
1025
Original file line number Diff line number Diff line change 38
38
},
39
39
)
40
40
41
- // DeprecatedSyncProxyRulesLatency is the latency of one round of kube-proxy syncing proxy rules.
42
- DeprecatedSyncProxyRulesLatency = metrics .NewHistogram (
43
- & metrics.HistogramOpts {
44
- Subsystem : kubeProxySubsystem ,
45
- Name : "sync_proxy_rules_latency_microseconds" ,
46
- Help : "SyncProxyRules latency in microseconds" ,
47
- Buckets : metrics .ExponentialBuckets (1000 , 2 , 15 ),
48
- StabilityLevel : metrics .ALPHA ,
49
- DeprecatedVersion : "1.14.0" ,
50
- },
51
- )
52
-
53
41
// SyncProxyRulesLastTimestamp is the timestamp proxy rules were last
54
42
// successfully synced.
55
43
SyncProxyRulesLastTimestamp = metrics .NewGauge (
@@ -145,7 +133,6 @@ var registerMetricsOnce sync.Once
145
133
func RegisterMetrics () {
146
134
registerMetricsOnce .Do (func () {
147
135
legacyregistry .MustRegister (SyncProxyRulesLatency )
148
- legacyregistry .MustRegister (DeprecatedSyncProxyRulesLatency )
149
136
legacyregistry .MustRegister (SyncProxyRulesLastTimestamp )
150
137
legacyregistry .MustRegister (NetworkProgrammingLatency )
151
138
legacyregistry .MustRegister (EndpointChangesPending )
Original file line number Diff line number Diff line change 36
36
},
37
37
)
38
38
39
- DeprecatedSyncProxyRulesLatency = metrics .NewHistogram (
40
- & metrics.HistogramOpts {
41
- Subsystem : kubeProxySubsystem ,
42
- Name : "sync_proxy_rules_latency_microseconds" ,
43
- Help : "SyncProxyRules latency in microseconds" ,
44
- Buckets : metrics .ExponentialBuckets (1000 , 2 , 15 ),
45
- StabilityLevel : metrics .ALPHA ,
46
- DeprecatedVersion : "1.14.0" ,
47
- },
48
- )
49
-
50
39
// SyncProxyRulesLastTimestamp is the timestamp proxy rules were last
51
40
// successfully synced.
52
41
SyncProxyRulesLastTimestamp = metrics .NewGauge (
@@ -64,7 +53,6 @@ var registerMetricsOnce sync.Once
64
53
func RegisterMetrics () {
65
54
registerMetricsOnce .Do (func () {
66
55
legacyregistry .MustRegister (SyncProxyRulesLatency )
67
- legacyregistry .MustRegister (DeprecatedSyncProxyRulesLatency )
68
56
legacyregistry .MustRegister (SyncProxyRulesLastTimestamp )
69
57
})
70
58
}
Original file line number Diff line number Diff line change @@ -1002,7 +1002,6 @@ func (proxier *Proxier) syncProxyRules() {
1002
1002
start := time .Now ()
1003
1003
defer func () {
1004
1004
SyncProxyRulesLatency .Observe (metrics .SinceInSeconds (start ))
1005
- DeprecatedSyncProxyRulesLatency .Observe (metrics .SinceInMicroseconds (start ))
1006
1005
klog .V (4 ).Infof ("syncProxyRules took %v" , time .Since (start ))
1007
1006
}()
1008
1007
// don't sync rules till we've received services and endpoints
You can’t perform that action at this time.
0 commit comments