Documentation ¶
Overview ¶
Package recommender (aka metrics_recommender) - code for metrics of VPA Recommender
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutionTimer ¶
func NewExecutionTimer() *metrics.ExecutionTimer
NewExecutionTimer provides a timer for Recommender's RunOnce execution
func ObserveRecommendationLatency ¶
ObserveRecommendationLatency observes the time it took for the first recommendation to appear
Types ¶
type ObjectCounter ¶
type ObjectCounter struct {
// contains filtered or unexported fields
}
ObjectCounter helps split all VPA objects into buckets
func NewObjectCounter ¶
func NewObjectCounter() *ObjectCounter
NewObjectCounter creates a new helper to split VPA objects into buckets
func (*ObjectCounter) Add ¶
func (oc *ObjectCounter) Add(vpa *model.Vpa)
Add updates the helper state to include the given VPA object
func (*ObjectCounter) Observe ¶
func (oc *ObjectCounter) Observe()
Observe passes all the computed bucket values to metrics
Click to show internal directories.
Click to hide internal directories.