vcluster

package
v0.0.0-...-86d5f22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package vcluster cluster operate

Index

Constants

View Source
const (
	// PROVIDER BK_MONITOR
	PROVIDER = `provider="BK_MONITOR"`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VCluster

type VCluster struct{}

VCluster :

func NewVCluster

func NewVCluster() *VCluster

NewVCluster :

func (*VCluster) GetClusterCPURequest

func (m *VCluster) GetClusterCPURequest(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterCPURequest 获取CPU Rquest

func (*VCluster) GetClusterCPURequestUsage

func (m *VCluster) GetClusterCPURequestUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterCPURequestUsage 获取CPU核心装箱率

func (*VCluster) GetClusterCPUTotal

func (m *VCluster) GetClusterCPUTotal(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterCPUTotal 获取集群CPU核心总量

func (*VCluster) GetClusterCPUUsage

func (m *VCluster) GetClusterCPUUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterCPUUsage 获取CPU核心使用率

func (*VCluster) GetClusterCPUUsed

func (m *VCluster) GetClusterCPUUsed(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterCPUUsed 获取CPU核心使用量

func (*VCluster) GetClusterDiskTotal

func (m *VCluster) GetClusterDiskTotal(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskTotal 集群磁盘总量

func (*VCluster) GetClusterDiskUsage

func (m *VCluster) GetClusterDiskUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskUsage 集群磁盘使用率

func (*VCluster) GetClusterDiskUsed

func (m *VCluster) GetClusterDiskUsed(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskUsed 集群磁盘使用

func (*VCluster) GetClusterDiskioTotal

func (m *VCluster) GetClusterDiskioTotal(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskioTotal 集群磁盘IO

func (*VCluster) GetClusterDiskioUsage

func (m *VCluster) GetClusterDiskioUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskioUsage 集群磁盘IO使用率

func (*VCluster) GetClusterDiskioUsed

func (m *VCluster) GetClusterDiskioUsed(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterDiskioUsed 集群磁盘IO使用量

func (*VCluster) GetClusterGroupMaxNodeNum

func (m *VCluster) GetClusterGroupMaxNodeNum(ctx context.Context, projectID, clusterID, group string, start,
	end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterGroupMaxNodeNum 集群最大节点池数目

func (*VCluster) GetClusterGroupNodeNum

func (m *VCluster) GetClusterGroupNodeNum(ctx context.Context, projectID, clusterID, group string, start,
	end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterGroupNodeNum 集群节点池数目

func (*VCluster) GetClusterMemoryRequest

func (m *VCluster) GetClusterMemoryRequest(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterMemoryRequest 获取内存 Request

func (*VCluster) GetClusterMemoryRequestUsage

func (m *VCluster) GetClusterMemoryRequestUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterMemoryRequestUsage 获取内存装箱率

func (*VCluster) GetClusterMemoryTotal

func (m *VCluster) GetClusterMemoryTotal(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterMemoryTotal 获取集群CPU核心总量

func (*VCluster) GetClusterMemoryUsage

func (m *VCluster) GetClusterMemoryUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterMemoryUsage 获取内存使用率

func (*VCluster) GetClusterMemoryUsed

func (m *VCluster) GetClusterMemoryUsed(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterMemoryUsed 获取集群内存使用量

func (*VCluster) GetClusterPodTotal

func (m *VCluster) GetClusterPodTotal(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterPodTotal 获取集群最大允许pod数

func (*VCluster) GetClusterPodUsage

func (m *VCluster) GetClusterPodUsage(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterPodUsage 获取集群pod使用率

func (*VCluster) GetClusterPodUsed

func (m *VCluster) GetClusterPodUsed(ctx context.Context, projectID, clusterID string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetClusterPodUsed 获取集群pod使用量

func (*VCluster) GetContainerCPULimit

func (m *VCluster) GetContainerCPULimit(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerCPULimit 容器CPU限制

func (*VCluster) GetContainerCPUUsage

func (m *VCluster) GetContainerCPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerCPUUsage 容器CPU使用率

func (*VCluster) GetContainerDiskReadTotal

func (m *VCluster) GetContainerDiskReadTotal(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerDiskReadTotal 容器磁盘读

func (*VCluster) GetContainerDiskWriteTotal

func (m *VCluster) GetContainerDiskWriteTotal(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerDiskWriteTotal 容器磁盘写

func (*VCluster) GetContainerGPUMemoryUsage

func (m *VCluster) GetContainerGPUMemoryUsage(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerGPUMemoryUsage 容器GPU显卡使用率

func (*VCluster) GetContainerGPUUsage

func (m *VCluster) GetContainerGPUUsage(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerGPUUsage 容器GPU使用率

func (*VCluster) GetContainerGPUUsed

func (m *VCluster) GetContainerGPUUsed(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerGPUUsed 容器GPU使用量

func (*VCluster) GetContainerMemoryLimit

func (m *VCluster) GetContainerMemoryLimit(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerMemoryLimit 容器内存限制

func (*VCluster) GetContainerMemoryUsed

func (m *VCluster) GetContainerMemoryUsed(ctx context.Context, projectID, clusterID, namespace, podname string,
	containerNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetContainerMemoryUsed 容器内存使用率

func (*VCluster) GetNodeCPURequest

func (m *VCluster) GetNodeCPURequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeCPURequest 节点CPU请求量

func (*VCluster) GetNodeCPURequestUsage

func (m *VCluster) GetNodeCPURequestUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeCPURequestUsage 节点CPU装箱率

func (*VCluster) GetNodeCPUTotal

func (m *VCluster) GetNodeCPUTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeCPUTotal 节点CPU总量

func (*VCluster) GetNodeCPUUsage

func (m *VCluster) GetNodeCPUUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeCPUUsage 节点CPU使用率

func (*VCluster) GetNodeCPUUsed

func (m *VCluster) GetNodeCPUUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeCPUUsed 节点CPU使用量

func (*VCluster) GetNodeContainerCount

func (m *VCluster) GetNodeContainerCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeContainerCount 容器Count

func (*VCluster) GetNodeDiskTotal

func (m *VCluster) GetNodeDiskTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeDiskTotal 节点磁盘总量

func (*VCluster) GetNodeDiskUsage

func (m *VCluster) GetNodeDiskUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeDiskUsage 节点磁盘使用率

func (*VCluster) GetNodeDiskUsed

func (m *VCluster) GetNodeDiskUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeDiskUsed 节点磁盘使用量

func (*VCluster) GetNodeDiskioUsage

func (m *VCluster) GetNodeDiskioUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeDiskioUsage 节点磁盘IO使用率

func (*VCluster) GetNodeInfo

func (m *VCluster) GetNodeInfo(ctx context.Context, projectID, clusterID, nodeName string, t time.Time) (*base.NodeInfo,
	error)

GetNodeInfo 节点信息

func (*VCluster) GetNodeMemoryRequest

func (m *VCluster) GetNodeMemoryRequest(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeMemoryRequest 节点Memory请求量

func (*VCluster) GetNodeMemoryRequestUsage

func (m *VCluster) GetNodeMemoryRequestUsage(ctx context.Context, projectID, clusterID, node string,
	start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeMemoryRequestUsage 内存装箱率

func (*VCluster) GetNodeMemoryTotal

func (m *VCluster) GetNodeMemoryTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeMemoryTotal 节点Memory总量

func (*VCluster) GetNodeMemoryUsage

func (m *VCluster) GetNodeMemoryUsage(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeMemoryUsage 内存使用率

func (*VCluster) GetNodeMemoryUsed

func (m *VCluster) GetNodeMemoryUsed(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeMemoryUsed 节点Memory使用量

func (*VCluster) GetNodeNetworkReceive

func (m *VCluster) GetNodeNetworkReceive(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeNetworkReceive 节点网络接收

func (*VCluster) GetNodeNetworkTransmit

func (m *VCluster) GetNodeNetworkTransmit(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodeNetworkTransmit 节点网络发送量

func (*VCluster) GetNodePodCount

func (m *VCluster) GetNodePodCount(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodePodCount PodCount

func (*VCluster) GetNodePodTotal

func (m *VCluster) GetNodePodTotal(ctx context.Context, projectID, clusterID, node string, start, end time.Time,
	step time.Duration) ([]*prompb.TimeSeries, error)

GetNodePodTotal PodTotal

func (*VCluster) GetPodCPULimitUsage

func (m *VCluster) 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 (*VCluster) GetPodCPURequestUsage

func (m *VCluster) 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 (*VCluster) GetPodCPUUsage

func (m *VCluster) GetPodCPUUsage(ctx context.Context, projectID, clusterID, namespace string, podNameList []string,
	start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetPodCPUUsage Pod CPU 使用率

func (*VCluster) GetPodMemoryUsed

func (m *VCluster) GetPodMemoryUsed(ctx context.Context, projectID, clusterID, namespace string, podNameList []string,
	start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetPodMemoryUsed 内存使用量

func (*VCluster) GetPodNetworkReceive

func (m *VCluster) GetPodNetworkReceive(ctx context.Context, projectID, clusterID, namespace string,
	podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetPodNetworkReceive 网络接收

func (*VCluster) GetPodNetworkTransmit

func (m *VCluster) GetPodNetworkTransmit(ctx context.Context, projectID, clusterID, namespace string,
	podNameList []string, start, end time.Time, step time.Duration) ([]*prompb.TimeSeries, error)

GetPodNetworkTransmit 网络发送

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL