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
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ persistence:
52
52
## Prerequisites
53
53
- The metrics server must be deployed in your cluster. Read more about [Metrics Server](https://github.com/kubernetes-sigs/metrics-server). This controller uses the **metrics.k8s.io** extension API group (apis/metrics.k8s.io/v1beta1)
These are available POD/Namespace annotations *Regardless of **annotation-filter**:*
111
+
There are Pod/Namespace annotations available*Regardless of **annotation-filter**:*
111
112
```
112
113
reqsizer.jatalocks.github.io/optimize=false # Ignore Pod/Namespace when optimizing entire cluster
113
114
reqsizer.jatalocks.github.io/mode=average # Default Mode. Optimizes based on average. If ommited, mode is average
@@ -118,6 +119,12 @@ reqsizer.jatalocks.github.io/mode=min # Sets the request to the MINIMUM of
118
119
119
120
`sample-size` is the amount of data-points the controller will store in cache before constructing an average for the pod. After a requests resizing, the cache will clean itself and a new average will be calculated based on the sample size. If `min-seconds` have not yet passed since the pod has been scheduled, the controller will keep sampling the pod until `min-seconds` have been reached and only then zero the sample and restart from cache.
120
121
122
+
### Monitoring - Prometheus
123
+
| Metric | Type | Description |
124
+
| ------------- | ------------- | ------------- |
125
+
| cpu_offset | Gauge | Number of milli-cores that have been increased/removed since startup. Can be a positive/negative value. |
126
+
| memory_offset | Gauge | Number of megabits that have been increased/removed since startup. Can be a positive/negative value. |
127
+
| cache_size | Gauge | Number of pod controllers currently in cache. |
121
128
### Edge Cases
122
129
123
130
1. All samples in a certain cycle report `0` (less than 1):
0 commit comments