mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Update custom-metrics-apiserver and metrics-server
This commit is contained in:
parent
4c673534f2
commit
b480e45a67
915 changed files with 63694 additions and 106514 deletions
4
vendor/sigs.k8s.io/metrics-server/pkg/api/interfaces.go
generated
vendored
4
vendor/sigs.k8s.io/metrics-server/pkg/api/interfaces.go
generated
vendored
|
|
@ -51,7 +51,7 @@ type PodMetricsGetter interface {
|
|||
// GetContainerMetrics gets the latest metrics for all containers in each listed pod,
|
||||
// returning both the metrics and the associated collection timestamp.
|
||||
// If a pod is missing, the container metrics should be nil for that pod.
|
||||
GetContainerMetrics(pods ...apitypes.NamespacedName) ([]TimeInfo, [][]metrics.ContainerMetrics, error)
|
||||
GetContainerMetrics(pods ...apitypes.NamespacedName) ([]TimeInfo, [][]metrics.ContainerMetrics)
|
||||
}
|
||||
|
||||
// NodeMetricsGetter knows how to fetch metrics for a node.
|
||||
|
|
@ -59,5 +59,5 @@ type NodeMetricsGetter interface {
|
|||
// GetNodeMetrics gets the latest metrics for the given nodes,
|
||||
// returning both the metrics and the associated collection timestamp.
|
||||
// If a node is missing, the resourcelist should be nil for that node.
|
||||
GetNodeMetrics(nodes ...string) ([]TimeInfo, []corev1.ResourceList, error)
|
||||
GetNodeMetrics(nodes ...string) ([]TimeInfo, []corev1.ResourceList)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue