Documentation ¶
Index ¶
- Variables
- type CQEvent
- type CQGroupSummary
- type CQState
- type CQStore
- type Recorder
- func (r *Recorder) RecordCQState(cq *kueue.ClusterQueue)
- func (r *Recorder) RecordWorkloadState(wl *kueue.Workload)
- func (r *Recorder) Run(ctx context.Context, genDone <-chan struct{}) error
- func (r *Recorder) WriteCQCsv(path string) (err error)
- func (r *Recorder) WriteSummary(path string) error
- func (r *Recorder) WriteWLCsv(path string) (err error)
- type Store
- type Summary
- type WLEvent
- type WLState
- type WLStore
- type WorkloadsClassSummary
Constants ¶
This section is empty.
Variables ¶
View Source
var CQStateCsvHeader = []string{
"name",
"cohort",
"class name",
"CPU quota (mCPU)",
"CPU used (mCPU * ms)",
"CPU max usage (mCPU)",
"monitor time (ms)",
}
View Source
var WLStateCsvHeader = []string{
"id",
"class name",
"namespace",
"name",
"ms to admitted",
"ms to finish",
"num evictions",
}
Functions ¶
This section is empty.
Types ¶
type CQGroupSummary ¶
type CQGroupSummary struct { CPUUsed int64 `json:"cpuUsed"` CPUAverageUsage int64 `json:"cpuAverageUsage"` NominalQuota int64 `json:"nominalQuota"` FirstEventTime time.Time `json:"firstEventTime"` LastEventTime time.Time `json:"lastEventTime"` }
func (*CQGroupSummary) AddQueueSummary ¶
func (qgs *CQGroupSummary) AddQueueSummary(qs *CQState)
type CQState ¶
type Recorder ¶
type Recorder struct { Store Store // contains filtered or unexported fields }
func (*Recorder) RecordCQState ¶
func (r *Recorder) RecordCQState(cq *kueue.ClusterQueue)
func (*Recorder) RecordWorkloadState ¶
func (*Recorder) WriteCQCsv ¶
func (*Recorder) WriteSummary ¶
func (*Recorder) WriteWLCsv ¶
type Summary ¶
type Summary struct { ClusterQueueClasses map[string]*CQGroupSummary `json:"clusterQueueClasses"` WorkloadClasses map[string]*WorkloadsClassSummary `json:"workloadClasses"` }
type WLState ¶
type WorkloadsClassSummary ¶
Click to show internal directories.
Click to hide internal directories.