nodegroup

package
v0.0.0-...-2db6d58 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GardenerLabel  model.LabelName = "label_worker_gardener_cloud_pool"
	KarpenterLabel model.LabelName = "label_karpenter_sh_nodepool"
	GkeLabel       model.LabelName = "label_cloud_google_com_gke_nodepool"
	EksLabel       model.LabelName = "label_eks_amazonaws_com_nodegroup"
	AksLabel       model.LabelName = "label_agentpool"
	EksctlLabel    model.LabelName = "label_alpha_eksctl_io_nodegroup_name"
	KopsLabel      model.LabelName = "label_kops_k8s_io_instancegroup"
	PoolNameLabel  model.LabelName = "label_pool_name"
)

well-known labels

View Source
const (
	// DefaultNodeGroup cannot be "default" as some provisioners (e.g. Karpenter) may use this value
	DefaultNodeGroup model.LabelValue = "__default__"
	NodeInfoMetric                    = "kube_node_info"
	NodeLabelMetric                   = "kube_node_labels"
	NodeRoleMetric                    = "kube_node_role"
	NonExistingLabel model.LabelName  = "__non_existing_nodegroup_label__"
)

Variables

This section is empty.

Functions

func AdjustNodeGroupName

func AdjustNodeGroupName(cluster, name string) (s string)

func ByPodIpMetricSuffixFmt

func ByPodIpMetricSuffixFmt(cf clusterFeature) string

func CountQueryFmt

func CountQueryFmt(cf clusterFeature) string

func Metrics

func Metrics()

Metrics a global func for collecting node level metrics in prometheus

func QuerySuffixFmt

func QuerySuffixFmt(cf clusterFeature, queryTarget string, closeBracket bool, extraArgs ...string) (s string)

func QueryWrappersMap

func QueryWrappersMap(cf clusterFeature) map[string]*node.QueryWrapper

Types

type NodeLabelProviderType

type NodeLabelProviderType int
const (
	CustomLabel NodeLabelProviderType = iota
	ClusterManager
	NodeAutoscaler
	CloudServiceProvider
	ClusterProvisioningTool
	UnclassifiedProvider // must be last
)

func GetProviderType

func GetProviderType(ln model.LabelName) NodeLabelProviderType

Jump to

Keyboard shortcuts

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