metrics

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NAMESPACE = "escalator"

NAMESPACE is the prometheus prefix namespace for the exported metrics

Variables

View Source
var (
	// RunCount is number of times the controller has checked for cluster state
	RunCount = prometheus.NewCounter(prometheus.CounterOpts{
		Name:      "run_count",
		Namespace: NAMESPACE,
		Help:      "Number of times the controller has checked for cluster state",
	})
	// NodeGroupNodesUntainted nodes considered by specific node groups that are untainted
	NodeGroupNodesUntainted = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_untainted_nodes",
			Namespace: NAMESPACE,
			Help:      "nodes considered by specific node groups that are untainted",
		},
		[]string{"node_group"},
	)
	// NodeGroupNodesTainted nodes considered by specific node groups that are tainted
	NodeGroupNodesTainted = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_tainted_nodes",
			Namespace: NAMESPACE,
			Help:      "nodes considered by specific node groups that are tainted",
		},
		[]string{"node_group"},
	)
	// NodeGroupNodesForceTainted nodes considered by specific node groups that are force tainted
	NodeGroupNodesForceTainted = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_force_tainted_nodes",
			Namespace: NAMESPACE,
			Help:      "nodes considered by specific node groups that are force tainted",
		},
		[]string{"node_group"},
	)
	// NodeGroupNodesCordoned nodes considered by specific node groups
	NodeGroupNodesCordoned = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cordoned_nodes",
			Namespace: NAMESPACE,
			Help:      "nodes considered by specific node groups that are cordoned",
		},
		[]string{"node_group"},
	)
	// NodeGroupNodes nodes considered by specific node groups
	NodeGroupNodes = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_nodes",
			Namespace: NAMESPACE,
			Help:      "nodes considered by specific node groups",
		},
		[]string{"node_group"},
	)
	// NodeGroupPods pods considered by specific node groups
	NodeGroupPods = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_pods",
			Namespace: NAMESPACE,
			Help:      "pods considered by specific node groups",
		},
		[]string{"node_group"},
	)
	// NodeGroupUnhealthy nodes considered by specific node groups that are unhealthy
	NodeGroupUnhealthy = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_unhealthy_nodes",
			Namespace: NAMESPACE,
			Help:      "node group considered to be unhealthy",
		},
		[]string{"node_group"},
	)
	// NodeGroupPodsEvicted pods evicted during a scale down
	NodeGroupPodsEvicted = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name:      "node_group_pods_evicted",
			Namespace: NAMESPACE,
			Help:      "pods evicted during a scale down",
		},
		[]string{"node_group"},
	)
	// NodeGroupsMemPercent percentage of util of memory
	NodeGroupsMemPercent = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_percent",
			Namespace: NAMESPACE,
			Help:      "percentage of util of memory",
		},
		[]string{"node_group"},
	)
	// NodeGroupsCPUPercent percentage of util of cpu
	NodeGroupsCPUPercent = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_percent",
			Namespace: NAMESPACE,
			Help:      "percentage of util of cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemRequest byte value of node request mem
	NodeGroupMemRequest = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_request",
			Namespace: NAMESPACE,
			Help:      "byte value of node request mem",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPURequest milli value of node request cpu
	NodeGroupCPURequest = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_request",
			Namespace: NAMESPACE,
			Help:      "milli value of node request cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemRequestLargestPendingCPU byte value of memory of node group's largest pod by request CPU
	NodeGroupMemRequestLargestPendingCPU = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_request_largest_pending_cpu",
			Namespace: NAMESPACE,
			Help:      "byte value of memory for largest pending pod by cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPURequestLargestPendingCPU milli value of CPU of node group's largest pod by request cpu
	NodeGroupCPURequestLargestPendingCPU = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_request_largest_pending_cpu",
			Namespace: NAMESPACE,
			Help:      "milli value of cpu for largest pending pod by cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemRequestLargestPendingMem byte value of memory of node group's largest pod by request Mem
	NodeGroupMemRequestLargestPendingMem = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_request_largest_pending_mem",
			Namespace: NAMESPACE,
			Help:      "byte value of memory for largest pending pod by memory",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPURequestLargestPendingMem milli value of CPU of node group's largest pod by request Mem
	NodeGroupCPURequestLargestPendingMem = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_request_largest_pending_mem",
			Namespace: NAMESPACE,
			Help:      "milli value of cpu for largest pending pod by memory",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemCapacity byte value of node capacity mem
	NodeGroupMemCapacity = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_capacity",
			Namespace: NAMESPACE,
			Help:      "byte value of node capacity mem",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPUCapacity milli value of node Capacity cpu
	NodeGroupCPUCapacity = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_capacity",
			Namespace: NAMESPACE,
			Help:      "milli value of node capacity cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemCapacityLargestAvailableCPU byte value of available memory of node group's largest node by available CPU
	NodeGroupMemCapacityLargestAvailableCPU = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_capacity_largest_available_cpu",
			Namespace: NAMESPACE,
			Help:      "byte value of memory capacity for largest available node by cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPUCapacityLargestAvailableCPU milli value of available CPU of node group's largest node by available cpu
	NodeGroupCPUCapacityLargestAvailableCPU = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_capacity_largest_available_cpu",
			Namespace: NAMESPACE,
			Help:      "milli value of cpu capacity for largest available node by cpu",
		},
		[]string{"node_group"},
	)
	// NodeGroupMemCapacityLargestAvailableMem byte value of available memory of node group's largest node by available Mem
	NodeGroupMemCapacityLargestAvailableMem = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_mem_capacity_largest_available_mem",
			Namespace: NAMESPACE,
			Help:      "byte value of memory capacity for largest available node by memory",
		},
		[]string{"node_group"},
	)
	// NodeGroupCPUCapacityLargestAvailableMem milli value of available CPU of node group's largest node by available Mem
	NodeGroupCPUCapacityLargestAvailableMem = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_cpu_capacity_largest_available_mem",
			Namespace: NAMESPACE,
			Help:      "milli value of cpu capacity for largest available node by memory",
		},
		[]string{"node_group"},
	)
	// NodeGroupTaintEvent indicates a scale down event
	NodeGroupTaintEvent = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_taint_event",
			Namespace: NAMESPACE,
			Help:      "indicates a scale down event",
		},
		[]string{"node_group"},
	)
	// NodeGroupUntaintEvent indicates a scale up event
	NodeGroupUntaintEvent = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_untaint_event",
			Namespace: NAMESPACE,
			Help:      "indicates a scale up event",
		},
		[]string{"node_group"},
	)
	// NodeGroupScaleLock indicates if the nodegroup is locked from scaling
	NodeGroupScaleLock = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_scale_lock",
			Namespace: NAMESPACE,
			Help:      "indicates if the nodegroup is locked from scaling",
		},
		[]string{"node_group"},
	)
	// NodeGroupScaleLockDuration indicates how long the nodegroup is locked from scaling
	NodeGroupScaleLockDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:      "node_group_scale_lock_duration",
			Namespace: NAMESPACE,
			Help:      "indicates how long the nodegroup is locked from scaling",
			Buckets:   []float64{60, 120, 180, 240, 300, 360, 420, 480, 540, 600, 660, 720, 780, 840, 900, 960, 1020, 1080, 1140, 1200, 1260, 1320, 1380, 1440, 1500, 1560, 1620, 1680, 1740},
		},
		[]string{"node_group"},
	)
	// NodeGroupScaleLockCheckWasLocked indicates how many scale lock `locked()` checks were conduced whilst the lock was held
	NodeGroupScaleLockCheckWasLocked = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name:      "node_group_scale_lock_check_was_locked",
			Namespace: NAMESPACE,
			Help:      "indicates how many checks of the nodegroup scale lock were done whilst the lock was held",
		},
		[]string{"node_group"},
	)
	// NodeGroupScaleDelta indicates desired change in node group size
	NodeGroupScaleDelta = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "node_group_scale_delta",
			Namespace: NAMESPACE,
			Help:      "indicates current scale delta",
		},
		[]string{"node_group"},
	)
	// NodeGroupNodeRegistrationLag indicates how long nodes take to register in kube from instantiation in the nodegroup
	NodeGroupNodeRegistrationLag = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:      "node_group_node_registration_lag",
			Namespace: NAMESPACE,
			Help:      "indicates how long nodes take to register in kube from instantiation in the nodegroup",
			Buckets:   []float64{60, 120, 180, 240, 300, 360, 420, 480, 540, 600, 660, 720, 780, 840, 900, 960, 1020, 1080, 1140, 1200, 1260, 1320, 1380, 1440, 1500, 1560, 1620, 1680, 1740},
		},
		[]string{"node_group"},
	)
	// CloudProviderMinSize indicates the current cloud provider minimum size
	CloudProviderMinSize = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "cloud_provider_min_size",
			Namespace: NAMESPACE,
			Help:      "current cloud provider minimum size",
		},
		[]string{"cloud_provider", "id", "node_group"},
	)
	// CloudProviderMaxSize indicates the current cloud provider maximum size
	CloudProviderMaxSize = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "cloud_provider_max_size",
			Namespace: NAMESPACE,
			Help:      "current cloud provider maximum size",
		},
		[]string{"cloud_provider", "id", "node_group"},
	)
	// CloudProviderTargetSize indicates the current cloud provider target size
	CloudProviderTargetSize = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "cloud_provider_target_size",
			Namespace: NAMESPACE,
			Help:      "current cloud provider target size",
		},
		[]string{"cloud_provider", "id", "node_group"},
	)
	// CloudProviderSize indicates the current cloud provider size
	CloudProviderSize = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "cloud_provider_size",
			Namespace: NAMESPACE,
			Help:      "current cloud provider size",
		},
		[]string{"cloud_provider", "id", "node_group"},
	)
	// NodeDeleteErrors counts the number of node deletion errors
	NodeDeleteErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name:      "node_delete_errors",
			Namespace: NAMESPACE,
			Help:      "number of node deletion errors due to node not being in the expected node group",
		},
		[]string{"node_group", "node"},
	)
)

Functions

func Start

func Start(addr string)

Start starts the metrics endpoint on a new routine

Types

This section is empty.

Jump to

Keyboard shortcuts

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