You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertical-pod-autoscaler/docs/flags.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,10 @@ This document is auto-generated from the flag definitions in the VPA recommender
105
105
|`pod-recommendation-min-memory-mb`| float | 250 | Minimum memory recommendation for a pod |
106
106
|`profiling`| int || Is debug/pprof endpoenabled |
107
107
|`prometheus-address`| string | "http://prometheus.monitoring.svc"| Where to reach for Prometheus metrics |
108
+
|`prometheus-bearer-token`| string || The bearer token used in the Prometheus server bearer token auth |
109
+
|`prometheus-bearer-token-file`| string || Path to the bearer token file used for authentication by the Prometheus server |
108
110
|`prometheus-cadvisor-job-name`| string | "kubernetes-cadvisor" | Name of the prometheus job name which scrapes the cAdvisor metrics |
111
+
|`prometheus-insecure`||| Skip tls verify if https is used in the prometheus-address |
109
112
|`prometheus-query-timeout`| string | "5m" | How long to wait before killing long queries |
110
113
|`recommendation-lower-bound-cpu-percentile`| float | 0.5 | CPU usage percentile that will be used for the lower bound on CPU recommendation. |
111
114
|`recommendation-lower-bound-memory-percentile`| float | 0.5 | Memory usage percentile that will be used for the lower bound on memory recommendation. |
Copy file name to clipboardExpand all lines: vertical-pod-autoscaler/pkg/recommender/main.go
+36-17Lines changed: 36 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -71,20 +71,23 @@ var (
71
71
72
72
// Prometheus history provider flags
73
73
var (
74
-
prometheusAddress=flag.String("prometheus-address", "http://prometheus.monitoring.svc", `Where to reach for Prometheus metrics`)
75
-
prometheusJobName=flag.String("prometheus-cadvisor-job-name", "kubernetes-cadvisor", `Name of the prometheus job name which scrapes the cAdvisor metrics`)
76
-
historyLength=flag.String("history-length", "8d", `How much time back prometheus have to be queried to get historical metrics`)
77
-
historyResolution=flag.String("history-resolution", "1h", `Resolution at which Prometheus is queried for historical metrics`)
78
-
queryTimeout=flag.String("prometheus-query-timeout", "5m", `How long to wait before killing long queries`)
79
-
podLabelPrefix=flag.String("pod-label-prefix", "pod_label_", `Which prefix to look for pod labels in metrics`)
80
-
podLabelsMetricName=flag.String("metric-for-pod-labels", "up{job=\"kubernetes-pods\"}", `Which metric to look for pod labels in metrics`)
81
-
podNamespaceLabel=flag.String("pod-namespace-label", "kubernetes_namespace", `Label name to look for pod namespaces`)
82
-
podNameLabel=flag.String("pod-name-label", "kubernetes_pod_name", `Label name to look for pod names`)
83
-
ctrNamespaceLabel=flag.String("container-namespace-label", "namespace", `Label name to look for container namespaces`)
84
-
ctrPodNameLabel=flag.String("container-pod-name-label", "pod_name", `Label name to look for container pod names`)
85
-
ctrNameLabel=flag.String("container-name-label", "name", `Label name to look for container names`)
86
-
username=flag.String("username", "", "The username used in the prometheus server basic auth")
87
-
password=flag.String("password", "", "The password used in the prometheus server basic auth")
74
+
prometheusAddress=flag.String("prometheus-address", "http://prometheus.monitoring.svc", `Where to reach for Prometheus metrics`)
75
+
prometheusInsecure=flag.Bool("prometheus-insecure", false, `Skip tls verify if https is used in the prometheus-address`)
76
+
prometheusJobName=flag.String("prometheus-cadvisor-job-name", "kubernetes-cadvisor", `Name of the prometheus job name which scrapes the cAdvisor metrics`)
77
+
historyLength=flag.String("history-length", "8d", `How much time back prometheus have to be queried to get historical metrics`)
78
+
historyResolution=flag.String("history-resolution", "1h", `Resolution at which Prometheus is queried for historical metrics`)
79
+
queryTimeout=flag.String("prometheus-query-timeout", "5m", `How long to wait before killing long queries`)
80
+
podLabelPrefix=flag.String("pod-label-prefix", "pod_label_", `Which prefix to look for pod labels in metrics`)
81
+
podLabelsMetricName=flag.String("metric-for-pod-labels", "up{job=\"kubernetes-pods\"}", `Which metric to look for pod labels in metrics`)
82
+
podNamespaceLabel=flag.String("pod-namespace-label", "kubernetes_namespace", `Label name to look for pod namespaces`)
83
+
podNameLabel=flag.String("pod-name-label", "kubernetes_pod_name", `Label name to look for pod names`)
84
+
ctrNamespaceLabel=flag.String("container-namespace-label", "namespace", `Label name to look for container namespaces`)
85
+
ctrPodNameLabel=flag.String("container-pod-name-label", "pod_name", `Label name to look for container pod names`)
86
+
ctrNameLabel=flag.String("container-name-label", "name", `Label name to look for container names`)
87
+
username=flag.String("username", "", "The username used in the prometheus server basic auth")
88
+
password=flag.String("password", "", "The password used in the prometheus server basic auth")
89
+
prometheusBearerToken=flag.String("prometheus-bearer-token", "", "The bearer token used in the Prometheus server bearer token auth")
90
+
prometheusBearerTokenFile=flag.String("prometheus-bearer-token-file", "", "Path to the bearer token file used for authentication by the Prometheus server")
88
91
)
89
92
90
93
// External metrics provider flags
@@ -149,6 +152,20 @@ func main() {
149
152
klog.InfoS("DEPRECATION WARNING: The 'min-checkpoints' flag is deprecated and has no effect. It will be removed in a future release.")
0 commit comments