common

package
v0.0.0-...-f9d3faf Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerID   string = "container_id"
	ContainerName string = "container_name"
	Node          string = "node"
	PodName       string = "pod_name"
	PodNamespace  string = "pod_namespace"
	PodUID        string = "pod_uid"

	CPIField string = "cpi_field"
)
View Source
const (
	KoordletContainerCPI string = "koordlet_container_cpi"
	KoordletPodCPI       string = "koordlet_pod_cpi"

	Cycles       string = "cycles"
	Instructions string = "instructions"
)

Variables

This section is empty.

Functions

func MakeContainerCPILabels

func MakeContainerCPILabels(metric prommodel.Metric) (map[string]string, error)

func MakePodCPILabels

func MakePodCPILabels(metric prommodel.Metric) (map[string]string, error)

Types

type MakeLabelsFunc

type MakeLabelsFunc func(metric prommodel.Metric) (map[string]string, error)

type Metric

type Metric struct {
	Labels map[string]string
	Value  float64
}

type MetricQueryOptions

type MetricQueryOptions struct {
	MetricName   string
	FilterLabels map[string]string

	PromSumByLabels []string
}

type ProviderType

type ProviderType string
const (
	PrometheusProvider ProviderType = "prometheus_provider"
)

Jump to

Keyboard shortcuts

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