recommendations

package
v4.2.705+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppTime        appTag = "time"
	AppClusterName appTag = "cluster_name"
	AppNamespace   appTag = "namespace"
	AppName        appTag = "name"
	AppType        appTag = "type"

	AppKind              appField = "kind"
	AppCurrentReplicas   appField = "current_replicas"
	AppDesiredReplicas   appField = "desired_replicas"
	AppCreateTime        appField = "create_time"
	AppCurrentCPURequest appField = "current_cpu_requests"
	AppCurrentMEMRequest appField = "current_mem_requests"
	AppCurrentCPULimit   appField = "current_cpu_limits"
	AppCurrentMEMLimit   appField = "current_mem_limits"
	AppDesiredCPULimit   appField = "desired_cpu_limits"
	AppDesiredMEMLimit   appField = "desired_mem_limits"
	AppTotalCost         appField = "total_cost"
)
View Source
const (
	ClusterTime clusterTag = "time"
	ClusterName clusterTag = "name"
	ClusterType clusterTag = "type"

	ClusterKind              clusterField = "kind"
	ClusterCurrentReplicas   clusterField = "current_replicas"
	ClusterDesiredReplicas   clusterField = "desired_replicas"
	ClusterCreateTime        clusterField = "create_time"
	ClusterCurrentCPURequest clusterField = "current_cpu_requests"
	ClusterCurrentMEMRequest clusterField = "current_mem_requests"
	ClusterCurrentCPULimit   clusterField = "current_cpu_limits"
	ClusterCurrentMEMLimit   clusterField = "current_mem_limits"
	ClusterDesiredCPULimit   clusterField = "desired_cpu_limits"
	ClusterDesiredMEMLimit   clusterField = "desired_mem_limits"
	ClusterTotalCost         clusterField = "total_cost"
)
View Source
const (
	// ContainerTime is the time to apply recommendation
	ContainerTime containerTag = "time"
	// ContainerNamespace is recommended container namespace
	ContainerClusterName containerTag = "cluster_name"
	ContainerNamespace   containerTag = "namespace"
	// ContainerName is recommended container name
	ContainerName containerTag = "name"
	// ContainerPodName is pod name of recommended container
	ContainerPodName     containerTag = "pod_name"
	ContainerGranularity containerTag = "granularity"

	// ContainerPolicy is recommended policy
	ContainerPolicy     containerField = "policy"
	ContainerPolicyTime containerField = "policy_time"
	// ContainerResourceRequestCPU is recommended CPU request
	ContainerResourceRequestCPU containerField = "resource_request_cpu"
	// ContainerResourceRequestMemory is recommended memory request
	ContainerResourceRequestMemory containerField = "resource_request_memory"
	// ContainerResourceLimitCPU is recommended CPU limit
	ContainerResourceLimitCPU containerField = "resource_limit_cpu"
	// ContainerResourceLimitMemory is recommended memory limit
	ContainerResourceLimitMemory containerField = "resource_limit_memory"
	// ContainerInitialResourceRequestCPU is recommended initial CPU request
	ContainerInitialResourceRequestCPU containerField = "initial_resource_request_cpu"
	// ContainerInitialResourceRequestMemory is recommended initial memory request
	ContainerInitialResourceRequestMemory containerField = "initial_resource_request_memory"
	// ContainerInitialResourceLimitCPU is recommended initial CPU limit
	ContainerInitialResourceLimitCPU containerField = "initial_resource_limit_cpu"
	// ContainerInitialResourceLimitMemory is recommended initial memory limit
	ContainerInitialResourceLimitMemory containerField = "initial_resource_limit_memory"
	// ContainerStartTime is recommended start time
	ContainerStartTime containerField = "start_time"
	// ContainerEndTime is recommended end time
	ContainerEndTime containerField = "end_time"
	// ContainerTopControllerName is top controller name of the pod
	ContainerTopControllerName containerField = "top_controller_name"
	// ContainerTopControllerKind is top controller kind of the pod
	ContainerTopControllerKind containerField = "top_controller_kind"
	ContainerPodTotalCost      containerField = "pod_total_cost"
)
View Source
const (
	ContainerMetricKindLimit       = "limit"
	ContainerMetricKindRequest     = "request"
	ContainerMetricKindInitLimit   = "initLimit"
	ContainerMetricKindInitRequest = "initRequest"
)
View Source
const (
	ControllerTime        controllerTag = "time"
	ControllerClusterName controllerTag = "cluster_name"
	ControllerNamespace   controllerTag = "namespace"
	ControllerName        controllerTag = "name"
	ControllerType        controllerTag = "type"

	ControllerKind              controllerField = "kind"
	ControllerCurrentReplicas   controllerField = "current_replicas"
	ControllerDesiredReplicas   controllerField = "desired_replicas"
	ControllerCreateTime        controllerField = "create_time"
	ControllerCurrentCPURequest controllerField = "current_cpu_requests"
	ControllerCurrentMEMRequest controllerField = "current_mem_requests"
	ControllerCurrentCPULimit   controllerField = "current_cpu_limits"
	ControllerCurrentMEMLimit   controllerField = "current_mem_limits"
	ControllerDesiredCPULimit   controllerField = "desired_cpu_limits"
	ControllerDesiredMEMLimit   controllerField = "desired_mem_limits"
	ControllerTotalCost         controllerField = "total_cost"
)
View Source
const (
	NamespaceTime        namespaceTag = "time"
	NamespaceClusterName namespaceTag = "cluster_name"
	NamespaceName        namespaceTag = "name"
	NamespaceType        namespaceTag = "type"

	NamespaceKind              namespaceField = "kind"
	NamespaceCurrentReplicas   namespaceField = "current_replicas"
	NamespaceDesiredReplicas   namespaceField = "desired_replicas"
	NamespaceCreateTime        namespaceField = "create_time"
	NamespaceCurrentCPURequest namespaceField = "current_cpu_requests"
	NamespaceCurrentMEMRequest namespaceField = "current_mem_requests"
	NamespaceCurrentCPULimit   namespaceField = "current_cpu_limits"
	NamespaceCurrentMEMLimit   namespaceField = "current_mem_limits"
	NamespaceDesiredCPULimit   namespaceField = "desired_cpu_limits"
	NamespaceDesiredMEMLimit   namespaceField = "desired_mem_limits"
	NamespaceTotalCost         namespaceField = "total_cost"
)
View Source
const (
	NodeTime        nodeTag = "time"
	NodeClusterName nodeTag = "cluster_name"
	NodeName        nodeTag = "name"
	NodeType        nodeTag = "type"

	NodeKind              nodeField = "kind"
	NodeCurrentReplicas   nodeField = "current_replicas"
	NodeDesiredReplicas   nodeField = "desired_replicas"
	NodeCreateTime        nodeField = "create_time"
	NodeCurrentCPURequest nodeField = "current_cpu_requests"
	NodeCurrentMEMRequest nodeField = "current_mem_requests"
	NodeCurrentCPULimit   nodeField = "current_cpu_limits"
	NodeCurrentMEMLimit   nodeField = "current_mem_limits"
	NodeDesiredCPULimit   nodeField = "desired_cpu_limits"
	NodeDesiredMEMLimit   nodeField = "desired_mem_limits"
	NodeTotalCost         nodeField = "total_cost"
)

Variables

View Source
var (
	// ControllerTags is list of tags of alameda_controller_recommendation measurement
	ControllerTags = []controllerTag{
		ControllerTime,
		ControllerClusterName,
		ControllerNamespace,
		ControllerName,
		ControllerType,
	}
	// ControllerFields is list of fields of alameda_controller_recommendation measurement
	ControllerField = []controllerField{
		ControllerCurrentReplicas,
		ControllerDesiredReplicas,
		ControllerCreateTime,
		ControllerKind,

		ControllerCurrentCPURequest,
		ControllerCurrentMEMRequest,
		ControllerCurrentCPULimit,
		ControllerCurrentMEMLimit,
		ControllerDesiredCPULimit,
		ControllerDesiredMEMLimit,
		ControllerTotalCost,
	}
)

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