robusta-dev / krr

Prometheus-based Kubernetes Resource Recommendations
MIT License
3.05k stars 160 forks source link

Add columns to csv #359

Closed moshemorad closed 1 week ago

moshemorad commented 1 week ago

- [fb] python ./krr.py simple -f csv --exclude-severity **(result same as above)**
```shell
|Namespace|Name                                                |Pods|Old Pods|Type       |Container             |CPU Diff|CPU Requests       |CPU Limits|Memory Diff|Memory Requests          |Memory Limits  |
|---------|----------------------------------------------------|----|--------|-----------|----------------------|--------|-------------------|----------|-----------|-------------------------|---------------|
|default  |robusta-forwarder                                   |1   |0       |Deployment |kubewatch             |+0m     |(+0m) 10m -> 10m   |unset     |-412Mi     |(-412Mi) 512Mi -> 100Mi  |512Mi -> 100Mi |
|default  |robusta-grafana                                     |1   |0       |Deployment |grafana-sc-dashboard  |+10m    |(+10m) unset -> 10m|unset     |+117Mi     |(+117Mi) unset -> 117Mi  |unset -> 117Mi |
|         |                                                    |    |        |           |grafana-sc-datasources|+10m    |(+10m) unset -> 10m|unset     |+115Mi     |(+115Mi) unset -> 115Mi  |unset -> 115Mi |
|         |                                                    |    |        |           |grafana               |+10m    |(+10m) unset -> 10m|unset     |+133Mi     |(+133Mi) unset -> 133Mi  |unset -> 133Mi |
|default  |robusta-holmes                                      |1   |0       |Deployment |holmes                |+10m    |(+10m) unset -> 10m|unset     |+219Mi     |(+219Mi) unset -> 219Mi  |unset -> 219Mi |
|default  |robusta-kube-prometheus-st-operator                 |1   |0       |Deployment |kube-prometheus-stack |-90m    |(-90m) 100m -> 10m |unset     |+100Mi     |(+100Mi) unset -> 100Mi  |unset -> 100Mi |
|default  |robusta-kube-state-metrics                          |1   |0       |Deployment |kube-state-metrics    |+0m     |(+0m) 10m -> 10m   |unset     |-156Mi     |(-156Mi) 256Mi -> 100Mi  |256Mi -> 100Mi |
|default  |robusta-runner                                      |1   |2       |Deployment |runner                |-231m   |(-231m) 250m -> 19m|unset     |-465Mi     |(-465Mi) 1024Mi -> 559Mi |1024Mi -> 559Mi|
|default  |alertmanager-robusta-kube-prometheus-st-alertmanager|1   |0       |StatefulSet|alertmanager          |-40m    |(-40m) 50m -> 10m  |unset     |-28Mi      |(-28Mi) 128Mi -> 100Mi   |128Mi -> 100Mi |
|         |                                                    |    |        |           |config-reloader       |+10m    |(+10m) unset -> 10m|unset     |+100Mi     |(+100Mi) unset -> 100Mi  |unset -> 100Mi |
|default  |prometheus-robusta-kube-prometheus-st-prometheus    |1   |0       |StatefulSet|prometheus            |+34m    |(+34m) 50m -> 84m  |unset     |-1487Mi    |(-1487Mi) 2048Mi -> 561Mi|2048Mi -> 561Mi|
|         |                                                    |    |        |           |config-reloader       |+10m    |(+10m) unset -> 10m|unset     |+100Mi     |(+100Mi) unset -> 100Mi  |unset -> 100Mi |
|default  |robusta-prometheus-node-exporter                    |3   |0       |DaemonSet  |node-exporter         |-120m   |(-40m) 50m -> 10m  |unset     |+150Mi     |(+50Mi) 50Mi -> 100Mi    |50Mi -> 100Mi  |
CLAassistant commented 1 week ago

CLA assistant check
All committers have signed the CLA.

RoiGlinik commented 1 week ago

LGTM