package
0.11.0
Repository: https://github.com/gocrane/crane.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
BuildZoneName returns the canonical name of a NUMA zone from its ID.
CalculatePodRequests sum request total from pods.
CalculatePodTemplateRequests sum request total from podTemplate.
No description provided by the author
ContainMaps to judge the maps b is contained by maps a.
No description provided by the author
EvictPodWithGracePeriod evict pod with grace period.
No description provided by the author
GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
GetAvailablePods return a set with pod names that paas IsPodAvailable check.
No description provided by the author
No description provided by the author
No description provided by the author
GetContainerExtCpuResFromPod get container's gocrane.io/cpu usage.
GetContainerExtMemResFromPod get container's gocrane.io/memory usage.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCronMetricName return metric name used by cron.
No description provided by the author
No description provided by the author
No description provided by the author
GetElasticResourceLimit sum all containers resources limit for gocrane.io/resource As extended resource is not over committable resource, so request = limit.
No description provided by the author
GetExpressionQueryAnnotation return metric query from annotation by metricName.
GetExpressionQuery return metric query.
GetExtCpuRes get container's gocrane.io/cpu usage.
GetExtMemRes get container's gocrane.io/memory usage.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetGeneralPredictionMetricName return metric name used by prediction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetPodCondition extracts the provided condition from the given status and returns that.
GetPodContainerByName get container info by container name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetPodReadyCondition extracts the pod ready condition from the given status and returns that.
No description provided by the author
No description provided by the author
GetPredictionMetricName return metric name used by prediction.
No description provided by the author
No description provided by the author
GetReservedCPUs ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsNodeAwareOfTopology returns default topology awareness policy.
IsPodAvailable returns true if a pod is available; false otherwise.
IsPodReady returns true if a pod is ready; false otherwise.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseDuration parse a string to time.Duration.
No description provided by the author
parsePercentage parse the percent string value.
ParseTimestamp parse a string to time.Time.
PodExcludeReservedCPUs ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateNodeConditionsStatues be used to update node condition with check whether it needs to update.
UpdateNodeTaints be used to update node taints with check whether it needs to update.

# Constants

No description provided by the author
No description provided by the author
ContainerCpuUsageExprTemplate is used to query container cpu usage by promql, param is namespace,pod,container duration str.
ContainerMemUsageExprTemplate is used to query container cpu usage by promql, param is namespace,pod,container.
todo: later we change these templates to configurable like prometheus-adapter.
No description provided by the author
NodeCpuRequestUtilizationExprTemplate is used to query node cpu request utilization by promql, param is node name, node name which prometheus scrape.
following is node exporter metric for node cpu/memory usage NodeCpuUsageExprTemplate is used to query node cpu usage by promql, param is node name which prometheus scrape, duration str.
NodeCpuUsageUtilizationExprTemplate is used to query node memory usage utilization by promql, param is node name, node name which prometheus scrape.
NodeMemRequestUtilizationExprTemplate is used to query node memory request utilization by promql, param is node name, node name which prometheus scrape.
NodeMemUsageExprTemplate is used to query node memory usage by promql, param is node name, node name which prometheus scrape.
NodeMemUsageUtilizationExprTemplate is used to query node memory usage utilization by promql, param is node name, node name which prometheus scrape.
PodCpuUsageExprTemplate is used to query pod cpu usage by promql, param is namespace,pod, duration str.
PodMemUsageExprTemplate is used to query pod cpu usage by promql, param is namespace,pod.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WorkloadCpuUsageExprTemplate is used to query workload cpu usage by promql, param is namespace,workload-name,duration str.
WorkloadMemUsageExprTemplate is used to query workload mem usage by promql, param is namespace, workload-name.

# Variables

No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author