-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Improve the prometheus history provider docs #9228
Copy link
Copy link
Open
Labels
area/vertical-pod-autoscalerIssues or PRs related to the Vertical Pod Autoscaler componentIssues or PRs related to the Vertical Pod Autoscaler componentarea/vertical-pod-autoscaler/prometheusIssues and PRs related to Vertical Pod Autoscaler history from PrometheusIssues and PRs related to Vertical Pod Autoscaler history from Prometheushelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.
Metadata
Metadata
Assignees
Labels
area/vertical-pod-autoscalerIssues or PRs related to the Vertical Pod Autoscaler componentIssues or PRs related to the Vertical Pod Autoscaler componentarea/vertical-pod-autoscaler/prometheusIssues and PRs related to Vertical Pod Autoscaler history from PrometheusIssues and PRs related to Vertical Pod Autoscaler history from Prometheushelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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:
--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