Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PodState = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "state", Help: "Pod state is the current state of pods. This metric can be used several ways as it is labeled by the pod name, namespace, owner, node, nodepool name, zone, architecture, capacity type, instance type and pod phase.", }, labelNames(), ) PodStartupDurationSeconds = opmetrics.NewPrometheusSummary( crmetrics.Registry, prometheus.SummaryOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "startup_duration_seconds", Help: "The time from pod creation until the pod is running.", Objectives: metrics.SummaryObjectives(), }, []string{}, ) PodUnstartedTimeSeconds = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "unstarted_time_seconds", Help: "The time from pod creation until the pod is running.", }, []string{podName, podNamespace}, ) PodBoundDurationSeconds = opmetrics.NewPrometheusHistogram( crmetrics.Registry, prometheus.HistogramOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "bound_duration_seconds", Help: "The time from pod creation until the pod is bound.", Buckets: metrics.DurationBuckets(), }, []string{}, ) PodUnboundTimeSeconds = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "unbound_time_seconds", Help: "The time from pod creation until the pod is bound.", }, []string{podName, podNamespace}, ) // Stage: alpha PodProvisioningBoundDurationSeconds = opmetrics.NewPrometheusHistogram( crmetrics.Registry, prometheus.HistogramOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "provisioning_bound_duration_seconds", Help: "The time from when Karpenter first thinks the pod can schedule until it binds. Note: this calculated from a point in memory, not by the pod creation timestamp.", Buckets: metrics.DurationBuckets(), }, []string{}, ) // Stage: alpha PodProvisioningUnboundTimeSeconds = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "provisioning_unbound_time_seconds", Help: "The time from when Karpenter first thinks the pod can schedule until it binds. Note: this calculated from a point in memory, not by the pod creation timestamp.", }, []string{podName, podNamespace}, ) // Stage: alpha PodProvisioningStartupDurationSeconds = opmetrics.NewPrometheusHistogram( crmetrics.Registry, prometheus.HistogramOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "provisioning_startup_duration_seconds", Help: "The time from when Karpenter first thinks the pod can schedule until the pod is running. Note: this calculated from a point in memory, not by the pod creation timestamp.", Buckets: metrics.DurationBuckets(), }, []string{}, ) // Stage: alpha PodProvisioningUnstartedTimeSeconds = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "provisioning_unstarted_time_seconds", Help: "The time from when Karpenter first thinks the pod can schedule until the pod is running. Note: this calculated from a point in memory, not by the pod creation timestamp.", }, []string{podName, podNamespace}, ) // Stage: alpha PodSchedulingUndecidedTimeSeconds = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.PodSubsystem, Name: "scheduling_undecided_time_seconds", Help: "The time from when Karpenter has seen a pod without making a scheduling decision for the pod. Note: this calculated from a point in memory, not by the pod creation timestamp.", }, []string{podName, podNamespace}, ) )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller for the resource
func NewController ¶
func NewController(kubeClient client.Client, cluster *state.Cluster) *Controller
NewController constructs a podController instance
Click to show internal directories.
Click to hide internal directories.