metrics

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL