Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppliedHPATargetUtilization = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "applied_hpa_utilization_target", Help: "hpa utilization target values that tortoises actually applys to hpa", }, []string{"tortoise_name", "namespace", "container_name", "resource_name", "hpa_name"}) AppliedHPAMinReplicas = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "applied_hpa_minreplicas", Help: "hpa minReplicas that tortoises actually applys to hpa", }, []string{"tortoise_name", "namespace", "hpa_name"}) AppliedHPAMaxReplicas = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "applied_hpa_maxreplicas", Help: "hpa maxReplicas that tortoises actually applys to hpa", }, []string{"tortoise_name", "namespace", "hpa_name"}) AppliedCPURequest = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "applied_cpu_request", Help: "cpu request (millicore) that tortoises actually applys", }, []string{"tortoise_name", "namespace", "container_name", "controller_name", "controller_kind"}) AppliedMemoryRequest = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "applied_memory_request", Help: "memory request (byte) that tortoises actually applys", }, []string{"tortoise_name", "namespace", "container_name", "controller_name", "controller_kind"}) ProposedHPATargetUtilization = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "proposed_hpa_utilization_target", Help: "recommended hpa utilization target values that tortoises propose", }, []string{"tortoise_name", "namespace", "container_name", "resource_name", "hpa_name"}) ProposedHPAMinReplicas = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "proposed_hpa_minreplicas", Help: "recommended hpa minReplicas that tortoises propose", }, []string{"tortoise_name", "namespace", "hpa_name"}) ProposedHPAMaxReplicas = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "proposed_hpa_maxreplicas", Help: "recommended hpa maxReplicas that tortoises propose", }, []string{"tortoise_name", "namespace", "hpa_name"}) ProposedCPURequest = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "proposed_cpu_request", Help: "recommended cpu request (millicore) that tortoises propose", }, []string{"tortoise_name", "namespace", "container_name", "controller_name", "controller_kind"}) ProposedMemoryRequest = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "proposed_memory_request", Help: "recommended memory request (byte) that tortoises propose", }, []string{"tortoise_name", "namespace", "container_name", "controller_name", "controller_kind"}) TortoiseNumber = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "tortoise_number", Help: "the number of tortoise", }, []string{"tortoise_name", "namespace", "controller_name", "controller_kind", "update_mode", "tortoise_phase"}) )
Functions ¶
func RecordTortoise ¶ added in v0.2.0
func ShouldRerecordTortoise ¶ added in v0.2.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.