container

package
v0.76.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllLabels

func GetAllLabels(cs corev1.ContainerStatus,
	dims map[string]string, logger *zap.Logger) map[string]string

GetAllLabels returns all container labels, including ones from the pod in which the container is running.

func GetResource

func GetResource(labels map[string]string) *resourcepb.Resource

GetResource returns a proto representation of the pod.

func GetSpecMetrics

func GetSpecMetrics(c corev1.Container) []*metricspb.Metric

GetSpecMetrics metricizes values from the container spec. This includes values like resource requests and limits.

func GetStatusMetrics

func GetStatusMetrics(cs corev1.ContainerStatus) []*metricspb.Metric

GetStatusMetrics returns metrics about the status of the container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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