Commit bc2ef21
authored
feat: add new csv-raw export format for calculation (#422)
I added a new export format to avoid breaking existing functionality.
Please let me know if there's anything that needs improvement.
Close #293
<details><summary>Result example</summary>
<p>
```csv
Namespace,Name,Pods,Old Pods,Type,Container,Severity,CPU Requests Current,CPU Requests Recommended,CPU Limits Current,CPU Limits Recommended,Memory Requests Current,Memory Requests Recommended,Memory Limits Current,Memory Limits Recommended
prometheus,prometheus-stack-grafana,1,0,Deployment,grafana-sc-dashboard,WARNING,unset,0.01,unset,unset,unset,110100480,unset,110100480
prometheus,prometheus-stack-grafana,1,0,Deployment,grafana-sc-datasources,WARNING,unset,0.01,unset,unset,unset,113246208,unset,113246208
prometheus,prometheus-stack-grafana,1,0,Deployment,grafana,WARNING,unset,0.01,unset,unset,unset,106954752,unset,106954752
prometheus,prometheus-stack-kube-prom-operator,1,0,Deployment,kube-prometheus-stack,WARNING,unset,0.01,unset,unset,unset,104857600,unset,104857600
prometheus,prometheus-stack-kube-state-metrics,1,0,Deployment,kube-state-metrics,WARNING,unset,0.01,unset,unset,unset,104857600,unset,104857600
prometheus,alertmanager-prometheus-stack-kube-prom-alertmanager,1,0,StatefulSet,alertmanager,WARNING,unset,0.01,unset,unset,209715200,104857600,unset,104857600
prometheus,alertmanager-prometheus-stack-kube-prom-alertmanager,1,0,StatefulSet,config-reloader,WARNING,unset,0.01,unset,unset,unset,104857600,unset,104857600
prometheus,prometheus-prometheus-stack-kube-prom-prometheus,1,0,StatefulSet,prometheus,WARNING,unset,0.057,unset,unset,unset,834666496,unset,834666496
prometheus,prometheus-prometheus-stack-kube-prom-prometheus,1,0,StatefulSet,config-reloader,WARNING,unset,0.01,unset,unset,unset,104857600,unset,104857600
prometheus,prometheus-stack-prometheus-node-exporter,3,0,DaemonSet,node-exporter,WARNING,unset,0.01,unset,unset,unset,104857600,unset,104857600
```
</p>
</details>1 parent 0e1cc68 commit bc2ef21
File tree
4 files changed
+113
-1
lines changed- robusta_krr
- core
- formatters
4 files changed
+113
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
0 commit comments