-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
area/vertical-pod-autoscalerarea/vertical-pod-autoscaler/prometheusIssues and PRs related to Vertical Pod Autoscaler history from PrometheusIssues and PRs related to Vertical Pod Autoscaler history from Prometheuskind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.
Description
Which component are you using?:
/area vertical-pod-autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
No
Describe the solution you'd like.:
The only existing documentation for running vpa-recommender with a prometheus history provider is How can I use Prometheus as a history provider for the VPA recommender.
When the team evaluated this option they discovered several things that could be documented better or things which were not documented at all.
Findings:
- vpa-recommender falls back to NOT using history (and it does not write VPACheckpoints) for the metrics if it cannot reach to the prometheus instance.
- vpa-recommender uses the pod labels from kube-state-metrics to load metrics for old (no-longer-existing) pods. An internal map in vpa-recommender maps {pod's labels, container name, namespace} to {memory/cpu histograms}. This requires that the vpa-recommender be started with the arguments:
--metric-for-pod-labels=kube_pod_labels{job=\"kube-state-metrics\"}[8d]andpod-label-prefix=label_wherelabel_is the prefix that kube-state-metrics adds to pod labels when it writes them to prometheus.
Credits to @plkokanov and @vitanovs for the findings.
Describe any alternative solutions you've considered.:
N/A
Additional context.:
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/vertical-pod-autoscalerarea/vertical-pod-autoscaler/prometheusIssues and PRs related to Vertical Pod Autoscaler history from PrometheusIssues and PRs related to Vertical Pod Autoscaler history from Prometheuskind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.