robusta-dev / krr

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

Filter the report to focus on the biggest problems first #156

Open stocksr opened 1 year ago

stocksr commented 1 year ago

Is your feature request related to a problem? Please describe. It would be really handy if I could set a filter EG

Describe the solution you'd like CLI options to set filters and only output the resources that match, - I think the entire table row should be output if any single item in that row meets the filter.

Ideally the process exit code would also be set depending on if it finds any resources that match the filter - to allow for automated checks for work to do.

Describe alternatives you've considered jq magic on the json output just looking through the entire table to find the items needed attention a feature request to allow sorting the output by priority

LeaveMyYard commented 1 year ago

Hey, @stocksr

What do you think, being able to export results right to excel will help with all of those?

stocksr commented 1 year ago

Hey, @stocksr

What do you think, being able to export results right to excel will help with all of those?

That would help with 90% of my request and would allow me to manually do what I want. So would be perfect for a one off process and I 100% support adding that or a csv format export. However what I am really looking for is an automatable solution whereby I define my criteria once and then on a schedule I run my script to see if anything needs attention. (I will probably be automatically creating a work item but that is way outside the scope of this request.)

fabn commented 5 months ago

Any news about this? Otherwise reviewing PDF report requires a lot of time.

Starting from a priority filter would be a great addition, also entries should be sortable (with some default) like in the robusta ui

aantn commented 5 months ago

Hey, no updates yet, but if you are open to working on this I'd love to point you in the right direction! A PR would be more than welcome.