Documentation ¶
Index ¶
Constants ¶
View Source
const ( KoordletSubsystem = "koordlet" NodeKey = "node" StatusKey = "status" StatusSucceed = "succeed" StatusFailed = "failed" EvictionReasonKey = "reason" BESuppressTypeKey = "type" )
Variables ¶
View Source
var ( KoordletStartTime = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Subsystem: KoordletSubsystem, Name: "start_time", Help: "the start time of koordlet", }, []string{NodeKey}) CollectNodeCPUInfoStatus = prometheus.NewCounterVec(prometheus.CounterOpts{ Subsystem: KoordletSubsystem, Name: "collect_node_cpu_info_status", Help: "the count of CollectNodeCPUInfo status", }, []string{NodeKey, StatusKey}) PodEviction = prometheus.NewCounterVec(prometheus.CounterOpts{ Subsystem: KoordletSubsystem, Name: "pod_eviction", Help: "Number of eviction launched by koordlet", }, []string{NodeKey, EvictionReasonKey}) BESuppressCPU = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Subsystem: KoordletSubsystem, Name: "be_suppress_cpu_cores", Help: "Number of cores suppress by koordlet", }, []string{NodeKey, BESuppressTypeKey}) CommonCollectors = []prometheus.Collector{ KoordletStartTime, CollectNodeCPUInfoStatus, PodEviction, BESuppressCPU, } )
View Source
var ( NodeName string Node *corev1.Node )
Functions ¶
func RecordBESuppressCores ¶
func RecordCollectNodeCPUInfoStatus ¶
func RecordCollectNodeCPUInfoStatus(err error)
func RecordKoordletStartTime ¶
func RecordPodEviction ¶
func RecordPodEviction(reasonType string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.