Skip to content

Commit

Permalink
Merge pull request kubernetes#116906 from pacoxu/fix-deprecated-metrics
Browse files Browse the repository at this point in the history
Fix deprecated metrics
  • Loading branch information
k8s-ci-robot committed Mar 24, 2023
2 parents f33498a + b83600d commit 0f373ab
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/registry/core/pod/rest/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,7 @@ func countSkipTLSMetric(insecureSkipTLSVerifyBackend bool) {
}
counter.Inc()

deprecatedCounter, err := deprecatedPodLogsUsage.GetMetricWithLabelValues(usageType)
if err != nil {
utilruntime.HandleError(err)
return
}
deprecatedCounter.Inc()
deprecatedPodLogsUsage.WithLabelValues(usageType).Inc()
}

// NewGetOptions creates a new options object
Expand Down

0 comments on commit 0f373ab

Please sign in to comment.