consts

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CraneNamespace = "crane-system"

	CostExporterName = "fadvisor"

	// DefaultLeaseDuration is the default LeaseDuration for leader election.
	DefaultLeaseDuration = 15 * time.Second
	// DefaultRenewDeadline is the default RenewDeadline for leader election.
	DefaultRenewDeadline = 10 * time.Second
	// DefaultRetryPeriod is the default RetryPeriod for leader election.
	DefaultRetryPeriod = 5 * time.Second
)
View Source
const (
	LabelAppId         = "appid"
	LabelContainerId   = "container_id"
	LabelContainerName = "container_name"
	LabelNamespace     = "namespace"
	LabelNode          = "node"
	LabelNodeRole      = "node_role"
	LabelPodName       = "pod_name"
	LabelRegion        = "region"
	LabelClusterId     = "cluster_id"
	LabelUnInstanceId  = "un_instance_id"
	LabelWorkloadKind  = "workload_kind"
	LabelWorkloadName  = "workload_name"
	LabelInstanceType  = "instance_type"
	LabelInstance      = "instance"
	LabelProviderId    = "provider_id"
)

Tags/Dimensions/Labels this is an abstract inter-mediate labels name, different data source has different label naming which point to the same meaning

View Source
const (
	MetricCpuRequest = "cpu_request"
	MetricCpuLimit   = "cpu_limit"
	MetricMemRequest = "mem_request"
	MetricMemLimit   = "mem_limit"

	MetricWorkloadReplicas = "replicas"
)
View Source
const (
	GB = 1024 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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