const proxyTimeout …
const dockerOperationsKey …
const dockerOperationsErrorsKey …
const dockerOperationsTimeoutKey …
type ContainerResourceUsage …
type ResourceUsagePerContainer …
type ResourceUsagePerNode …
type ContainersCPUSummary …
type NodesCPUSummary …
type RuntimeOperationMonitor …
type NodeRuntimeOperationErrorRate …
type RuntimeOperationErrorRate …
func ProxyRequest(ctx context.Context, c clientset.Interface, node, endpoint string, port int) (restclient.Result, error) { … }
func NewRuntimeOperationMonitor(ctx context.Context, c clientset.Interface) *RuntimeOperationMonitor { … }
func (m *RuntimeOperationMonitor) GetRuntimeOperationErrorRate(ctx context.Context) map[string]NodeRuntimeOperationErrorRate { … }
func (m *RuntimeOperationMonitor) GetLatestRuntimeOperationErrorRate(ctx context.Context) map[string]NodeRuntimeOperationErrorRate { … }
func FormatRuntimeOperationErrorRate(nodesResult map[string]NodeRuntimeOperationErrorRate) string { … }
func getNodeRuntimeOperationErrorRate(ctx context.Context, c clientset.Interface, node string) (NodeRuntimeOperationErrorRate, error) { … }
func GetStatsSummary(ctx context.Context, c clientset.Interface, nodeName string) (*kubeletstatsv1alpha1.Summary, error) { … }
func getNodeStatsSummary(ctx context.Context, c clientset.Interface, nodeName string) (*kubeletstatsv1alpha1.Summary, error) { … }
func getSystemContainerStats(summary *kubeletstatsv1alpha1.Summary) map[string]*kubeletstatsv1alpha1.ContainerStats { … }
const rootContainerName …
func TargetContainers() []string { … }
func formatResourceUsageStats(nodeName string, containerStats ResourceUsagePerContainer) string { … }
func GetKubeletHeapStats(ctx context.Context, c clientset.Interface, nodeName string) (string, error) { … }
func computeContainerResourceUsage(name string, oldStats, newStats *kubeletstatsv1alpha1.ContainerStats) *ContainerResourceUsage { … }
type resourceCollector …
func newResourceCollector(c clientset.Interface, nodeName string, containerNames []string, pollingInterval time.Duration) *resourceCollector { … }
func (r *resourceCollector) Start(ctx context.Context) { … }
func (r *resourceCollector) Stop() { … }
func (r *resourceCollector) collectStats(ctx context.Context, oldStatsMap map[string]*kubeletstatsv1alpha1.ContainerStats) { … }
func (r *resourceCollector) GetLatest() (ResourceUsagePerContainer, error) { … }
func (r *resourceCollector) Reset() { … }
type resourceUsageByCPU …
func (r resourceUsageByCPU) Len() int { … }
func (r resourceUsageByCPU) Swap(i, j int) { … }
func (r resourceUsageByCPU) Less(i, j int) bool { … }
var percentiles …
func (r *resourceCollector) GetBasicCPUStats(containerName string) map[float64]float64 { … }
type ResourceMonitor …
func NewResourceMonitor(c clientset.Interface, containerNames []string, pollingInterval time.Duration) *ResourceMonitor { … }
func (r *ResourceMonitor) Start(ctx context.Context) { … }
func (r *ResourceMonitor) Stop() { … }
func (r *ResourceMonitor) Reset() { … }
func (r *ResourceMonitor) LogLatest() { … }
func (r *ResourceMonitor) FormatResourceUsage(s ResourceUsagePerNode) string { … }
func (r *ResourceMonitor) GetLatest() (ResourceUsagePerNode, error) { … }
func (r *ResourceMonitor) GetMasterNodeLatest(usagePerNode ResourceUsagePerNode) ResourceUsagePerNode { … }
func (r *ResourceMonitor) FormatCPUSummary(summary NodesCPUSummary) string { … }
func (r *ResourceMonitor) LogCPUSummary() { … }
func (r *ResourceMonitor) GetCPUSummary() NodesCPUSummary { … }
func (r *ResourceMonitor) GetMasterNodeCPUSummary(summaryPerNode NodesCPUSummary) NodesCPUSummary { … }