Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the Apache 2.0 license.
Copyright (c) Microsoft Corporation. Licensed under the Apache 2.0 license.
Copyright (c) Microsoft Corporation. Licensed under the Apache 2.0 license.
Index ¶
Constants ¶
View Source
const (
ContainerGroupCacheTTLSeconds = 60 * 5
)
Variables ¶
This section is empty.
Functions ¶
func NewPodStatsGetterDecider ¶
func NewPodStatsGetterDecider(realTimeGetter client.PodStatsGetter, rgName string, aciCGGetter client.ContainerGroupGetter) *podStatsGetterDecider
func NewRealTimeMetrics ¶
func NewRealTimeMetrics() *realTimeMetrics
func WrapCachedPodStatsGetter ¶
func WrapCachedPodStatsGetter(ttlSeconds int, getter client.PodStatsGetter) *cachePodStatsGetter
Types ¶
type ACIPodMetricsProvider ¶
type ACIPodMetricsProvider struct {
// contains filtered or unexported fields
}
func NewACIPodMetricsProvider ¶
func NewACIPodMetricsProvider(nodeName, aciResourcegroup string, podLister corev1listers.PodLister, aciCGGetter client.ContainerGroupGetter) *ACIPodMetricsProvider
func (*ACIPodMetricsProvider) GetMetricsResource ¶ added in v1.6.0
func (p *ACIPodMetricsProvider) GetMetricsResource(ctx context.Context) ([]*dto.MetricFamily, error)
GetMetrics Resource returns the metrics for pods running on ACI
func (*ACIPodMetricsProvider) GetStatsSummary ¶
func (p *ACIPodMetricsProvider) GetStatsSummary(ctx context.Context) (summary *stats.Summary, err error)
GetStatsSummary returns the stats summary for pods running on ACI
Click to show internal directories.
Click to hide internal directories.