Skip to content

Commit

Permalink
Merge pull request #5102 from jbartosik/metric_server_responses
Browse files Browse the repository at this point in the history
Register VPA metrics client metrics
  • Loading branch information
k8s-ci-robot authored Aug 18, 2022
2 parents 06e0a71 + 93a1ca9 commit 68db7de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vertical-pod-autoscaler/pkg/recommender/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/autoscaler/vertical-pod-autoscaler/common"
"k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender/input/history"
vpa_metrics_client "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender/input/metrics"
"k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender/model"
"k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender/routines"
"k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics"
metrics_quality "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/quality"
metrics_recommender "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/recommender"
kube_flag "k8s.io/component-base/cli/flag"
"k8s.io/klog/v2"
klog "k8s.io/klog/v2"
)

// DefaultRecommenderName denotes the current recommender name as the "default" one.
Expand Down Expand Up @@ -81,6 +82,7 @@ func main() {
metrics.Initialize(*address, healthCheck)
metrics_recommender.Register()
metrics_quality.Register()
vpa_metrics_client.Register()

useCheckpoints := *storage != "prometheus"
recommender := routines.NewRecommender(config, *checkpointsGCInterval, useCheckpoints, *vpaObjectNamespace)
Expand Down

0 comments on commit 68db7de

Please sign in to comment.