Documentation
¶
Index ¶
- Constants
- func AdjustNodeGroupName(cluster, name string) (s string)
- func ByPodIpMetricSuffixFmt(cf clusterFeature) string
- func CountQueryFmt(cf clusterFeature) string
- func Metrics()
- func QuerySuffixFmt(cf clusterFeature, queryTarget string, closeBracket bool, extraArgs ...string) (s string)
- func QueryWrappersMap(cf clusterFeature) map[string]*node.QueryWrapper
- type NodeLabelProviderType
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 ByPodIpMetricSuffixFmt ¶
func ByPodIpMetricSuffixFmt(cf clusterFeature) string
func CountQueryFmt ¶
func CountQueryFmt(cf clusterFeature) string
func QuerySuffixFmt ¶
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
Click to show internal directories.
Click to hide internal directories.