Documentation ¶
Index ¶
- Constants
- func ExtractEbsIdsUsedByKubernetes() map[string]string
- type EbsVolume
- type Ec2Tags
- type Ec2metadata
- type MachineInfo
- func (m *MachineInfo) GetAutoScalingGroupName() string
- func (m *MachineInfo) GetClusterName() string
- func (m *MachineInfo) GetEbsVolumeId(devName string) string
- func (m *MachineInfo) GetInstanceID() string
- func (m *MachineInfo) GetInstanceType() string
- func (m *MachineInfo) GetMemoryCapacity() int64
- func (m *MachineInfo) GetNumCores() int64
- func (m *MachineInfo) Shutdown()
- type NodeCapacity
Constants ¶
View Source
const ( ClusterNameKey = "container-insight-eks-cluster-name" ClusterNameTagKeyPrefix = "kubernetes.io/cluster/" AutoScalingGroupNameTag = "aws:autoscaling:groupName" )
View Source
const (
GoPSUtilProcDirEnv = "HOST_PROC"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractEbsIdsUsedByKubernetes ¶
extract the ebs volume id used by kubernetes cluster
Types ¶
type Ec2Tags ¶
type Ec2Tags struct {
// contains filtered or unexported fields
}
func NewEc2Tags ¶
func (*Ec2Tags) GetAutoScalingGroupName ¶
func (*Ec2Tags) GetClusterName ¶
type Ec2metadata ¶
type Ec2metadata struct {
// contains filtered or unexported fields
}
func NewEc2metadata ¶
func NewEc2metadata(refreshInterval time.Duration, logger *zap.Logger) *Ec2metadata
func (*Ec2metadata) GetInstanceID ¶
func (emd *Ec2metadata) GetInstanceID() string
func (*Ec2metadata) GetInstanceType ¶
func (emd *Ec2metadata) GetInstanceType() string
func (*Ec2metadata) Shutdown ¶
func (emd *Ec2metadata) Shutdown()
type MachineInfo ¶
func NewMachineInfo ¶
func NewMachineInfo(refreshInterval time.Duration, logger *zap.Logger) *MachineInfo
func (*MachineInfo) GetAutoScalingGroupName ¶
func (m *MachineInfo) GetAutoScalingGroupName() string
func (*MachineInfo) GetClusterName ¶
func (m *MachineInfo) GetClusterName() string
func (*MachineInfo) GetEbsVolumeId ¶
func (m *MachineInfo) GetEbsVolumeId(devName string) string
func (*MachineInfo) GetInstanceID ¶
func (m *MachineInfo) GetInstanceID() string
func (*MachineInfo) GetInstanceType ¶
func (m *MachineInfo) GetInstanceType() string
func (*MachineInfo) GetMemoryCapacity ¶
func (m *MachineInfo) GetMemoryCapacity() int64
func (*MachineInfo) GetNumCores ¶
func (m *MachineInfo) GetNumCores() int64
func (*MachineInfo) Shutdown ¶
func (m *MachineInfo) Shutdown()
type NodeCapacity ¶
type NodeCapacity struct { MemCapacity int64 CPUCapacity int64 // contains filtered or unexported fields }
func NewNodeCapacity ¶
func NewNodeCapacity(logger *zap.Logger) (*NodeCapacity, error)
Click to show internal directories.
Click to hide internal directories.