Documentation
¶
Overview ¶
Package compute cluster operate
Index ¶
- Constants
- type Compute
- func (p *Compute) GetClusterCPURequest(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterCPURequestUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterCPUTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterCPUUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterCPUUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskioTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskioUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterDiskioUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetClusterGroupMaxNodeNum(ctx context.Context, projectID, clusterID, group string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetClusterGroupNodeNum(ctx context.Context, projectID, clusterID, group string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterMemoryRequest(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterMemoryRequestUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterMemoryTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterMemoryUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterMemoryUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterPodTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterPodUsage(ctx context.Context, projectID, clusterID string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (p *Compute) GetClusterPodUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerCPULimit(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerCPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerDiskReadTotal(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerDiskWriteTotal(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerGPUMemoryUsage(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerGPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerGPUUsed(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerMemoryLimit(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetContainerMemoryUsed(ctx context.Context, projectID, clusterID, namespace, podname string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeCPURequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeCPURequestUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeCPUTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeCPUUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeCPUUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeContainerCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeDiskTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeDiskUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeDiskUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeDiskioUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeInfo(ctx context.Context, projectID, clusterID, node string, t time.Time) (*base.NodeInfo, error)
- func (m *Compute) GetNodeMemoryRequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeMemoryRequestUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeMemoryTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeMemoryUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeMemoryUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeNetworkReceive(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodeNetworkTransmit(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodePodCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetNodePodTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodCPULimitUsage(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodCPURequestUsage(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodCPUUsage(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodMemoryUsed(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodNetworkReceive(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
- func (m *Compute) GetPodNetworkTransmit(ctx context.Context, projectID, clusterID, namespace string, ...) ([]*prompb.TimeSeries, error)
Constants ¶
const (
// PROVIDER xxx
PROVIDER = `provider="PROMETHEUS"`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compute ¶
type Compute struct { }
Compute xxx
func (*Compute) GetClusterCPURequest ¶
func (p *Compute) GetClusterCPURequest(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterCPURequest 获取CPU Request
func (*Compute) GetClusterCPURequestUsage ¶
func (p *Compute) GetClusterCPURequestUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterCPURequestUsage 获取CPU核心装箱率
func (*Compute) GetClusterCPUTotal ¶
func (p *Compute) GetClusterCPUTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterCPUTotal 获取集群CPU核心总量
func (*Compute) GetClusterCPUUsage ¶
func (p *Compute) GetClusterCPUUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterCPUUsage 获取CPU核心使用量
func (*Compute) GetClusterCPUUsed ¶
func (p *Compute) GetClusterCPUUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterCPUUsed 获取CPU核心使用量
func (*Compute) GetClusterDiskTotal ¶
func (p *Compute) GetClusterDiskTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskTotal 获取集群磁盘总量
func (*Compute) GetClusterDiskUsage ¶
func (p *Compute) GetClusterDiskUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskUsage 获取CPU核心使用量
func (*Compute) GetClusterDiskUsed ¶
func (p *Compute) GetClusterDiskUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskUsed 获取集群磁盘使用量
func (*Compute) GetClusterDiskioTotal ¶
func (p *Compute) GetClusterDiskioTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskioTotal 集群磁盘IO
func (*Compute) GetClusterDiskioUsage ¶
func (p *Compute) GetClusterDiskioUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskioUsage 集群磁盘IO使用率
func (*Compute) GetClusterDiskioUsed ¶
func (p *Compute) GetClusterDiskioUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterDiskioUsed 集群磁盘IO使用量
func (*Compute) GetClusterGroupMaxNodeNum ¶
func (m *Compute) GetClusterGroupMaxNodeNum(ctx context.Context, projectID, clusterID, group string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterGroupMaxNodeNum 集群最大节点池数目
func (*Compute) GetClusterGroupNodeNum ¶
func (m *Compute) GetClusterGroupNodeNum(ctx context.Context, projectID, clusterID, group string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterGroupNodeNum 集群节点池数目
func (*Compute) GetClusterMemoryRequest ¶
func (p *Compute) GetClusterMemoryRequest(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterMemoryRequest 获取内存 Request
func (*Compute) GetClusterMemoryRequestUsage ¶
func (p *Compute) GetClusterMemoryRequestUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterMemoryRequestUsage 获取内存装箱率
func (*Compute) GetClusterMemoryTotal ¶
func (p *Compute) GetClusterMemoryTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterMemoryTotal 获取集群内存总量
func (*Compute) GetClusterMemoryUsage ¶
func (p *Compute) GetClusterMemoryUsage(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterMemoryUsage 获取内存使用率
func (*Compute) GetClusterMemoryUsed ¶
func (p *Compute) GetClusterMemoryUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterMemoryUsed 获取内存使用量
func (*Compute) GetClusterPodTotal ¶
func (p *Compute) GetClusterPodTotal(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterPodTotal 获取集群最大允许pod数
func (*Compute) GetClusterPodUsage ¶
func (p *Compute) GetClusterPodUsage(ctx context.Context, projectID, clusterID string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterPodUsage 获取集群pod使用率
func (*Compute) GetClusterPodUsed ¶
func (p *Compute) GetClusterPodUsed(ctx context.Context, projectId, clusterId string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetClusterPodUsed 获取集群pod使用量
func (*Compute) GetContainerCPULimit ¶
func (m *Compute) GetContainerCPULimit(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerCPULimit 容器CPU限制
func (*Compute) GetContainerCPUUsage ¶
func (m *Compute) GetContainerCPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerCPUUsage 容器CPU使用率
func (*Compute) GetContainerDiskReadTotal ¶
func (m *Compute) GetContainerDiskReadTotal(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerDiskReadTotal 容器磁盘读
func (*Compute) GetContainerDiskWriteTotal ¶
func (m *Compute) GetContainerDiskWriteTotal(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerDiskWriteTotal 容器磁盘写
func (*Compute) GetContainerGPUMemoryUsage ¶
func (m *Compute) GetContainerGPUMemoryUsage(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerGPUMemoryUsage 容器GPU显卡使用率
func (*Compute) GetContainerGPUUsage ¶
func (m *Compute) GetContainerGPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerGPUUsage 容器GPU使用率
func (*Compute) GetContainerGPUUsed ¶
func (m *Compute) GetContainerGPUUsed(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerGPUUsed 容器GPU使用量
func (*Compute) GetContainerMemoryLimit ¶
func (m *Compute) GetContainerMemoryLimit(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerMemoryLimit 容器内存限制
func (*Compute) GetContainerMemoryUsed ¶
func (m *Compute) GetContainerMemoryUsed(ctx context.Context, projectID, clusterID, namespace, podname string, containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetContainerMemoryUsed 容器内存使用率
func (*Compute) GetNodeCPURequest ¶
func (m *Compute) GetNodeCPURequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeCPURequest 节点CPU请求量
func (*Compute) GetNodeCPURequestUsage ¶
func (m *Compute) GetNodeCPURequestUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeCPURequestUsage 节点CPU装箱率
func (*Compute) GetNodeCPUTotal ¶
func (m *Compute) GetNodeCPUTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeCPUTotal 节点CPU总量
func (*Compute) GetNodeCPUUsage ¶
func (m *Compute) GetNodeCPUUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeCPUUsage 节点CPU使用率
func (*Compute) GetNodeCPUUsed ¶
func (m *Compute) GetNodeCPUUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeCPUUsed 节点CPU使用量
func (*Compute) GetNodeContainerCount ¶
func (m *Compute) GetNodeContainerCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeContainerCount 容器数量
func (*Compute) GetNodeDiskTotal ¶
func (m *Compute) GetNodeDiskTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeDiskTotal 节点磁盘总量
func (*Compute) GetNodeDiskUsage ¶
func (m *Compute) GetNodeDiskUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeDiskUsage 节点磁盘使用率
func (*Compute) GetNodeDiskUsed ¶
func (m *Compute) GetNodeDiskUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeDiskUsed 节点磁盘使用量
func (*Compute) GetNodeDiskioUsage ¶
func (m *Compute) GetNodeDiskioUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeDiskioUsage 接触磁盘IO使用率
func (*Compute) GetNodeInfo ¶
func (m *Compute) GetNodeInfo(ctx context.Context, projectID, clusterID, node string, t time.Time) (*base.NodeInfo, error)
GetNodeInfo 节点信息
func (*Compute) GetNodeMemoryRequest ¶
func (m *Compute) GetNodeMemoryRequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeMemoryRequest 节点Memory请求量
func (*Compute) GetNodeMemoryRequestUsage ¶
func (m *Compute) GetNodeMemoryRequestUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeMemoryRequestUsage 节点内存装箱率
func (*Compute) GetNodeMemoryTotal ¶
func (m *Compute) GetNodeMemoryTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeMemoryTotal 节点Memory总量
func (*Compute) GetNodeMemoryUsage ¶
func (m *Compute) GetNodeMemoryUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeMemoryUsage 节点内存使用率
func (*Compute) GetNodeMemoryUsed ¶
func (m *Compute) GetNodeMemoryUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeMemoryUsed 节点Memory使用量
func (*Compute) GetNodeNetworkReceive ¶
func (m *Compute) GetNodeNetworkReceive(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeNetworkReceive 节点网络接收量
func (*Compute) GetNodeNetworkTransmit ¶
func (m *Compute) GetNodeNetworkTransmit(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodeNetworkTransmit 网络发送量
func (*Compute) GetNodePodCount ¶
func (m *Compute) GetNodePodCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodePodCount PodCount
func (*Compute) GetNodePodTotal ¶
func (m *Compute) GetNodePodTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetNodePodTotal PodTotal
func (*Compute) GetPodCPULimitUsage ¶
func (m *Compute) GetPodCPULimitUsage(ctx context.Context, projectID, clusterID, namespace string, podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetPodCPULimitUsage POD CPU Limit 使用率
func (*Compute) GetPodCPURequestUsage ¶
func (m *Compute) GetPodCPURequestUsage(ctx context.Context, projectID, clusterID, namespace string, podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetPodCPURequestUsage POD CPU Request 使用率
func (*Compute) GetPodCPUUsage ¶
func (m *Compute) GetPodCPUUsage(ctx context.Context, projectID, clusterID, namespace string, podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetPodCPUUsage POD 使用率
func (*Compute) GetPodMemoryUsed ¶
func (m *Compute) GetPodMemoryUsed(ctx context.Context, projectID, clusterID, namespace string, podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)
GetPodMemoryUsed 内存使用量