robusta-dev / krr

Prometheus-based Kubernetes Resource Recommendations
MIT License
2.77k stars 147 forks source link

CSV export format improvement #293

Open headyj opened 2 months ago

headyj commented 2 months ago

Is your feature request related to a problem? Please describe. Currently the CSV export can hardly by used for calculation, as the values are "polluted" with Mi, m, -> or ? characters

Describe the solution you'd like It would be very useful to have a CSV export with values that can be used for calculation in a spreadsheet, like for the json export.

Describe alternatives you've considered Actually the only way I found is to take the JSON as input and do my own CSV with tools like jq, but it's not very convenient

aantn commented 2 months ago

Hi, this makes sense and we are open to a PR that would fix this. The relevant code is in robusta_krr/formatters/csv.py