mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 10:32:03 +00:00
Use getMetrics in ReadLatencyMetrics. #7572
This commit is contained in:
parent
ac282bd50a
commit
b78576386f
@ -957,7 +957,7 @@ type LatencyMetric struct {
|
||||
}
|
||||
|
||||
func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error) {
|
||||
body, err := c.Get().AbsPath("/metrics").DoRaw()
|
||||
body, err := getMetrics(c)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user