Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Allocatable = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "allocatable", Help: "Node allocatable are the resources allocatable by nodes.", }, nodeLabelNamesWithResourceType(), ) TotalPodRequests = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "total_pod_requests", Help: "Node total pod requests are the resources requested by pods bound to nodes, including the DaemonSet pods.", }, nodeLabelNamesWithResourceType(), ) TotalPodLimits = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "total_pod_limits", Help: "Node total pod limits are the resources specified by pod limits, including the DaemonSet pods.", }, nodeLabelNamesWithResourceType(), ) TotalDaemonRequests = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "total_daemon_requests", Help: "Node total daemon requests are the resource requested by DaemonSet pods bound to nodes.", }, nodeLabelNamesWithResourceType(), ) TotalDaemonLimits = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "total_daemon_limits", Help: "Node total daemon limits are the resources specified by DaemonSet pod limits.", }, nodeLabelNamesWithResourceType(), ) SystemOverhead = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "system_overhead", Help: "Node system daemon overhead are the resources reserved for system overhead, the difference between the node's capacity and allocatable values are reported by the status.", }, nodeLabelNamesWithResourceType(), ) Lifetime = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "current_lifetime_seconds", Help: "Node age in seconds", }, nodeLabelNames(), ) ClusterUtilization = opmetrics.NewPrometheusGauge( crmetrics.Registry, prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: "cluster", Name: "utilization_percent", Help: "Utilization of allocatable resources by pod requests", }, []string{resourceType}, ) )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cluster *state.Cluster) *Controller
Click to show internal directories.
Click to hide internal directories.