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: README.md
+25-8
Original file line number
Diff line number
Diff line change
@@ -129,14 +129,18 @@ These are top level keys in the Descheduler Policy that you can use to configure
129
129
|`metricsProviders`|`[]object`|`nil`| Enables various metrics providers like Kubernetes [Metrics Server](https://kubernetes-sigs.github.io/metrics-server/)|
|`gracePeriodSeconds`|`int`|`0`| The duration in seconds before the object should be deleted. The value zero indicates delete immediately. |
132
+
|`prometheus`|`object`|`nil`| Configures collection of Prometheus metrics for actual resource utilization |
133
+
|`prometheus.url`|`string`|`nil`| Points to a Prometheus server url |
134
+
|`prometheus.authToken`|`object`|`nil`| Sets Prometheus server authentication token. If not specified in cluster authentication token from the container's file system is read. |
135
+
|`prometheus.authToken.secretReference`|`object`|`nil`| Read the authentication token from a kubernetes secret (the secret is expected to contain the token under `prometheusAuthToken` data key) |
136
+
|`prometheus.authToken.secretReference.namespace`|`string`|`nil`| Authentication token kubernetes secret namespace (currently, the RBAC configuration permits retrieving secrets from the `kube-system` namespace. If the secret needs to be accessed from a different namespace, the existing RBAC rules must be explicitly extended. |
137
+
|`prometheus.authToken.secretReference.name`|`string`|`nil`| Authentication token kubernetes secret name |
132
138
133
139
The descheduler currently allows to configure a metric collection of Kubernetes Metrics through `metricsProviders` field.
134
-
The previous way of setting `metricsCollector` field is deprecated. There is currently one source to configure:
135
-
```
136
-
metricsProviders:
137
-
- source: KubernetesMetrics
138
-
```
139
-
The list can be extended with other metrics providers in the future.
140
+
The previous way of setting `metricsCollector` field is deprecated. There are currently two sources to configure:
141
+
-`KubernetesMetrics`: enables metrics collection from Kubernetes Metrics server
142
+
-`Prometheus`: enables metrics collection from Prometheus server
143
+
140
144
In general, each plugin can consume metrics from a different provider so multiple distinct providers can be configured in parallel.
141
145
142
146
@@ -174,9 +178,15 @@ maxNoOfPodsToEvictPerNode: 5000 # you don't need to set this, unlimited if not s
174
178
maxNoOfPodsToEvictPerNamespace: 5000# you don't need to set this, unlimited if not set
175
179
maxNoOfPodsToEvictTotal: 5000# you don't need to set this, unlimited if not set
176
180
gracePeriodSeconds: 60# you don't need to set this, 0 if not set
177
-
# you don't need to set this, Kubernetes metrics are not collected if not set
181
+
# you don't need to set this, metrics are not collected if not set
0 commit comments