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.
Click to show internal directories.
Click to hide internal directories.