Skip to content

Commit dd18b7e

Browse files
committed
📝 docs
modified: README.md
1 parent ffd9a60 commit dd18b7e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ persistence:
5252
## Prerequisites
5353
- 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)
5454
55-
## Description
55+
## Usage
5656
5757
**kube-reqsizer** has primary custom flags:
5858
@@ -102,12 +102,13 @@ persistence:
102102
```
103103

104104
### Annotations
105+
105106
*If **annotation-filter** is **true**:*
106107
```
107108
reqsizer.jatalocks.github.io/optimize=true # Optimize Pod/Namespace
108109
reqsizer.jatalocks.github.io/optimize=false # Ignore Pod/Namespace
109110
```
110-
These are available POD/Namespace annotations *Regardless of **annotation-filter**:*
111+
There are Pod/Namespace annotations available *Regardless of **annotation-filter**:*
111112
```
112113
reqsizer.jatalocks.github.io/optimize=false # Ignore Pod/Namespace when optimizing entire cluster
113114
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
118119

119120
`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.
120121

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. |
121128
### Edge Cases
122129

123130
1. All samples in a certain cycle report `0` (less than 1):

0 commit comments

Comments
 (0)