krr icon indicating copy to clipboard operation
krr copied to clipboard

Filter the report to focus on the biggest problems first

Open stocksr opened this issue 1 year ago • 4 comments

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

  • Show items that require increased resources (we self host our clusters so setting resources too low is a higher priority issue than cloud costs)
  • Show items that are not configured correctly (Mem Limit != Request, CPU Limit Set)
  • Show items that recommend a greater than n% change - either direction

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

stocksr avatar Oct 12 '23 07:10 stocksr

Hey, @stocksr

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

LeaveMyYard avatar Oct 23 '23 08:10 LeaveMyYard

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.)

stocksr avatar Oct 23 '23 10:10 stocksr

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

fabn avatar May 23 '24 10:05 fabn

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.

aantn avatar May 25 '24 14:05 aantn