mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #116906 from pacoxu/fix-deprecated-metrics
Fix deprecated metrics
This commit is contained in:
commit
0f373abb6a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user