containermetrics

package
v0.0.0-...-6cf66fa Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 2

Documentation

Overview

Package containermetrics returns metrics and labels interesting to export about a container or sandbox.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSpecMetadata

func ComputeSpecMetadata(allContainers []*container.Container) map[string]string

ComputeSpecMetadata returns the labels for the `spec_metadata` metric. It merges data from the Specs of multiple containers running within the same sandbox. This function must support being called with `allContainers` being nil. It must return the same set of label keys regardless of how many containers are in `allContainers`.

func SandboxPrometheusLabels

func SandboxPrometheusLabels(rootContainer *container.Container) (map[string]string, error)

SandboxPrometheusLabels returns a set of Prometheus labels that identifies the sandbox running the given root container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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