Merge pull request #116906 from pacoxu/fix-deprecated-metrics

Fix deprecated metrics
This commit is contained in:
Kubernetes Prow Robot 2023-03-24 05:10:32 -07:00 committed by GitHub
commit 0f373abb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,12 +118,7 @@ func countSkipTLSMetric(insecureSkipTLSVerifyBackend bool) {
} }
counter.Inc() counter.Inc()
deprecatedCounter, err := deprecatedPodLogsUsage.GetMetricWithLabelValues(usageType) deprecatedPodLogsUsage.WithLabelValues(usageType).Inc()
if err != nil {
utilruntime.HandleError(err)
return
}
deprecatedCounter.Inc()
} }
// NewGetOptions creates a new options object // NewGetOptions creates a new options object