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