type ResourceConstraint …
type SingleContainerSummary …
type ContainerResourceUsage …
type ResourceUsagePerContainer …
type ResourceUsageSummary …
func (s *ResourceUsageSummary) PrintHumanReadable() string { … }
func (s *ResourceUsageSummary) PrintJSON() string { … }
func (s *ResourceUsageSummary) SummaryKind() string { … }
type uint64arr …
func (a uint64arr) Len() int { … }
func (a uint64arr) Swap(i, j int) { … }
func (a uint64arr) Less(i, j int) bool { … }
type usageDataPerContainer …
func computePercentiles(timeSeries []ResourceUsagePerContainer, percentilesToCompute []int) map[int]ResourceUsagePerContainer { … }
func leftMergeData(left, right map[int]ResourceUsagePerContainer) map[int]ResourceUsagePerContainer { … }
type resourceGatherWorker …
func (w *resourceGatherWorker) singleProbe(ctx context.Context) { … }
func getOneTimeResourceUsageOnNode(
c clientset.Interface,
nodeName string,
cpuInterval time.Duration,
containerNames func() []string,
) (ResourceUsagePerContainer, error) { … }
func getStatsSummary(c clientset.Interface, nodeName string) (*kubeletstatsv1alpha1.Summary, error) { … }
func removeUint64Ptr(ptr *uint64) uint64 { … }
func (w *resourceGatherWorker) gather(ctx context.Context, initialSleep time.Duration) { … }
type ContainerResourceGatherer …
type ResourceGathererOptions …
type NodesSet …
const AllNodes …
const MasterNodes …
const MasterAndDNSNodes …
func nodeHasControlPlanePods(ctx context.Context, c clientset.Interface, nodeName string) (bool, error) { … }
func NewResourceUsageGatherer(ctx context.Context, c clientset.Interface, options ResourceGathererOptions, pods *v1.PodList) (*ContainerResourceGatherer, error) { … }
func (g *ContainerResourceGatherer) StartGatheringData(ctx context.Context) { … }
func (g *ContainerResourceGatherer) StopAndSummarize(percentiles []int, constraints map[string]ResourceConstraint) (*ResourceUsageSummary, error) { … }
type kubemarkResourceUsage …
func getMasterUsageByPrefix(ctx context.Context, prefix string) (string, error) { … }
func getKubemarkMasterComponentsResourceUsage(ctx context.Context) map[string]*kubemarkResourceUsage { … }