mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Hide proxy metrics that have been deprecated in 1.14
This commit is contained in:
		@@ -41,11 +41,12 @@ var (
 | 
				
			|||||||
	// DeprecatedSyncProxyRulesLatency is the latency of one round of kube-proxy syncing proxy rules.
 | 
						// DeprecatedSyncProxyRulesLatency is the latency of one round of kube-proxy syncing proxy rules.
 | 
				
			||||||
	DeprecatedSyncProxyRulesLatency = metrics.NewHistogram(
 | 
						DeprecatedSyncProxyRulesLatency = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      kubeProxySubsystem,
 | 
								Subsystem:         kubeProxySubsystem,
 | 
				
			||||||
			Name:           "sync_proxy_rules_latency_microseconds",
 | 
								Name:              "sync_proxy_rules_latency_microseconds",
 | 
				
			||||||
			Help:           "(Deprecated) SyncProxyRules latency in microseconds",
 | 
								Help:              "SyncProxyRules latency in microseconds",
 | 
				
			||||||
			Buckets:        metrics.ExponentialBuckets(1000, 2, 15),
 | 
								Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
				
			||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel:    metrics.ALPHA,
 | 
				
			||||||
 | 
								DeprecatedVersion: "1.14.0",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,11 +39,12 @@ var (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	DeprecatedSyncProxyRulesLatency = metrics.NewHistogram(
 | 
						DeprecatedSyncProxyRulesLatency = metrics.NewHistogram(
 | 
				
			||||||
		&metrics.HistogramOpts{
 | 
							&metrics.HistogramOpts{
 | 
				
			||||||
			Subsystem:      kubeProxySubsystem,
 | 
								Subsystem:         kubeProxySubsystem,
 | 
				
			||||||
			Name:           "sync_proxy_rules_latency_microseconds",
 | 
								Name:              "sync_proxy_rules_latency_microseconds",
 | 
				
			||||||
			Help:           "(Deprecated) SyncProxyRules latency in microseconds",
 | 
								Help:              "SyncProxyRules latency in microseconds",
 | 
				
			||||||
			Buckets:        metrics.ExponentialBuckets(1000, 2, 15),
 | 
								Buckets:           metrics.ExponentialBuckets(1000, 2, 15),
 | 
				
			||||||
			StabilityLevel: metrics.ALPHA,
 | 
								StabilityLevel:    metrics.ALPHA,
 | 
				
			||||||
 | 
								DeprecatedVersion: "1.14.0",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user